forked from qt-creator/qt-creator
ProjectExplorer: Remove Icon from main panel
Only a few panels come with an icon, and then the icon is unthemed and only for standard dpi (original design file is unavailable). The gained space benefits the vertical output pane on the right. Fixes: QTCREATORBUG-21917 Change-Id: Ie717ee7a08cbd21292a8e051c41406df58cad6d6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -262,9 +262,7 @@ QVariant MiscSettingsPanelItem::data(int column, int role) const
|
||||
if (role == PanelWidgetRole) {
|
||||
if (!m_widget) {
|
||||
QWidget *widget = m_factory->createWidget(m_project);
|
||||
m_widget = new PanelsWidget(m_factory->displayName(),
|
||||
QIcon(m_factory->icon()),
|
||||
widget);
|
||||
m_widget = new PanelsWidget(m_factory->displayName(), widget);
|
||||
m_widget->setFocusProxy(widget);
|
||||
}
|
||||
|
||||
@@ -610,7 +608,8 @@ public:
|
||||
|
||||
auto innerLayout = new QVBoxLayout;
|
||||
innerLayout->setSpacing(10);
|
||||
innerLayout->setContentsMargins(14, innerLayout->spacing(), 14, 0);
|
||||
innerLayout->setContentsMargins(PanelsWidget::PanelVMargin, innerLayout->spacing(),
|
||||
PanelsWidget::PanelVMargin, 0);
|
||||
innerLayout->addWidget(m_manageKits);
|
||||
innerLayout->addSpacerItem(new QSpacerItem(10, 30, QSizePolicy::Maximum, QSizePolicy::Maximum));
|
||||
innerLayout->addWidget(activeLabel);
|
||||
|
||||
Reference in New Issue
Block a user