Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8078

Wrong interface function used in "implementing interface factories" example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.6.0, 4.6.1
    • Documentation
    • None
    • f484c7ff9868e5e5e090da43f12774ac4295ab47

    Description

      Link to the documentation concerned:

      http://qt.nokia.com/doc/4.6/accessible.html#implementing-interface-factories

      The example says:

      QAccessibleInterface *sliderFactory(const QString &classname, QObject *object)

      { QAccessibleInterface *interface = 0; if (classname == "QSlider" && object && object->isWidgetType()) interface = new SliderInterface(classname, static_cast<QWidget *>(object)); return interface; }

      Issue: it should not be "SliderInterface" but "AccessibleSlider" and causes confusion.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dm Geir Vattekar
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes