diff options
| author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-11 20:43:57 +1000 |
|---|---|---|
| committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-11 20:43:57 +1000 |
| commit | d044c182edda4379e07b7f693d3c14f815fd3842 (patch) | |
| tree | f45e34b509ad835a4611fce06cb394300e5f28f9 /doc/src/snippets | |
| parent | 22c35fb59aee3ae2cb70be891b4f0e376f4ff5c5 (diff) | |
| parent | f6ed698944a75cc7c238a6baf6a359cda81ab1a8 (diff) | |
| download | qt4-tools-d044c182edda4379e07b7f693d3c14f815fd3842.tar.gz | |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team: (119 commits)
Lancelot: support for custom keys added to protocol. API cleanup.
Designer: Allow promoted QWidget's to be buddies.
Designer: Specify 'notr' attribute for buttongroup name.
[QTBUG-15278] QWidget::windowState gets out of sync (Aero Snap)
HTTP cacheing: do not store the date header with the resource
Let's not write to the source buffer when blending argb32 on rgb16.
Add support for -unset <prop> option to qmake.
make -markuntranslated work without -idbased
fix conditional on shell type
Cocoa: p1 bug fix: fix auto test regressions
Ensure shared network session deleted from correct thread
Revert "Remove SIGBUS emission from QNetworkSession destruction."
Image w/ PreserveAspectFit has its width changed once more than needed.
fix QLocalSocket::isValid() on Windows
Cocoa: p1 bug fix: revert use of subWindowStacking
Not possible to enter negative values to widgets with numeric fields
QmlViewer: Enable remote qml debugging
QDeclarativeDebug: Warn user for Qt configured with -no-declarative-debug
Fix typos in QSharedPointer documentation.
Improve Flickable dynamics and allow platform specific tweaking.
...
Diffstat (limited to 'doc/src/snippets')
| -rw-r--r-- | doc/src/snippets/accessibilityfactorysnippet.cpp | 5 | ||||
| -rw-r--r-- | doc/src/snippets/accessibilitypluginsnippet.cpp | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/doc/src/snippets/accessibilityfactorysnippet.cpp b/doc/src/snippets/accessibilityfactorysnippet.cpp index a378db7e6d..6dc6b2a3cd 100644 --- a/doc/src/snippets/accessibilityfactorysnippet.cpp +++ b/doc/src/snippets/accessibilityfactorysnippet.cpp @@ -45,9 +45,8 @@ QAccessibleInterface *sliderFactory(const QString &classname, QObject *object) { QAccessibleInterface *interface = 0; - if (classname == "QSlider" && object && object->isWidgetType()) - interface = new SliderInterface(classname, - static_cast<QWidget *>(object)); + if (classname == QLatin1String("QSlider") && object && object->isWidgetType()) + interface = new QAccessibleSlider(static_cast<QWidget *>(object)); return interface; } diff --git a/doc/src/snippets/accessibilitypluginsnippet.cpp b/doc/src/snippets/accessibilitypluginsnippet.cpp index a7e25f0ff0..5c28468654 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; } |
