diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-05 16:35:40 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-05 16:35:40 +0200 | 
| commit | 2ae285b5c676a39d36384cd7240a1344a5fa250b (patch) | |
| tree | c35f08dee1798fb0043f3b197167b2c8976238c5 /src | |
| parent | Upgrading rekonq UI, 1st step (diff) | |
| download | rekonq-2ae285b5c676a39d36384cd7240a1344a5fa250b.tar.xz | |
commented out unuseful tab shortcuts..
Diffstat (limited to 'src')
| -rw-r--r-- | src/tabbar.cpp | 36 | ||||
| -rw-r--r-- | src/tabbar.h | 2 | 
2 files changed, 19 insertions, 19 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 8163cb5c..ef4fbb7c 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -51,13 +51,13 @@ TabBar::TabBar(QWidget *parent)      connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenuRequested(const QPoint &))); -    // we count to 9 because Ctrl+0 is already taken by Normal Font -    for (int i = 1; i < 10; ++i) -    { -        QShortcut *tabShortCut = new QShortcut(QString("Ctrl+%1").arg(i), this); -        connect(tabShortCut, SIGNAL(activated()), this, SLOT(selectTabAction())); -        m_tabShortcuts.append(tabShortCut); -    } +//     // we count to 9 because Ctrl+0 is already taken by Normal Font +//     for (int i = 1; i < 10; ++i) +//     { +//         QShortcut *tabShortCut = new QShortcut(QString("Ctrl+%1").arg(i), this); +//         connect(tabShortCut, SIGNAL(activated()), this, SLOT(selectTabAction())); +//         m_tabShortcuts.append(tabShortCut); +//     }      QFont standardFont = KGlobalSettings::generalFont();      QString fontFamily = standardFont.family(); @@ -100,17 +100,17 @@ QSize TabBar::tabSizeHint(int index) const  } -void TabBar::selectTabAction() -{ -    if (QShortcut *shortCut = qobject_cast<QShortcut*>(sender())) -    { -        int index = m_tabShortcuts.indexOf(shortCut); -        if (index != 0) -        { -            setCurrentIndex(index); -        } -    } -} +// void TabBar::selectTabAction() +// { +//     if (QShortcut *shortCut = qobject_cast<QShortcut*>(sender())) +//     { +//         int index = m_tabShortcuts.indexOf(shortCut); +//         if (index != 0) +//         { +//             setCurrentIndex(index); +//         } +//     } +// }  void TabBar::contextMenuRequested(const QPoint &position) diff --git a/src/tabbar.h b/src/tabbar.h index ba057e36..b26a62df 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -65,7 +65,7 @@ protected:      virtual QSize tabSizeHint(int index) const;  private slots: -    void selectTabAction(); +//     void selectTabAction();      void cloneTab();      void closeTab();      void closeOtherTabs();  | 
