forked from qt-creator/qt-creator
Core: Drop use of QApplication::globalStrut()
Not in Qt 6, and I don't see a difference. Change-Id: I4556e48f9ab60b4024ca46a7ed1389b54744c891 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
@@ -811,7 +811,7 @@ QSize OutputPaneToggleButton::sizeHint() const
|
|||||||
if (!m_badgeNumberLabel.text().isNull())
|
if (!m_badgeNumberLabel.text().isNull())
|
||||||
s.rwidth() += m_badgeNumberLabel.sizeHint().width() + 1;
|
s.rwidth() += m_badgeNumberLabel.sizeHint().width() + 1;
|
||||||
|
|
||||||
return s.expandedTo(QApplication::globalStrut());
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutputPaneToggleButton::paintEvent(QPaintEvent*)
|
void OutputPaneToggleButton::paintEvent(QPaintEvent*)
|
||||||
@@ -934,7 +934,7 @@ OutputPaneManageButton::OutputPaneManageButton()
|
|||||||
QSize OutputPaneManageButton::sizeHint() const
|
QSize OutputPaneManageButton::sizeHint() const
|
||||||
{
|
{
|
||||||
ensurePolished();
|
ensurePolished();
|
||||||
return QSize(numberAreaWidth(), QApplication::globalStrut().height());
|
return QSize(numberAreaWidth(), 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutputPaneManageButton::paintEvent(QPaintEvent*)
|
void OutputPaneManageButton::paintEvent(QPaintEvent*)
|
||||||
|
Reference in New Issue
Block a user