Changeset 106231 in webkit
- Timestamp:
- Jan 30, 2012 4:10:14 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r106224 r106231 1 2012-01-30 Alexander Færøy <ahf@0x90.dk> 2 3 [Qt] Add "New Window" button to the Qt MiniBrowser 4 https://bugs.webkit.org/show_bug.cgi?id=77281 5 6 Reviewed by Tor Arne Vestbø. 7 8 * MiniBrowser/qt/BrowserWindow.cpp: 9 (BrowserWindow::BrowserWindow): 10 * MiniBrowser/qt/MiniBrowser.qrc: 11 * MiniBrowser/qt/icons/plus.png: Added. 12 * MiniBrowser/qt/qml/BrowserWindow.qml: 13 1 14 2012-01-30 Csaba Osztrogonác <ossy@webkit.org> 2 15 -
trunk/Tools/MiniBrowser/qt/BrowserWindow.cpp
r106003 r106231 54 54 setSource(QUrl("qrc:/qml/BrowserWindow.qml")); 55 55 connect(rootObject(), SIGNAL(pageTitleChanged(QString)), this, SLOT(setWindowTitle(QString))); 56 connect(rootObject(), SIGNAL(newWindow(QString)), this, SLOT(newWindow(QString))); 56 57 if (options->useTraditionalDesktopBehavior()) 57 58 webView()->experimental()->setUseTraditionalDesktopBehaviour(true); -
trunk/Tools/MiniBrowser/qt/MiniBrowser.qrc
r104455 r106231 3 3 <file>icons/info.png</file> 4 4 <file>icons/next.png</file> 5 <file>icons/plus.png</file> 5 6 <file>icons/previous.png</file> 6 7 <file>icons/refresh.png</file> -
trunk/Tools/MiniBrowser/qt/qml/BrowserWindow.qml
r104718 r106231 37 37 38 38 signal pageTitleChanged(string title) 39 signal newWindow(string url) 39 40 40 41 function load(address) { … … 207 208 208 209 options.touchMockingEnabled = !options.touchMockingEnabled 210 } 211 } 212 } 213 214 Rectangle { 215 id: newBrowserWindowButton 216 height: parent.height 217 width: height 218 color: "#efefef" 219 radius: 6 220 221 Image { 222 anchors.centerIn: parent 223 source: "../icons/plus.png" 224 } 225 226 MouseArea { 227 anchors.fill: parent 228 onClicked: { 229 newWindow("about:blank") 209 230 } 210 231 }
Note: See TracChangeset
for help on using the changeset viewer.