summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qfontcombobox.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-07 22:29:43 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-07 22:29:43 (GMT)
commitef5850afa68f148ab72d46bf64a8a1be1a70bb3b (patch)
treebe4d94ab6c8cfa6710ff4c2fb5f4dcfa4e364871 /src/gui/widgets/qfontcombobox.cpp
parent29e5c9b27302e455b1ae9d324687ded3a40066d2 (diff)
parent0a9aa40dd9865e61f2799a6396ce8dcaa68329c5 (diff)
downloadQt-ef5850afa68f148ab72d46bf64a8a1be1a70bb3b.zip
Qt-ef5850afa68f148ab72d46bf64a8a1be1a70bb3b.tar.gz
Qt-ef5850afa68f148ab72d46bf64a8a1be1a70bb3b.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: src/declarative/qml/qmlengine.cpp
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);
}
}