forked from qt-creator/qt-creator
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 <cristian.adam@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user