Commit b32873d3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.designModeWidget: fix style of error tooltip

DocumentWarningWidget is now derived from Utils::FakeToolTip and follows
the Qt Creator styling.
parent 61edaf77
......@@ -90,13 +90,12 @@ namespace QmlDesigner {
namespace Internal {
DocumentWarningWidget::DocumentWarningWidget(DesignModeWidget *parent) :
QFrame(parent),
Utils::FakeToolTip(parent),
m_errorMessage(new QLabel("Placeholder", this)),
m_goToError(new QLabel(this)),
m_designModeWidget(parent)
{
setFrameStyle(QFrame::Panel | QFrame::Raised);
setLineWidth(1);
setWindowFlags(Qt::Widget); //We only want the visual style from a ToolTip
setForegroundRole(QPalette::ToolTipText);
setBackgroundRole(QPalette::ToolTipBase);
setAutoFillBackground(true);
......
......@@ -32,6 +32,7 @@
#include <coreplugin/minisplitter.h>
#include <coreplugin/editormanager/ieditor.h>
#include <utils/faketooltip.h>
#include <texteditor/itexteditor.h>
#include <integrationcore.h>
......@@ -78,7 +79,7 @@ class DesignMode;
class DocumentWidget;
class DesignModeWidget;
class DocumentWarningWidget : public QFrame
class DocumentWarningWidget : public Utils::FakeToolTip
{
Q_OBJECT
Q_DISABLE_COPY(DocumentWarningWidget)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment