summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/componentselectionpage_p.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2019-11-27 08:50:49 +0200
committerKatja Marttila <katja.marttila@qt.io>2019-11-28 08:43:40 +0000
commitecd7fdf878f61485e3a8d159dee9cf8c6ba48869 (patch)
tree9284debbf83acd0b96a69a1688f0305e2cf7ca72 /src/libs/installer/componentselectionpage_p.h
parentd50eb7f9d107c919c84fe8ac083a9c10875f02f1 (diff)
Fix progressbar length in component selection page
Also use QStackedLayout to transform between treeview and progressbar views. This simplifies the code as we hide the treeview, categories etc. and show progressbar instead when we are fetching a new category. QStackedLayout makes it easier as we then don't have to hide/show individual widgets we want to show. Change-Id: I405030e9629052c5ca773a91bc44b66d3d26e137 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Diffstat (limited to 'src/libs/installer/componentselectionpage_p.h')
-rw-r--r--src/libs/installer/componentselectionpage_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/installer/componentselectionpage_p.h b/src/libs/installer/componentselectionpage_p.h
index 591cd08f7..bce13246b 100644
--- a/src/libs/installer/componentselectionpage_p.h
+++ b/src/libs/installer/componentselectionpage_p.h
@@ -45,6 +45,7 @@ class QProgressBar;
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
+class QStackedLayout;
namespace QInstaller {
@@ -89,9 +90,7 @@ private:
PackageManagerCore *m_core;
QTreeView *m_treeView;
QLabel *m_sizeLabel;
- QScrollArea *m_descriptionScrollArea;
QLabel *m_descriptionLabel;
- QVBoxLayout *m_descriptionVLayout;
QPushButton *m_checkAll;
QPushButton *m_uncheckAll;
QPushButton *m_checkDefault;
@@ -100,11 +99,11 @@ private:
QLabel *m_metadataProgressLabel;
QProgressBar *m_progressBar;
QGridLayout *m_mainGLayout;
- QVBoxLayout *m_treeViewVLayout;
bool m_allowCompressedRepositoryInstall;
ComponentModel *m_allModel;
ComponentModel *m_updaterModel;
ComponentModel *m_currentModel;
+ QStackedLayout *m_stackedLayout;
};
} // namespace QInstaller