summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/accessibilitypluginsnippet.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-03-24 12:15:00 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-03-24 12:15:00 (GMT)
commitf484c7ff9868e5e5e090da43f12774ac4295ab47 (patch)
treec26f92253b517b4b00f65b0a2068d239637fb15e /doc/src/snippets/accessibilitypluginsnippet.cpp
parent98d65b5967d5f8a1648d73185986fabab97e692b (diff)
downloadQt-f484c7ff9868e5e5e090da43f12774ac4295ab47.zip
Qt-f484c7ff9868e5e5e090da43f12774ac4295ab47.tar.gz
Qt-f484c7ff9868e5e5e090da43f12774ac4295ab47.tar.bz2
Doc: Work on a11y docs
Task-number: QTBUG-8078
Diffstat (limited to 'doc/src/snippets/accessibilitypluginsnippet.cpp')
-rw-r--r--doc/src/snippets/accessibilitypluginsnippet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/accessibilitypluginsnippet.cpp b/doc/src/snippets/accessibilitypluginsnippet.cpp
index a7e25f0..5c28468 100644
--- a/doc/src/snippets/accessibilitypluginsnippet.cpp
+++ b/doc/src/snippets/accessibilitypluginsnippet.cpp
@@ -52,7 +52,7 @@ public:
//! [0]
QStringList SliderPlugin::keys() const
{
- return QStringList() << "QSlider";
+ return QStringList() << QLatin1String("QSlider");
}
//! [0]
@@ -61,8 +61,8 @@ QAccessibleInterface *SliderPlugin::create(const QString &classname, QObject *ob
{
QAccessibleInterface *interface = 0;
- if (classname == "QSlider" && object && object->isWidgetType())
- interface = new AccessibleSlider(classname, static_cast<QWidget *>(object));
+ if (classname == QLatin1String("QSlider") && object && object->isWidgetType())
+ interface = new QAccessibleSlider(static_cast<QWidget *>(object));
return interface;
}