diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-10-02 00:55:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-10-02 00:55:34 +0200 |
commit | a1d501d3949e12f5af93481327e8f155f62f01f8 (patch) | |
tree | fb742cef37d354b7eb39c4880271294930b5400a /application/MainWindow.h | |
parent | ea71281629706b4a8187108e4877b440e0e9b4df (diff) | |
download | MultiMC-a1d501d3949e12f5af93481327e8f155f62f01f8.tar MultiMC-a1d501d3949e12f5af93481327e8f155f62f01f8.tar.gz MultiMC-a1d501d3949e12f5af93481327e8f155f62f01f8.tar.lz MultiMC-a1d501d3949e12f5af93481327e8f155f62f01f8.tar.xz MultiMC-a1d501d3949e12f5af93481327e8f155f62f01f8.zip |
NOISSUE refactor the MainWindow UI creation
It was ugly generated code with no rhyme or reason to it.
Now all the relevant code is grouped and language switching works a little better.
Diffstat (limited to 'application/MainWindow.h')
-rw-r--r-- | application/MainWindow.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/application/MainWindow.h b/application/MainWindow.h index 1ed5f052..e22b96c0 100644 --- a/application/MainWindow.h +++ b/application/MainWindow.h @@ -74,6 +74,10 @@ private slots: void on_actionChangeInstGroup_triggered(); void on_actionChangeInstIcon_triggered(); + void on_changeIconButton_clicked(bool) + { + on_actionChangeInstIcon_triggered(); + } void on_actionViewInstanceFolder_triggered(); @@ -114,6 +118,10 @@ private slots: void on_actionExportInstance_triggered(); void on_actionRenameInstance_triggered(); + void on_renameButton_clicked(bool) + { + on_actionRenameInstance_triggered(); + } void on_actionEditInstance_triggered(); @@ -185,14 +193,11 @@ private: // these are managed by Qt's memory management model! GroupView *view = nullptr; InstanceProxyModel *proxymodel = nullptr; - LabeledToolButton *renameButton = nullptr; - LabeledToolButton *changeIconButton = nullptr; QToolButton *newsLabel = nullptr; QLabel *m_statusLeft = nullptr; ServerStatus *m_statusRight = nullptr; QMenu *accountMenu = nullptr; QToolButton *accountMenuButton = nullptr; - QAction *manageAccountsAction = nullptr; unique_qobject_ptr<NetJob> skin_download_job; unique_qobject_ptr<NewsChecker> m_newsChecker; |