diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-09-27 13:28:44 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-12-15 22:52:35 +0100 |
commit | 3b4e63173d5f762a368d159e21f76e2df3fcf8ab (patch) | |
tree | 286fcb801ec69ae20e67a00229403310e7de886b /utils/regtools/qeditor/mainwindow.h | |
parent | fe1fed88732ac84f5a4196c5936c99e9750a6525 (diff) | |
download | rockbox-3b4e63173d5f762a368d159e21f76e2df3fcf8ab.tar.gz rockbox-3b4e63173d5f762a368d159e21f76e2df3fcf8ab.zip |
qeditor: rework mainwindow tab names handling
With the previous code, tab names would be ignored if tab is detached
which can happen early on.
Change-Id: I9eac4202850f3e79a04590a4ba1444850ec6a583
Reviewed-on: http://gerrit.rockbox.org/986
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/regtools/qeditor/mainwindow.h')
-rw-r--r-- | utils/regtools/qeditor/mainwindow.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/regtools/qeditor/mainwindow.h b/utils/regtools/qeditor/mainwindow.h index 67d33244ba..c5da66758e 100644 --- a/utils/regtools/qeditor/mainwindow.h +++ b/utils/regtools/qeditor/mainwindow.h | |||
@@ -35,12 +35,13 @@ public: | |||
35 | DocumentTab() { m_tab = 0; } | 35 | DocumentTab() { m_tab = 0; } |
36 | virtual bool Quit() = 0; | 36 | virtual bool Quit() = 0; |
37 | virtual QWidget *GetWidget() = 0; | 37 | virtual QWidget *GetWidget() = 0; |
38 | void SetTabWidget(MyTabWidget *tab) { m_tab = tab; } | 38 | void SetTabWidget(MyTabWidget *tab); |
39 | 39 | ||
40 | protected: | 40 | protected: |
41 | void OnModified(bool modified); | 41 | void OnModified(bool modified); |
42 | void SetTabName(const QString& name); | 42 | void SetTabName(const QString& name); |
43 | MyTabWidget *m_tab; | 43 | MyTabWidget *m_tab; |
44 | QString m_tabname; | ||
44 | }; | 45 | }; |
45 | 46 | ||
46 | class MyTabWidget : public QTabWidget | 47 | class MyTabWidget : public QTabWidget |
@@ -70,7 +71,7 @@ private: | |||
70 | void closeEvent(QCloseEvent *event); | 71 | void closeEvent(QCloseEvent *event); |
71 | 72 | ||
72 | protected: | 73 | protected: |
73 | void AddTab(DocumentTab *tab, const QString& title); | 74 | void AddTab(DocumentTab *tab); |
74 | bool Quit(); | 75 | bool Quit(); |
75 | 76 | ||
76 | private slots: | 77 | private slots: |