forked from qt-creator/qt-creator
QmlDesigner: Cleaning up DocumentWarningWidget
This patch also simplifies DocumentWarningWidget. Task-number: QTCREATORBUG-16539 Change-Id: I64a715c2a0eaf12a8515a59566e7b22c86ad8928 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Alessandro Portale
parent
6d4b944683
commit
a72c24a0fd
@@ -52,10 +52,6 @@ DocumentWarningWidget::DocumentWarningWidget(QWidget *parent)
|
||||
, m_ignoreWarningsCheckBox(new QCheckBox(this))
|
||||
, m_continueButton(new QPushButton(this))
|
||||
{
|
||||
setWindowFlags(Qt::Widget); //We only want the visual style from a ToolTip
|
||||
setForegroundRole(QPalette::ToolTipText);
|
||||
setBackgroundRole(QPalette::ToolTipBase);
|
||||
|
||||
QFont boldFont = font();
|
||||
boldFont.setBold(true);
|
||||
m_headerLabel->setFont(boldFont);
|
||||
|
||||
Reference in New Issue
Block a user