diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 11:47:31 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 14:07:03 (GMT) |
commit | a208e75bcdeb4fe39e82d0f86cc2cd72980f40a4 (patch) | |
tree | d32cd568f6b12105fb86d7ac40255c07683981e2 /src/gui | |
parent | 35e2a2978a2318ca025393a8f67d30746c8b78fc (diff) | |
download | Qt-a208e75bcdeb4fe39e82d0f86cc2cd72980f40a4.zip Qt-a208e75bcdeb4fe39e82d0f86cc2cd72980f40a4.tar.gz Qt-a208e75bcdeb4fe39e82d0f86cc2cd72980f40a4.tar.bz2 |
small change in a string, using startsWith
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qstylefactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qstylefactory.cpp b/src/gui/styles/qstylefactory.cpp index 70717db..376aa0f 100644 --- a/src/gui/styles/qstylefactory.cpp +++ b/src/gui/styles/qstylefactory.cpp @@ -170,7 +170,7 @@ QStyle *QStyleFactory::create(const QString& key) else #endif #ifndef QT_NO_STYLE_MAC - if (style.left(9) == QLatin1String("macintosh")) { + if (style.startsWith(QLatin1String("macintosh"))) { ret = new QMacStyle; # ifdef Q_WS_MAC if (style == QLatin1String("macintosh")) |