diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-04-27 17:34:50 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-04-27 18:14:22 +0200 |
commit | 8af3500125a03a54dddb8c46ee709b7b8d257f27 (patch) | |
tree | a62d474028858dddd5f6f80b4a7c3f2270af343d /src/gui/widgets/qlineedit.cpp | |
parent | 3cdde3b112f0c69e497d72d195b9ccc44d0048ab (diff) | |
download | qt4-tools-8af3500125a03a54dddb8c46ee709b7b8d257f27.tar.gz |
Fixes QLabel:hover{color:...} for simple text
(This was only working if the QLabel had a QTextControl)
Also rename the QStyleSheetStyle::focusPalette to ...::styleSheetPalette
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index e243ad0002..d16ed10384 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -2518,7 +2518,7 @@ void QLineEdit::paintEvent(QPaintEvent *) // draw text, selections and cursors #ifndef QT_NO_STYLE_STYLESHEET if (QStyleSheetStyle* cssStyle = qobject_cast<QStyleSheetStyle*>(style())) { - cssStyle->focusPalette(this, &panel, &pal); + cssStyle->styleSheetPalette(this, &panel, &pal); } #endif p.setPen(pal.text().color()); |