summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-11 17:43:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-11 23:10:09 -0600
commit4ac5b9c9654e6d561c05451888f337de2d1b7cf7 (patch)
tree726d480ed8ca854b6d98e068fb04db0a0038a4fd /desktop-widgets/mainwindow.h
parent931bcc196644c79e1064a9cb1b9c80e82fe0ed06 (diff)
downloadsubsurface-4ac5b9c9654e6d561c05451888f337de2d1b7cf7.tar.gz
Simplify mainwindow title logic: remove MainWindowTitleFormat enum
The MainWindow::setTitle() function was passed an enum, which depended on whether existing_file is set or not. The check can be (and was!) done directly in setTitle(). Therefore, remove the whole enum. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r--desktop-widgets/mainwindow.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index ca1bf8962..7c44cb425 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -41,11 +41,6 @@ class LocationInformationWidget;
typedef std::pair<QByteArray, QVariant> WidgetProperty;
typedef QVector<WidgetProperty> PropertyList;
-enum MainWindowTitleFormat {
- MWTF_DEFAULT,
- MWTF_FILENAME
-};
-
class MainWindow : public QMainWindow {
Q_OBJECT
public:
@@ -74,7 +69,7 @@ public:
DivePlannerWidget *divePlannerWidget();
PlannerSettingsWidget *divePlannerSettingsWidget();
LocationInformationWidget *locationInformationWidget();
- void setTitle(enum MainWindowTitleFormat format = MWTF_FILENAME);
+ void setTitle();
void loadFiles(const QStringList files);
void importFiles(const QStringList importFiles);