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()); QVERIFY(!QFileInfo(testDir + "-copy").exists());
// Copy to non-existant target // Copy to non-existent target
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), true); QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), true);
QCOMPARE(QFileInfo(testDir + "-copy").isDir(), true); QCOMPARE(QFileInfo(testDir + "-copy").isDir(), true);
@ -333,7 +333,7 @@ void QzToolsTest::removeRecursivelyTest()
QCOMPARE(QzTools::removeRecursively(testDir + "-copy"), true); QCOMPARE(QzTools::removeRecursively(testDir + "-copy"), true);
QCOMPARE(QFileInfo(testDir + "-copy").exists(), false); 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::removeRecursively(testDir + "-copy"), true);
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy2"), true); QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy2"), true);

View File

@ -158,8 +158,8 @@ QtLockedFile::LockMode QtLockedFile::lockMode() const
can be locked. can be locked.
If \a block is true, this function will block until the lock is If \a block is true, this function will block until the lock is
aquired. If \a block is false, this function returns \e false acquired. If \a block is false, this function returns \e false
immediately if the lock cannot be aquired. immediately if the lock cannot be acquired.
If this object already has a lock of type \a mode, this function 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 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")); QDir adblockDir(DataPaths::currentProfilePath() + QSL("/adblock"));
// Create if neccessary // Create if necessary
if (!adblockDir.exists()) { if (!adblockDir.exists()) {
QDir(DataPaths::currentProfilePath()).mkdir(QSL("adblock")); QDir(DataPaths::currentProfilePath()).mkdir(QSL("adblock"));
} }

View File

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

View File

@ -5150,7 +5150,7 @@ jQuery.event = {
) && acceptData( elem ) ) && 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. // 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) // Don't do default actions on window, that's where global variables be (#6170)
if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { 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) void NetworkManager::authentication(const QUrl &url, QAuthenticator *auth, QWidget *parent)
{ {
QDialog* dialog = new QDialog(parent); QDialog* dialog = new QDialog(parent);
dialog->setWindowTitle(tr("Authorisation required")); dialog->setWindowTitle(tr("Authorization required"));
QFormLayout* formLa = new QFormLayout(dialog); QFormLayout* formLa = new QFormLayout(dialog);
@ -193,7 +193,7 @@ void NetworkManager::proxyAuthentication(const QString &proxyHost, QAuthenticato
} }
QDialog* dialog = new QDialog(parent); QDialog* dialog = new QDialog(parent);
dialog->setWindowTitle(tr("Proxy authorisation required")); dialog->setWindowTitle(tr("Proxy authorization required"));
QFormLayout* formLa = new QFormLayout(dialog); QFormLayout* formLa = new QFormLayout(dialog);

View File

@ -68,7 +68,7 @@
are the classes provided for reading and writing OpenSearch descriptions. are the classes provided for reading and writing OpenSearch descriptions.
Default constructed engines need to be filled with the necessary information before 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. the metadata including the name and the description.
However, the most important are URL templates, which are the construction of URLs 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 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() Both types of URLs are constructed by the class, by searchUrl() and suggestionsUrl()
functions respectively. However, search requests are supposed to be performed outside functions respectively. However, search requests are supposed to be performed outside
the class, while suggestion queries can be executed using the requestSuggestions() 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. JSON response.
Both the image request and suggestion queries need network access. The class can Both the image request and suggestion queries need network access. The class can

View File

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

View File

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

View File

@ -46,7 +46,7 @@ public:
*/ */
Q_INVOKABLE bool nextTab(int windowId = -1); 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 * @param Integer representing the window
* @return True if success, else false * @return True if success, else false
*/ */
@ -127,7 +127,7 @@ public:
* @brief Stops a tab * @brief Stops a tab
* @param A JavaScript object containing * @param A JavaScript object containing
* - index: * - index:
* Integer representing the tab to be stoped * Integer representing the tab to be stopped
* - windowId: * - windowId:
* The id of window containing the tab * The id of window containing the tab
* @return True if success, else false * @return True if success, else false
@ -135,9 +135,9 @@ public:
Q_INVOKABLE bool stopTab(const QVariantMap &map); Q_INVOKABLE bool stopTab(const QVariantMap &map);
/** /**
* @brief Gets a tab * @brief Gets a tab
* @param A JavaScript object contining * @param A JavaScript object containing
* - index: * - index:
* Integer representign the index of the tab * Integer representing the index of the tab
* - windowId: * - windowId:
* The id of window containing the tab * The id of window containing the tab
* @return Tab of type [QmlTab](@ref QmlTab) if exists, else null * @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) void QmlExternalJsObject::registerExtraObject(const QVariantMap &map)
{ {
if (!map.contains(QSL("id")) || !map.contains(QSL("object"))) { if (!map.contains(QSL("id")) || !map.contains(QSL("object"))) {
qWarning() << "Unable to call" << __FUNCTION__ << ": unsufficient parameters"; qWarning() << "Unable to call" << __FUNCTION__ << ": insufficient parameters";
return; return;
} }

View File

@ -44,7 +44,7 @@ public:
/** /**
* @brief Checks if the script is in collection * @brief Checks if the script is in collection
* @param object of type QmlUserScript * @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; 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) 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) Q_PROPERTY(bool focussed READ focussed CONSTANT)

View File

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

View File

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

View File

@ -1522,8 +1522,8 @@ bool TabScrollBar::isScrolling() const
void TabScrollBar::animateToValue(int to, QEasingCurve::Type type) void TabScrollBar::animateToValue(int to, QEasingCurve::Type type)
{ {
to = qBound(minimum(), to, maximum()); to = qBound(minimum(), to, maximum());
int lenght = qAbs(to - value()); int length = qAbs(to - value());
int duration = qMin(1500, 200 + lenght / 2); int duration = qMin(1500, 200 + length / 2);
m_animation->stop(); m_animation->stop();
m_animation->setEasingCurve(type); 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> * Copyright 2007-2012 by Thomas Lübking <thomas.luebking@gmail.com>
* *
* This library is free software; you can redistribute it and/or modify * 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> * Copyright 2007-2012 by Thomas Lübking <thomas.luebking@gmail.com>
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify

View File

@ -99,7 +99,7 @@ private:
bool m_autoMode; bool m_autoMode;
bool m_deleteOnClose; bool m_deleteOnClose;
bool m_enableNotification; bool m_enableNotification;
QStringList m_blaklist; QStringList m_blacklist;
QStringList m_whitelist; QStringList m_whitelist;
QStringList m_newCookiesList; 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. * Notice! This function expects a list of limited directions.
*/ */

View File

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