aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/extensionmanager/extensionmanagerwidget.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2024-10-10 12:35:48 +0200
committerAlessandro Portale <[email protected]>2024-10-10 11:38:15 +0000
commitca5583af2e8d975c566de96306766e1c911a5832 (patch)
treef0094eb446beef95208fdbf6855565858202c918 /src/plugins/extensionmanager/extensionmanagerwidget.cpp
parent752fdef488469372ce15f1e4c9d1b5bfb757cff3 (diff)
ExtensionManager: Give description more space
Reduce the ratio of "browser space" to 1/3 of the available width. Base the hiding of the secondary description on the actual description area width. A second browser column will now appear only on monitors with more than 2200px width (in user space). Basically only on extra wide screens. Fixes: QTCREATORBUG-31777 Change-Id: Id0e8475d19b6e980974a6c5835c388b0f4674dae Reviewed-by: Cristian Adam <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/extensionmanager/extensionmanagerwidget.cpp')
-rw-r--r--src/plugins/extensionmanager/extensionmanagerwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/extensionmanager/extensionmanagerwidget.cpp b/src/plugins/extensionmanager/extensionmanagerwidget.cpp
index 377e63fd4e4..77b93ef84d6 100644
--- a/src/plugins/extensionmanager/extensionmanagerwidget.cpp
+++ b/src/plugins/extensionmanager/extensionmanagerwidget.cpp
@@ -675,9 +675,10 @@ ExtensionManagerWidget::ExtensionManagerWidget()
connect(m_extensionBrowser, &ExtensionsBrowser::itemSelected,
this, &ExtensionManagerWidget::updateView);
connect(this, &ResizeSignallingWidget::resized, this, [this](const QSize &size) {
- const int intendedBrowserColumnWidth = size.width() - 580;
+ const int intendedBrowserColumnWidth = size.width() / 3;
m_extensionBrowser->adjustToWidth(intendedBrowserColumnWidth);
- const bool secondaryDescriptionVisible = size.width() > 970;
+ const int availableDescriptionWidth = size.width() - m_extensionBrowser->width();
+ const bool secondaryDescriptionVisible = availableDescriptionWidth > 1000;
const int secondaryDescriptionWidth = secondaryDescriptionVisible ? 264 : 0;
m_secondaryDescriptionWidget->setWidth(secondaryDescriptionWidth);
});