⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 121324 in webkit


Ignore:
Timestamp:
Jun 27, 2012, 12:26:34 AM (14 years ago)
Author:
Simon Hausmann
Message:

[Qt] Fix compilation of example platform plugin with Qt 5

Reviewed by Kenneth Christiansen.

Use QLatin1String where appropriate and use the Qt 5 plugin
system with Qt 5.

  • examples/platformplugin/WebPlugin.cpp:

(SingleSelectionPopup::SingleSelectionPopup):
(MultipleItemListDelegate::MultipleItemListDelegate):
(MultipleSelectionPopup::MultipleSelectionPopup):

  • examples/platformplugin/WebPlugin.h:

(WebPlugin):

Location:
trunk/Source/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/ChangeLog

    r121241 r121324  
     12012-06-27  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Fix compilation of example platform plugin with Qt 5
     4
     5        Reviewed by Kenneth Christiansen.
     6
     7        Use QLatin1String where appropriate and use the Qt 5 plugin
     8        system with Qt 5.
     9
     10        * examples/platformplugin/WebPlugin.cpp:
     11        (SingleSelectionPopup::SingleSelectionPopup):
     12        (MultipleItemListDelegate::MultipleItemListDelegate):
     13        (MultipleSelectionPopup::MultipleSelectionPopup):
     14        * examples/platformplugin/WebPlugin.h:
     15        (WebPlugin):
     16
    1172012-06-26  Tony Chang  <tony@chromium.org>
    218
  • trunk/Source/WebKit/qt/examples/platformplugin/WebPlugin.cpp

    r95901 r121324  
    127127        setWindowTitle(QString::fromUtf8(title));
    128128    else
    129         setWindowTitle("Select item");
     129        setWindowTitle(QLatin1String("Select item"));
    130130
    131131    QHBoxLayout* hLayout = new QHBoxLayout(this);
     
    151151           : QStyledItemDelegate(parent)
    152152    {
    153         tickMark = QIcon::fromTheme("widgets_tickmark_list").pixmap(48, 48);
     153        tickMark = QIcon::fromTheme(QLatin1String("widgets_tickmark_list")).pixmap(48, 48);
    154154    }
    155155
     
    173173        setWindowTitle(QString::fromUtf8(title));
    174174    else
    175         setWindowTitle("Select items");
     175        setWindowTitle(QLatin1String("Select items"));
    176176
    177177    QHBoxLayout* hLayout = new QHBoxLayout(this);
     
    198198        done->setText(QString::fromUtf8(title));
    199199    else
    200         done->setText("Done");
     200        done->setText(QLatin1String("Done"));
    201201
    202202    done->setMinimumWidth(178);
     
    316316}
    317317
     318#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
    318319Q_EXPORT_PLUGIN2(platformplugin, WebPlugin)
     320#endif
  • trunk/Source/WebKit/qt/examples/platformplugin/WebPlugin.h

    r99903 r121324  
    138138    Q_OBJECT
    139139    Q_INTERFACES(QWebKitPlatformPlugin)
     140#if QT_VERSION >= 0x050000
     141    Q_PLUGIN_METADATA(IID "org.qt-project.QtWebKit.PlatformPluginInterface")
     142#endif
    140143public:
    141144    virtual bool supportsExtension(Extension extension) const;
Note: See TracChangeset for help on using the changeset viewer.