diff options
| author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-14 00:06:27 +0100 | 
|---|---|---|
| committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-14 00:08:31 +0100 | 
| commit | cf5d70ff31a166cb13f5c042f019e6193f97526d (patch) | |
| tree | 5889286127857607dbc4319bf89ab55b3a10f19a /src | |
| parent | Add middle click support for next, back and home in the main toolbar (diff) | |
| download | rekonq-cf5d70ff31a166cb13f5c042f019e6193f97526d.tar.xz | |
Use default value instead of a different function
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 18 | ||||
| -rw-r--r-- | src/mainwindow.h | 9 | 
2 files changed, 3 insertions, 24 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a2768bb6..4b48157b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -941,12 +941,6 @@ void MainWindow::homePage(Qt::MouseButtons btn)  } -void MainWindow::homePage() -{ -    homePage(Qt::LeftButton); -} - -  MainView *MainWindow::mainView() const  {      return m_view; @@ -984,12 +978,6 @@ void MainWindow::browserLoading(bool v)  } -void MainWindow::openPrevious() -{ -    openPrevious(Qt::LeftButton); -} - -  void MainWindow::openPrevious(Qt::MouseButtons btn)  {      QWebHistory *history = currentTab()->view()->history(); @@ -1004,12 +992,6 @@ void MainWindow::openPrevious(Qt::MouseButtons btn)  } -void MainWindow::openNext() -{ -    openNext(Qt::LeftButton); -} - -  void MainWindow::openNext(Qt::MouseButtons btn)  {      QWebHistory *history = currentTab()->view()->history(); diff --git a/src/mainwindow.h b/src/mainwindow.h index 9e491c69..b693fec1 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -87,8 +87,7 @@ private:      void setupPanels();  public slots: -    void homePage(); -    void homePage(Qt::MouseButtons); +    void homePage(Qt::MouseButtons = Qt::LeftButton);      /**       * Notifies a message in a popup @@ -123,10 +122,8 @@ private slots:      void updateWindowTitle(const QString &title = QString());      // history related -    void openPrevious(); -    void openPrevious(Qt::MouseButtons); -    void openNext(); -    void openNext(Qt::MouseButtons); +    void openPrevious(Qt::MouseButtons = Qt::LeftButton); +    void openNext(Qt::MouseButtons = Qt::LeftButton);      // Find Action slots      void find(const QString &);  | 
