1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Fix minor typos

This commit is contained in:
Yuri Chornoivan 2018-10-21 18:14:27 +03:00
parent 42e0c865b2
commit fc5ba5f5f2
22 changed files with 37 additions and 37 deletions

View File

@ -298,7 +298,7 @@ void QzToolsTest::copyRecursivelyTest()
QVERIFY(!QFileInfo(testDir + "-copy").exists());
// Copy to non-existant target
// Copy to non-existent target
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), true);
QCOMPARE(QFileInfo(testDir + "-copy").isDir(), true);
@ -333,7 +333,7 @@ void QzToolsTest::removeRecursivelyTest()
QCOMPARE(QzTools::removeRecursively(testDir + "-copy"), true);
QCOMPARE(QFileInfo(testDir + "-copy").exists(), false);
// Remove non-existant path returns success
// Remove non-existent path returns success
QCOMPARE(QzTools::removeRecursively(testDir + "-copy"), true);
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy2"), true);

View File

@ -158,8 +158,8 @@ QtLockedFile::LockMode QtLockedFile::lockMode() const
can be locked.
If \a block is true, this function will block until the lock is
aquired. If \a block is false, this function returns \e false
immediately if the lock cannot be aquired.
acquired. If \a block is false, this function returns \e false
immediately if the lock cannot be acquired.
If this object already has a lock of type \a mode, this function
returns \e true immediately. If this object has a lock of a

View File

@ -278,7 +278,7 @@ void AdBlockManager::load()
}
QDir adblockDir(DataPaths::currentProfilePath() + QSL("/adblock"));
// Create if neccessary
// Create if necessary
if (!adblockDir.exists()) {
QDir(DataPaths::currentProfilePath()).mkdir(QSL("adblock"));
}

View File

@ -141,7 +141,7 @@ void DatabaseEncryptedPasswordBackend::setActive(bool active)
if (active) {
setAskMasterPasswordState(isMasterPasswordSetted());
if (!isMasterPasswordSetted()) {
// master-password is not setted this backend needs master-password
// master-password is not set this backend needs master-password
showMasterPasswordDialog();
}
}
@ -575,7 +575,7 @@ void MasterPasswordDialog::reject()
QDialog::reject();
if (m_backend->isActive() && !m_backend->isMasterPasswordSetted()) {
// master password not setted
// master password not set
QMessageBox::information(this, AutoFill::tr("Warning!"),
AutoFill::tr("This backend needs a master password to be set! "
"Falkon just switches to its default backend"));

View File

@ -77,7 +77,7 @@ BookmarkItem* HtmlImporter::importBookmarks()
m_file.close();
// Converting tags to lower case -,-
// For some reason Qt::CaseInsensitive is not everytime insensitive :-D
// For some reason Qt::CaseInsensitive is not every time insensitive :-D
bookmarks.replace(QLatin1String("<DL"), QLatin1String("<dl"));
bookmarks.replace(QLatin1String("</DL"), QLatin1String("</dl"));

View File

@ -5150,7 +5150,7 @@ jQuery.event = {
) && acceptData( elem )
) {
// Call a native DOM method on the target with the same name name as the event.
// Call a native DOM method on the target with the same name as the event.
// Can't use an .isFunction() check here because IE6/7 fails that test.
// Don't do default actions on window, that's where global variables be (#6170)
if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {

View File

@ -107,7 +107,7 @@ bool NetworkManager::certificateError(const QWebEngineCertificateError &error, Q
void NetworkManager::authentication(const QUrl &url, QAuthenticator *auth, QWidget *parent)
{
QDialog* dialog = new QDialog(parent);
dialog->setWindowTitle(tr("Authorisation required"));
dialog->setWindowTitle(tr("Authorization required"));
QFormLayout* formLa = new QFormLayout(dialog);
@ -193,7 +193,7 @@ void NetworkManager::proxyAuthentication(const QString &proxyHost, QAuthenticato
}
QDialog* dialog = new QDialog(parent);
dialog->setWindowTitle(tr("Proxy authorisation required"));
dialog->setWindowTitle(tr("Proxy authorization required"));
QFormLayout* formLa = new QFormLayout(dialog);

View File

@ -68,7 +68,7 @@
are the classes provided for reading and writing OpenSearch descriptions.
Default constructed engines need to be filled with the necessary information before
they can be used to peform search requests. First of all, a search engine should have
they can be used to perform search requests. First of all, a search engine should have
the metadata including the name and the description.
However, the most important are URL templates, which are the construction of URLs
but can also contain template parameters, that are replaced with corresponding values
@ -84,7 +84,7 @@
Both types of URLs are constructed by the class, by searchUrl() and suggestionsUrl()
functions respectively. However, search requests are supposed to be performed outside
the class, while suggestion queries can be executed using the requestSuggestions()
method. The class will take care of peforming the network request and parsing the
method. The class will take care of performing the network request and parsing the
JSON response.
Both the image request and suggestion queries need network access. The class can

View File

@ -67,7 +67,7 @@ private:
QString _appDesc;
QString _UserRootKey;
QHash<QString, QString> _fileAssocHash; // (extention, progId)
QHash<QString, QString> _fileAssocHash; // (extension, progId)
QHash<QString, QString> _urlAssocHash; // (protocol, progId)
QHash<QString, QPair<QString, QString> > _assocDescHash; // (progId, (desc, icon))
};

View File

@ -80,7 +80,7 @@ public:
Root = BookmarkItem::Root, //!< Represents the root bookmark item
Url = BookmarkItem::Url, //!< Represents the single bookmark item of type url
Folder = BookmarkItem::Folder, //!< Represents the bookmark folder
Separator = BookmarkItem::Separator, //!< Represents the bookmark seperator
Separator = BookmarkItem::Separator, //!< Represents the bookmark separator
Invalid = BookmarkItem::Invalid //!< Represents invalid bookmark item
};
Q_ENUM(Type)

View File

@ -46,7 +46,7 @@ public:
*/
Q_INVOKABLE bool nextTab(int windowId = -1);
/**
* @brief Sets the prvious tab as current tab
* @brief Sets the previous tab as current tab
* @param Integer representing the window
* @return True if success, else false
*/
@ -127,7 +127,7 @@ public:
* @brief Stops a tab
* @param A JavaScript object containing
* - index:
* Integer representing the tab to be stoped
* Integer representing the tab to be stopped
* - windowId:
* The id of window containing the tab
* @return True if success, else false
@ -135,9 +135,9 @@ public:
Q_INVOKABLE bool stopTab(const QVariantMap &map);
/**
* @brief Gets a tab
* @param A JavaScript object contining
* @param A JavaScript object containing
* - index:
* Integer representign the index of the tab
* Integer representing the index of the tab
* - windowId:
* The id of window containing the tab
* @return Tab of type [QmlTab](@ref QmlTab) if exists, else null

View File

@ -34,7 +34,7 @@ QmlExternalJsObject::~QmlExternalJsObject()
void QmlExternalJsObject::registerExtraObject(const QVariantMap &map)
{
if (!map.contains(QSL("id")) || !map.contains(QSL("object"))) {
qWarning() << "Unable to call" << __FUNCTION__ << ": unsufficient parameters";
qWarning() << "Unable to call" << __FUNCTION__ << ": insufficient parameters";
return;
}

View File

@ -44,7 +44,7 @@ public:
/**
* @brief Checks if the script is in collection
* @param object of type QmlUserScript
* @return true if the the script in in collection, else false
* @return true if the script is in collection, else false
*/
Q_INVOKABLE bool contains(QObject *object) const;
/**

View File

@ -58,7 +58,7 @@ class QmlWindow : public QObject
Q_PROPERTY(QList<QObject*> tabs READ tabs CONSTANT)
/**
* @brief checks if the window is focussed
* @brief checks if the window is focused
*/
Q_PROPERTY(bool focussed READ focussed CONSTANT)

View File

@ -96,7 +96,7 @@ void ThemeManager::currentChanged()
ui->name->setText(currentTheme.name);
ui->author->setText(currentTheme.author);
ui->descirption->setText(currentTheme.description);
ui->description->setText(currentTheme.description);
ui->license->setHidden(currentTheme.license.isEmpty());
}

View File

@ -89,7 +89,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="descirption">
<widget class="QLabel" name="description">
<property name="text">
<string/>
</property>

View File

@ -1522,8 +1522,8 @@ bool TabScrollBar::isScrolling() const
void TabScrollBar::animateToValue(int to, QEasingCurve::Type type)
{
to = qBound(minimum(), to, maximum());
int lenght = qAbs(to - value());
int duration = qMin(1500, 200 + lenght / 2);
int length = qAbs(to - value());
int duration = qMin(1500, 200 + length / 2);
m_animation->stop();
m_animation->setEasingCurve(type);

View File

@ -1,5 +1,5 @@
/*
* Bespin library for Qt style, KWin decoration and everythng else
* Bespin library for Qt style, KWin decoration and everything else
* Copyright 2007-2012 by Thomas Lübking <thomas.luebking@gmail.com>
*
* This library is free software; you can redistribute it and/or modify

View File

@ -1,5 +1,5 @@
/*
* Bespin library for Qt style, KWin decoration and everythng else
* Bespin library for Qt style, KWin decoration and everything else
* Copyright 2007-2012 by Thomas Lübking <thomas.luebking@gmail.com>
*
* This library is free software; you can redistribute it and/or modify

View File

@ -99,7 +99,7 @@ private:
bool m_autoMode;
bool m_deleteOnClose;
bool m_enableNotification;
QStringList m_blaklist;
QStringList m_blacklist;
QStringList m_whitelist;
QStringList m_newCookiesList;
};

View File

@ -286,7 +286,7 @@ PosList MouseGestureRecognizer::limitDirections(const PosList &positions, bool a
}
/*
* simplify - joins together contignous movements in the same direction.
* simplify - joins together continuous movements in the same direction.
*
* Notice! This function expects a list of limited directions.
*/

View File

@ -10,7 +10,7 @@ _____________________________________________________________________________
; Date: 2012-Nov-18, S. Razi Alavizadeh, v0.1 ;
; Some Codes are based on code taken from: ;
; http://nsis.sourceforge.net/File_Association ;
; Ability to register protocol and extention associations. ;
; Ability to register protocol and extension associations. ;
; It supports old association method and new method by using ;
; IApplicationAssociationRegistration APIs. ;
; that needed 'AppAssocReg' plugins, downloadable from: ;
@ -35,7 +35,7 @@ _____________________________________________________________________________
${RegisterAssociation} "[assoc_name]" "[executable]" "[prog_id]" "[description]" "[icon]" "[type]"
"[assoc_name]" ; assoc_name, which is file format's extention if type is "file" and is protocol's name if type is "protocol".
"[assoc_name]" ; assoc_name, which is file format's extension if type is "file" and is protocol's name if type is "protocol".
;
"[executable]" ; executable which opens the file format or is protocol handler.
;
@ -45,18 +45,18 @@ _____________________________________________________________________________
;
"[icon]" ; icon path for this association.
;
"[type]" ; type of association. "file" for extention and "protocol" for protocol handler.
"[type]" ; type of association. "file" for extension and "protocol" for protocol handler.
;
${UnRegisterAssociation} "[assoc_name]" "[prog_id]" "[executable]" "[type]"
"[assoc_name]" ; assoc_name, which is file format's extention if type is "file" and is protocol's name if type is "protocol".
"[assoc_name]" ; assoc_name, which is file format's extension if type is "file" and is protocol's name if type is "protocol".
;
"[prog_id]" ; registery internal id for assoc_name
;
"[executable]" ; executable which opens the file format or is protocol handler.
;
"[type]" ; type of association. "file" for extention and "protocol" for protocol handler.
"[type]" ; type of association. "file" for extension and "protocol" for protocol handler.
;
${CreateProgId} "[prog_id]" "[executable]" "[description]" "[icon]"
@ -75,9 +75,9 @@ _____________________________________________________________________________
"[prog_id]" ; registery internal id for assoc_name
;
"[assoc_name]" ; assoc_name, which is file format's extention if type is "file" and is protocol's name if type is "protocol".
"[assoc_name]" ; assoc_name, which is file format's extension if type is "file" and is protocol's name if type is "protocol".
;
"[type]" ; type of association. "file" for extention and "protocol" for protocol handler.
"[type]" ; type of association. "file" for extension and "protocol" for protocol handler.
;
${UpdateSystemIcons} ; it has not arguments and just notifies OS for updating icons for new associations.