diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 12:05:48 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-21 12:05:48 +0200 |
commit | 78325dc56078f7991068eb7b2dbe0e25ab7dc924 (patch) | |
tree | 8c0e3f35567770cc5e5767811d5121e21b7209bf /src/mainwindow.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-78325dc56078f7991068eb7b2dbe0e25ab7dc924.tar.xz |
inlined some of the most used get functions
to speed up a bit
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c56dcf76..2287370c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -265,12 +265,6 @@ QSize MainWindow::sizeHint() const } -KActionCollection *MainWindow::actionCollection() const -{ - return m_ac; -} - - void MainWindow::setupActions() { // this let shortcuts work.. @@ -984,13 +978,6 @@ void MainWindow::homePage(Qt::MouseButtons mouseButtons, Qt::KeyboardModifiers k } -MainView *MainWindow::mainView() const -{ - return m_view; -} - - - WebTab *MainWindow::currentTab() const { return m_view->currentWebTab(); @@ -1124,20 +1111,6 @@ void MainWindow::keyPressEvent(QKeyEvent *event) } -QAction *MainWindow::actionByName(const QString &name) -{ - QAction *ret = actionCollection()->action(name); - - if (ret) - return ret; - - /* else */ - kDebug() << "Action named: " << name << " not found, returning empty action."; - - return new QAction(this); // return empty object instead of NULL pointer -} - - void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status) { if (this != QApplication::activeWindow()) |