Fix coding style.

This commit is contained in:
Florian Geyer 2013-04-27 11:20:13 +02:00
parent 94ac9c9ea1
commit 94e6d3f89b
2 changed files with 6 additions and 6 deletions

View File

@ -397,7 +397,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
void MainWindow::closeEvent(QCloseEvent* event)
{
openDatabases.clear();
m_openDatabases.clear();
bool openPreviousDatabasesOnStartup = config()->get("OpenPreviousDatabasesOnStartup").toBool();
if (openPreviousDatabasesOnStartup) {
@ -413,7 +413,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
if (openPreviousDatabasesOnStartup) {
disconnect(m_ui->tabWidget, SIGNAL(databaseWithFileClosed(QString)), this, SLOT(rememberOpenDatabases(QString)));
config()->set("LastOpenedDatabases", openDatabases);
config()->set("LastOpenedDatabases", m_openDatabases);
}
}
@ -442,7 +442,7 @@ void MainWindow::setShortcut(QAction* action, QKeySequence::StandardKey standard
}
}
void MainWindow::rememberOpenDatabases(QString filePath)
void MainWindow::rememberOpenDatabases(const QString& filePath)
{
openDatabases.append(filePath);
m_openDatabases.append(filePath);
}

View File

@ -57,7 +57,7 @@ private Q_SLOTS:
void showEntryContextMenu(const QPoint& globalPos);
void showGroupContextMenu(const QPoint& globalPos);
void saveToolbarState(bool value);
void rememberOpenDatabases(QString filePath);
void rememberOpenDatabases(const QString& filePath);
private:
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
@ -69,7 +69,7 @@ private:
QAction* m_clearHistoryAction;
QActionGroup* m_lastDatabasesActions;
QActionGroup* m_copyAdditionalAttributeActions;
QStringList openDatabases;
QStringList m_openDatabases;
Q_DISABLE_COPY(MainWindow)
};