Commit 50561ecd authored by Karel Slaný's avatar Karel Slaný

Fixed typos.

parent de0c4a6e
......@@ -100,11 +100,11 @@ Component {
}
MenuItem {
id: vacuumAllMenu
text: qsTr("Vaccum databases")
iconSource: "qrc:/ui/sync-all.svg"
text: qsTr("Vacuum databases")
//iconSource: "qrc:/ui/sync-all.svg"
onTriggered: {
statusBarText.text = ""
files.vaccumFileDbs()
files.vacuumFileDbs()
}
}
}
......
......@@ -419,14 +419,14 @@ void Files::deleteFileDb(const QString &userName)
/* ========================================================================= */
/*
* Slot: Vaccum all file databases.
* Slot: Vacuum all file databases.
*/
void Files::vaccumFileDbs(void)
void Files::vacuumFileDbs(void)
/* ========================================================================= */
{
qDebug("%s()", __func__);
emit statusBarTextChanged(tr("Vaccum databases"), true);
emit statusBarTextChanged(tr("Vacuum databases"), true);
QStringList userNameList = AccountListModel::globAccounts.keys();
foreach (const QString &userName, userNameList) {
......@@ -436,8 +436,8 @@ void Files::vaccumFileDbs(void)
qDebug() << "ERROR: File database cannot open!" << userName;
return;
}
fDb->vaccumFileDb();
fDb->vacuumFileDb();
}
emit statusBarTextChanged(tr("Operation Vaccum has finished"), false);
emit statusBarTextChanged(tr("Operation Vacuum has finished"), false);
}
......@@ -35,7 +35,7 @@ class Files : public QObject {
public:
Files(QObject* parent = 0);
explicit Files(QObject* parent = 0);
/*!
* @brief Load files from databse and fill QML listview via model.
......@@ -79,9 +79,9 @@ public:
void deleteExpiredFilesFromDbs(int days);
/*!
* @brief Vaccum all file databases.
* @brief Vacuum all file databases.
*/
Q_INVOKABLE void vaccumFileDbs(void);
Q_INVOKABLE void vacuumFileDbs(void);
class File {
public:
......
......@@ -353,14 +353,14 @@ QStringList FileDb::cleanFilesInDb(int days)
/* ========================================================================= */
/*
* Vaccum file database.
* Vacuum file database.
*/
bool FileDb::vaccumFileDb(void)
bool FileDb::vacuumFileDb(void)
/* ========================================================================= */
{
QSqlQuery query(m_db);
/* Operation Vaccum can take a long time */
/* Vacuum can take a long time. */
if (query.exec("VACUUM")) {
return true;
}
......
......@@ -113,11 +113,11 @@ public:
QStringList cleanFilesInDb(int days);
/*!
* @brief Vaccum file database.
* @brief Vacuum file database.
*
* @return True on success.
*/
bool vaccumFileDb(void);
bool vacuumFileDb(void);
private:
/*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment