Changeset 121324 in webkit
- Timestamp:
- Jun 27, 2012, 12:26:34 AM (14 years ago)
- Location:
- trunk/Source/WebKit/qt
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
examples/platformplugin/WebPlugin.cpp (modified) (5 diffs)
-
examples/platformplugin/WebPlugin.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/qt/ChangeLog
r121241 r121324 1 2012-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 1 17 2012-06-26 Tony Chang <tony@chromium.org> 2 18 -
trunk/Source/WebKit/qt/examples/platformplugin/WebPlugin.cpp
r95901 r121324 127 127 setWindowTitle(QString::fromUtf8(title)); 128 128 else 129 setWindowTitle( "Select item");129 setWindowTitle(QLatin1String("Select item")); 130 130 131 131 QHBoxLayout* hLayout = new QHBoxLayout(this); … … 151 151 : QStyledItemDelegate(parent) 152 152 { 153 tickMark = QIcon::fromTheme( "widgets_tickmark_list").pixmap(48, 48);153 tickMark = QIcon::fromTheme(QLatin1String("widgets_tickmark_list")).pixmap(48, 48); 154 154 } 155 155 … … 173 173 setWindowTitle(QString::fromUtf8(title)); 174 174 else 175 setWindowTitle( "Select items");175 setWindowTitle(QLatin1String("Select items")); 176 176 177 177 QHBoxLayout* hLayout = new QHBoxLayout(this); … … 198 198 done->setText(QString::fromUtf8(title)); 199 199 else 200 done->setText( "Done");200 done->setText(QLatin1String("Done")); 201 201 202 202 done->setMinimumWidth(178); … … 316 316 } 317 317 318 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 318 319 Q_EXPORT_PLUGIN2(platformplugin, WebPlugin) 320 #endif -
trunk/Source/WebKit/qt/examples/platformplugin/WebPlugin.h
r99903 r121324 138 138 Q_OBJECT 139 139 Q_INTERFACES(QWebKitPlatformPlugin) 140 #if QT_VERSION >= 0x050000 141 Q_PLUGIN_METADATA(IID "org.qt-project.QtWebKit.PlatformPluginInterface") 142 #endif 140 143 public: 141 144 virtual bool supportsExtension(Extension extension) const;
Note:
See TracChangeset
for help on using the changeset viewer.