aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-14 13:42:26 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-15 09:13:58 +0900
commitb28237309a5fd3af527d71fe0d4dfada7a11107c (patch)
treedcd55814792d99e5c5abeea2a2da2e02cf594fcd /qt-ui/mainwindow.h
parente2a4da767d13a6ab4c4f2e10400823e5708c40bf (diff)
downloadsubsurface-b28237309a5fd3af527d71fe0d4dfada7a11107c.tar.gz
Good deal of code Cleanup.
Rewrite of the way we handle the last used directory for the loading / saving of files. we didn't reuse anything for the code, and that's error prone and also dumb =p. Reworked that so we have a nice method to help us out on that. lastUsedDir and updateLastUsedDir Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index a7dafb48b..c0d5f245b 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -126,6 +126,8 @@ private:
void file_save_as();
void beginChangeState(CurrentState s);
void saveSplitterSizes();
+ QString lastUsedDir();
+ void updateLastUsedDir(const QString& s);
};
MainWindow *mainWindow();