From 37291d278ed4f06205d521315136e6fff38e9a8b Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 18 Apr 2012 23:05:31 +0200 Subject: [PATCH] Fix some more lines that are too long. --- src/gui/FileDialog.cpp | 12 ++++++++---- src/gui/FileDialog.h | 10 ++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/gui/FileDialog.cpp b/src/gui/FileDialog.cpp index aa18aeb79..75d73ef91 100644 --- a/src/gui/FileDialog.cpp +++ b/src/gui/FileDialog.cpp @@ -20,7 +20,8 @@ #include "core/Config.h" QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QString dir, - const QString& filter, QString* selectedFilter, QFileDialog::Options options) + const QString& filter, QString* selectedFilter, + QFileDialog::Options options) { if (!m_nextFileName.isEmpty()) { QString result = m_nextFileName; @@ -32,7 +33,8 @@ QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QSt dir = config()->get("LastDir").toString(); } - QString result = QFileDialog::getOpenFileName(parent, caption, dir, filter, selectedFilter, options); + QString result = QFileDialog::getOpenFileName(parent, caption, dir, filter, + selectedFilter, options); if (!result.isEmpty()) { config()->set("LastDir", QFileInfo(result).absolutePath()); @@ -43,7 +45,8 @@ QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QSt } QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QString dir, - const QString& filter, QString* selectedFilter, QFileDialog::Options options) + const QString& filter, QString* selectedFilter, + QFileDialog::Options options) { if (!m_nextFileName.isEmpty()) { QString result = m_nextFileName; @@ -55,7 +58,8 @@ QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QSt dir = config()->get("LastDir").toString(); } - QString result = QFileDialog::getSaveFileName(parent, caption, dir, filter, selectedFilter, options); + QString result = QFileDialog::getSaveFileName(parent, caption, dir, filter, + selectedFilter, options); if (!result.isEmpty()) { config()->set("LastDir", QFileInfo(result).absolutePath()); diff --git a/src/gui/FileDialog.h b/src/gui/FileDialog.h index 5e0acd458..eeb8f8993 100644 --- a/src/gui/FileDialog.h +++ b/src/gui/FileDialog.h @@ -23,10 +23,12 @@ class FileDialog { public: - QString getOpenFileName(QWidget* parent = 0, const QString& caption = QString(), QString dir = QString(), - const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); - QString getSaveFileName(QWidget* parent = 0, const QString& caption = QString(), QString dir = QString(), - const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); + QString getOpenFileName(QWidget* parent = 0, const QString& caption = QString(), + QString dir = QString(), const QString& filter = QString(), + QString* selectedFilter = 0, QFileDialog::Options options = 0); + QString getSaveFileName(QWidget* parent = 0, const QString& caption = QString(), + QString dir = QString(), const QString& filter = QString(), + QString* selectedFilter = 0, QFileDialog::Options options = 0); /** * Sets the result of the next get* method call.