src/gui/kernel/qtooltip.cpp
changeset 22 79de32ba3296
parent 19 fcece45ef507
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   166 
   166 
   167 QTipLabel *QTipLabel::instance = 0;
   167 QTipLabel *QTipLabel::instance = 0;
   168 
   168 
   169 QTipLabel::QTipLabel(const QString &text, QWidget *w)
   169 QTipLabel::QTipLabel(const QString &text, QWidget *w)
   170 #ifndef QT_NO_STYLE_STYLESHEET
   170 #ifndef QT_NO_STYLE_STYLESHEET
   171     : QLabel(w, Qt::ToolTip), styleSheetParent(0), widget(0)
   171     : QLabel(w, Qt::ToolTip | Qt::BypassGraphicsProxyWidget), styleSheetParent(0), widget(0)
   172 #else
   172 #else
   173     : QLabel(w, Qt::ToolTip), widget(0)
   173     : QLabel(w, Qt::ToolTip | Qt::BypassGraphicsProxyWidget), widget(0)
   174 #endif
   174 #endif
   175 {
   175 {
   176     delete instance;
   176     delete instance;
   177     instance = this;
   177     instance = this;
   178     setForegroundRole(QPalette::ToolTipText);
   178     setForegroundRole(QPalette::ToolTipText);