From 3b4e63173d5f762a368d159e21f76e2df3fcf8ab Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 27 Sep 2014 13:28:44 +0200 Subject: 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 --- utils/regtools/qeditor/mainwindow.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/regtools/qeditor/mainwindow.h') 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: DocumentTab() { m_tab = 0; } virtual bool Quit() = 0; virtual QWidget *GetWidget() = 0; - void SetTabWidget(MyTabWidget *tab) { m_tab = tab; } + void SetTabWidget(MyTabWidget *tab); protected: void OnModified(bool modified); void SetTabName(const QString& name); MyTabWidget *m_tab; + QString m_tabname; }; class MyTabWidget : public QTabWidget @@ -70,7 +71,7 @@ private: void closeEvent(QCloseEvent *event); protected: - void AddTab(DocumentTab *tab, const QString& title); + void AddTab(DocumentTab *tab); bool Quit(); private slots: -- cgit