summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qfontcombobox.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-12-07 05:08:30 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-12-07 05:08:30 (GMT)
commit569dfab376d9f63422791566d1888618934ffdc3 (patch)
tree7098d0e33f0cdb19b144f33318210bf801575c42 /src/gui/widgets/qfontcombobox.cpp
parente68fa8d463ff10f7eb2b486362ef73eea9271ff8 (diff)
parentbd23da275dc88951e17137ef02147c9b5499bce7 (diff)
downloadQt-569dfab376d9f63422791566d1888618934ffdc3.zip
Qt-569dfab376d9f63422791566d1888618934ffdc3.tar.gz
Qt-569dfab376d9f63422791566d1888618934ffdc3.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/gui/widgets/qfontcombobox.cpp')
-rw-r--r--src/gui/widgets/qfontcombobox.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/qfontcombobox.cpp b/src/gui/widgets/qfontcombobox.cpp
index d601f81..b976b94 100644
--- a/src/gui/widgets/qfontcombobox.cpp
+++ b/src/gui/widgets/qfontcombobox.cpp
@@ -269,9 +269,8 @@ void QFontComboBoxPrivate::_q_updateModel()
void QFontComboBoxPrivate::_q_currentChanged(const QString &text)
{
Q_Q(QFontComboBox);
- QFont newFont(text);
- if (currentFont.family() != newFont.family()) {
- currentFont = newFont;
+ if (currentFont.family() != text) {
+ currentFont.setFamily(text);
emit q->currentFontChanged(currentFont);
}
}