Remove some excessive empty lines.

This commit is contained in:
Kimmo Varis 2010-02-23 14:34:51 +02:00
parent 0b2ad2164f
commit e38694ccfc
1 changed files with 0 additions and 20 deletions

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "mainwindow.h" #include "mainwindow.h"
#include <QApplication> #include <QApplication>
#include <QDebug> #include <QDebug>
@ -44,11 +43,8 @@ MainWindow::MainWindow() :
mUI.setupUi(this); mUI.setupUi(this);
mUI.mResults->Initialize(mSettings, mApplications); mUI.mResults->Initialize(mSettings, mApplications);
mThread = new ThreadHandler(this); mThread = new ThreadHandler(this);
connect(mUI.mActionQuit, SIGNAL(triggered()), this, SLOT(close())); connect(mUI.mActionQuit, SIGNAL(triggered()), this, SLOT(close()));
connect(mUI.mActionCheckFiles, SIGNAL(triggered()), this, SLOT(CheckFiles())); connect(mUI.mActionCheckFiles, SIGNAL(triggered()), this, SLOT(CheckFiles()));
connect(mUI.mActionCheckDirectory, SIGNAL(triggered()), this, SLOT(CheckDirectory())); connect(mUI.mActionCheckDirectory, SIGNAL(triggered()), this, SLOT(CheckDirectory()));
@ -78,7 +74,6 @@ MainWindow::MainWindow() :
connect(mUI.mResults, SIGNAL(GotResults()), this, SLOT(ResultsAdded())); connect(mUI.mResults, SIGNAL(GotResults()), this, SLOT(ResultsAdded()));
connect(mUI.mMenuView, SIGNAL(aboutToShow()), this, SLOT(AboutToShowViewMenu())); connect(mUI.mMenuView, SIGNAL(aboutToShow()), this, SLOT(AboutToShowViewMenu()));
CreateLanguageMenuItems(); CreateLanguageMenuItems();
LoadSettings(); LoadSettings();
@ -91,8 +86,6 @@ MainWindow::MainWindow() :
mUI.mActionSave->setEnabled(false); mUI.mActionSave->setEnabled(false);
mUI.mActionRecheck->setEnabled(false); mUI.mActionRecheck->setEnabled(false);
QStringList args = QCoreApplication::arguments(); QStringList args = QCoreApplication::arguments();
//Remove the application itself //Remove the application itself
args.removeFirst(); args.removeFirst();
@ -139,11 +132,8 @@ void MainWindow::CreateLanguageMenuItems()
this, SLOT(MapLanguage(QAction *))); this, SLOT(MapLanguage(QAction *)));
} }
void MainWindow::LoadSettings() void MainWindow::LoadSettings()
{ {
if (mSettings->value(SETTINGS_WINDOW_MAXIMIZED, false).toBool()) if (mSettings->value(SETTINGS_WINDOW_MAXIMIZED, false).toBool())
{ {
showMaximized(); showMaximized();
@ -154,13 +144,11 @@ void MainWindow::LoadSettings()
mSettings->value(SETTINGS_WINDOW_HEIGHT, 600).toInt()); mSettings->value(SETTINGS_WINDOW_HEIGHT, 600).toInt());
} }
mUI.mActionShowAll->setChecked(mSettings->value(SETTINGS_SHOW_ALL, true).toBool()); mUI.mActionShowAll->setChecked(mSettings->value(SETTINGS_SHOW_ALL, true).toBool());
mUI.mActionShowStyle->setChecked(mSettings->value(SETTINGS_SHOW_STYLE, true).toBool()); mUI.mActionShowStyle->setChecked(mSettings->value(SETTINGS_SHOW_STYLE, true).toBool());
mUI.mActionShowAllStyle->setChecked(mSettings->value(SETTINGS_SHOW_ALL_STYLE, true).toBool()); mUI.mActionShowAllStyle->setChecked(mSettings->value(SETTINGS_SHOW_ALL_STYLE, true).toBool());
mUI.mActionShowErrors->setChecked(mSettings->value(SETTINGS_SHOW_ERRORS, true).toBool()); mUI.mActionShowErrors->setChecked(mSettings->value(SETTINGS_SHOW_ERRORS, true).toBool());
mUI.mResults->ShowResults(SHOW_ALL, mUI.mActionShowAll->isChecked()); mUI.mResults->ShowResults(SHOW_ALL, mUI.mActionShowAll->isChecked());
mUI.mResults->ShowResults(SHOW_ERRORS, mUI.mActionShowErrors->isChecked()); mUI.mResults->ShowResults(SHOW_ERRORS, mUI.mActionShowErrors->isChecked());
mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked()); mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked());
@ -183,7 +171,6 @@ void MainWindow::SaveSettings()
mSettings->setValue(SETTINGS_WINDOW_HEIGHT, size().height()); mSettings->setValue(SETTINGS_WINDOW_HEIGHT, size().height());
mSettings->setValue(SETTINGS_WINDOW_MAXIMIZED, isMaximized()); mSettings->setValue(SETTINGS_WINDOW_MAXIMIZED, isMaximized());
mSettings->setValue(SETTINGS_SHOW_ALL, mUI.mActionShowAll->isChecked()); mSettings->setValue(SETTINGS_SHOW_ALL, mUI.mActionShowAll->isChecked());
mSettings->setValue(SETTINGS_SHOW_STYLE, mUI.mActionShowStyle->isChecked()); mSettings->setValue(SETTINGS_SHOW_STYLE, mUI.mActionShowStyle->isChecked());
mSettings->setValue(SETTINGS_SHOW_ALL_STYLE, mUI.mActionShowAllStyle->isChecked()); mSettings->setValue(SETTINGS_SHOW_ALL_STYLE, mUI.mActionShowAllStyle->isChecked());
@ -241,7 +228,6 @@ void MainWindow::DoCheckFiles(const QStringList &files)
mThread->Check(checkSettings, false); mThread->Check(checkSettings, false);
} }
QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode) QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode)
{ {
QStringList selected; QStringList selected;
@ -399,8 +385,6 @@ void MainWindow::CheckDone()
mUI.mActionSave->setEnabled(true); mUI.mActionSave->setEnabled(true);
} }
// Notify user - if the window is not active - that check is ready // Notify user - if the window is not active - that check is ready
QApplication::alert(this, 3000); QApplication::alert(this, 3000);
} }
@ -443,7 +427,6 @@ void MainWindow::EnableCheckButtons(bool enable)
mUI.mActionCheckDirectory->setEnabled(enable); mUI.mActionCheckDirectory->setEnabled(enable);
} }
void MainWindow::ShowAll(bool checked) void MainWindow::ShowAll(bool checked)
{ {
mUI.mResults->ShowResults(SHOW_ALL, checked); mUI.mResults->ShowResults(SHOW_ALL, checked);
@ -494,8 +477,6 @@ void MainWindow::closeEvent(QCloseEvent *event)
this); this);
msg.exec(); msg.exec();
event->ignore(); event->ignore();
} }
} }
@ -636,7 +617,6 @@ void MainWindow::SetLanguage(int index)
} }
} }
void MainWindow::MapLanguage(QAction *action) void MainWindow::MapLanguage(QAction *action)
{ {
//Find the action that has the language that user clicked //Find the action that has the language that user clicked