diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-29 19:59:08 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-29 19:59:08 +0200 |
commit | 5179aed3a066dfc9885a75d36a0e64c48aa448f7 (patch) | |
tree | ec0c656f06ca923b86a9025c0904cfc7c7f81845 /gui/pagedialog/PageDialog.h | |
parent | 77de2d1e5472051cd05857dc4304bdc9ad77e36d (diff) | |
download | MultiMC-5179aed3a066dfc9885a75d36a0e64c48aa448f7.tar MultiMC-5179aed3a066dfc9885a75d36a0e64c48aa448f7.tar.gz MultiMC-5179aed3a066dfc9885a75d36a0e64c48aa448f7.tar.lz MultiMC-5179aed3a066dfc9885a75d36a0e64c48aa448f7.tar.xz MultiMC-5179aed3a066dfc9885a75d36a0e64c48aa448f7.zip |
Separate page dialog into a page container and a dialog.
Diffstat (limited to 'gui/pagedialog/PageDialog.h')
-rw-r--r-- | gui/pagedialog/PageDialog.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/gui/pagedialog/PageDialog.h b/gui/pagedialog/PageDialog.h index 88926ef1..097eac64 100644 --- a/gui/pagedialog/PageDialog.h +++ b/gui/pagedialog/PageDialog.h @@ -15,17 +15,9 @@ #pragma once #include <QDialog> -#include <QModelIndex> #include <gui/pages/BasePageProvider.h> -class IconLabel; -class QSortFilterProxyModel; -class PageModel; -class QLabel; -class QListView; -class QLineEdit; -class QStackedLayout; - +class PageContainer; class PageDialog : public QDialog { Q_OBJECT @@ -34,23 +26,10 @@ public: QWidget *parent = 0); virtual ~PageDialog() {}; -private: - void createUI(); private slots: - void currentChanged(const QModelIndex ¤t); - void showPage(int row); - void help(); virtual void closeEvent(QCloseEvent *event); - private: - BasePage * m_currentPage; - QSortFilterProxyModel *m_proxyModel; - PageModel *m_model; - QStackedLayout *m_pageStack; - QLineEdit *m_filter; - QListView *m_pageList; - QLabel *m_header; - IconLabel *m_iconHeader; + PageContainer * m_container; }; |