aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/fancyactionbar.cpp
diff options
context:
space:
mode:
authorDenis Mingulov <denis@mingulov.com>2012-01-30 16:39:10 +0200
committerhjk <qthjk@ovi.com>2012-01-30 17:50:45 +0100
commita36d587ccf1fc8729bff06a13c53bb8b2bde9955 (patch)
treed48b5ac4c4eb9f86f83bcf7c760ea5c32181c302 /src/plugins/coreplugin/fancyactionbar.cpp
parent2f27c73c8ea18eaee2b6f42d51de38b9e7a94d90 (diff)
Fix non-needed usage of QString's fromLocal8Bit() and fromUtf8()
QString::fromLocal8Bit() and QString::fromUtf8() are much more slower than an obvious QString::fromLatin1() and QLatin1String(), so this commit changes some places where these functions are really not needed. QString::fromLatin1() is used in case if QString object is used immediately (something like QString::fromLatin1().arg()), QLatin1String is used otherwise like in other places (for example, QPixmap(QLatin1String("..."))) - to allow to use default QString constructor and work with QT_NO_CAST_FROM_ASCII. Change-Id: Ib6eb1c61e9cb35c7c5b7569fea77c5e41d32621a Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/coreplugin/fancyactionbar.cpp')
-rw-r--r--src/plugins/coreplugin/fancyactionbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp
index 346f940bf7..8a49772ce8 100644
--- a/src/plugins/coreplugin/fancyactionbar.cpp
+++ b/src/plugins/coreplugin/fancyactionbar.cpp
@@ -320,7 +320,7 @@ void FancyToolButton::actionChanged()
FancyActionBar::FancyActionBar(QWidget *parent)
: QWidget(parent)
{
- setObjectName(QString::fromUtf8("actionbar"));
+ setObjectName(QLatin1String("actionbar"));
m_actionsLayout = new QVBoxLayout;
QVBoxLayout *spacerLayout = new QVBoxLayout;
spacerLayout->addLayout(m_actionsLayout);