Changeset 106231 in webkit


Ignore:
Timestamp:
Jan 30, 2012 4:10:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Add "New Window" button to the Qt MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=77281

Patch by Alexander Færøy <ahf@0x90.dk> on 2012-01-30
Reviewed by Tor Arne Vestbø.

  • MiniBrowser/qt/BrowserWindow.cpp:

(BrowserWindow::BrowserWindow):

  • MiniBrowser/qt/MiniBrowser.qrc:
  • MiniBrowser/qt/icons/plus.png: Added.
  • MiniBrowser/qt/qml/BrowserWindow.qml:
Location:
trunk/Tools
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r106224 r106231  
     12012-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
    1142012-01-30  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Tools/MiniBrowser/qt/BrowserWindow.cpp

    r106003 r106231  
    5454    setSource(QUrl("qrc:/qml/BrowserWindow.qml"));
    5555    connect(rootObject(), SIGNAL(pageTitleChanged(QString)), this, SLOT(setWindowTitle(QString)));
     56    connect(rootObject(), SIGNAL(newWindow(QString)), this, SLOT(newWindow(QString)));
    5657    if (options->useTraditionalDesktopBehavior())
    5758        webView()->experimental()->setUseTraditionalDesktopBehaviour(true);
  • trunk/Tools/MiniBrowser/qt/MiniBrowser.qrc

    r104455 r106231  
    33        <file>icons/info.png</file>
    44        <file>icons/next.png</file>
     5        <file>icons/plus.png</file>
    56        <file>icons/previous.png</file>
    67        <file>icons/refresh.png</file>
  • trunk/Tools/MiniBrowser/qt/qml/BrowserWindow.qml

    r104718 r106231  
    3737
    3838    signal pageTitleChanged(string title)
     39    signal newWindow(string url)
    3940
    4041    function load(address) {
     
    207208
    208209                        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")
    209230                    }
    210231                }
Note: See TracChangeset for help on using the changeset viewer.