diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-21 21:35:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-21 21:35:23 +0000 |
commit | ba14d604adfee8b7596e0bfca81ad2720bbc0cf5 (patch) | |
tree | 39eef1b9ea80f73549b5c670bdca92a650bd9bf7 /src/editorwindow.h | |
parent | 0a22de2cb23a1636f076d1dd8a05b7f873b9b653 (diff) |
Show filename in the subwindow title.
Diffstat (limited to 'src/editorwindow.h')
-rw-r--r-- | src/editorwindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editorwindow.h b/src/editorwindow.h index ddd0f57..2a1f3f6 100644 --- a/src/editorwindow.h +++ b/src/editorwindow.h @@ -29,6 +29,13 @@ class EditorWindow : public QWidget public: EditorWindow(QWidget *parent = 0); + + /** + * @brief name of the file being edited + * */ + inline const QString &filename() const { + return editorwindow_filename; + } public slots: bool loadFile(const QString &filename); @@ -38,6 +45,7 @@ protected: virtual void resizeEvent (QResizeEvent *event); private: + QString editorwindow_filename; MapWidget *editorwindow_mapwidget; SideBar *editorwindow_sidebar; QSplitter *editorwindow_splitter; |