Changeset 87724 in webkit


Ignore:
Timestamp:
May 31, 2011 6:32:46 AM (13 years ago)
Author:
Csaba Osztrogonác
Message:

[Qt] Implement find feature for QtTestBrowser
https://bugs.webkit.org/show_bug.cgi?id=61425

Patch by Kristóf Kosztyó <Kosztyo.Kristof@stud.u-szeged.hu> on 2011-05-31
Reviewed by Csaba Osztrogonác.

Buildfix for --minimal and CONFIG+=qt_minimal build.

  • QtTestBrowser/launcherwindow.cpp:

(LauncherWindow::LauncherWindow):
(LauncherWindow::createChrome):

  • QtTestBrowser/launcherwindow.h:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r87720 r87724  
     12011-05-31  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
     2
     3        Reviewed by Csaba Osztrogonác.
     4
     5        [Qt] Implement find feature for QtTestBrowser
     6        https://bugs.webkit.org/show_bug.cgi?id=61425
     7
     8        Buildfix for --minimal and CONFIG+=qt_minimal build.
     9
     10        * QtTestBrowser/launcherwindow.cpp:
     11        (LauncherWindow::LauncherWindow):
     12        (LauncherWindow::createChrome):
     13        * QtTestBrowser/launcherwindow.h:
     14
    1152011-05-31  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
    216
  • trunk/Tools/QtTestBrowser/launcherwindow.cpp

    r87720 r87724  
    4747    , m_formatMenuAction(0)
    4848    , m_zoomAnimation(0)
     49#ifndef QT_NO_LINEEDIT
    4950    , m_findFlag(0)
     51#endif
    5052{
    5153    if (data)
     
    199201    editMenu->addAction(page()->action(QWebPage::Paste));
    200202    editMenu->addSeparator();
     203#ifndef QT_NO_LINEEDIT
    201204    editMenu->addAction("&Find", this, SLOT(showFindBar()), QKeySequence(Qt::CTRL | Qt::Key_F));
    202205    editMenu->addSeparator();
     206#endif
    203207    QAction* setEditable = editMenu->addAction("Set Editable", this, SLOT(setEditable(bool)));
    204208    setEditable->setCheckable(true);
     
    411415    toggleJavascriptCanOpenWindows->setCheckable(true);
    412416    toggleJavascriptCanOpenWindows->setChecked(false);
    413 
     417#ifndef QT_NO_LINEEDIT
    414418    m_findBar = new QToolBar("Find", this);
    415419    addToolBar(Qt::BottomToolBarArea, m_findBar);
     
    454458    m_findBar->setMovable(false);
    455459    m_findBar->setVisible(false);
     460#endif
    456461#endif
    457462}
     
    10231028}
    10241029
     1030#ifndef QT_NO_LINEEDIT
    10251031void LauncherWindow::showFindBar()
    10261032{
     
    10581064        page()->findText(m_lineEdit->text(), QFlag(m_findFlag));
    10591065}
     1066#endif
  • trunk/Tools/QtTestBrowser/launcherwindow.h

    r87720 r87724  
    191191    void toggleOfflineWebApplicationCache(bool toggle);
    192192    void setOfflineStorageDefaultQuota();
    193 
     193#ifndef QT_NO_LINEEDIT
    194194    void showFindBar();
    195195    void find(int mode);
     196#endif
    196197#if defined(QT_CONFIGURED_WITH_OPENGL)
    197198    void toggleQGLWidgetViewport(bool enable);
     
    242243
    243244    QString m_inputUrl;
    244 
     245#ifndef QT_NO_LINEEDIT
    245246    QToolBar* m_findBar;
    246247    QLineEdit* m_lineEdit;
    247248    int m_findFlag;
    248249    static const int s_findNormalFlag = 0;
     250#endif
    249251};
    250252
Note: See TracChangeset for help on using the changeset viewer.