Commit a6648a99 authored by David Faure's avatar David Faure

Fix connect warning about moveTab

(cherry picked from commit 5a13d42e)
parent a6d78afb
...@@ -115,8 +115,6 @@ KonqFrameTabs::KonqFrameTabs(QWidget *parent, KonqFrameContainerBase *parentCont ...@@ -115,8 +115,6 @@ KonqFrameTabs::KonqFrameTabs(QWidget *parent, KonqFrameContainerBase *parentCont
connect(tabBar(), SIGNAL(tabMoved(int,int)), connect(tabBar(), SIGNAL(tabMoved(int,int)),
SLOT(slotMovedTab(int,int))); SLOT(slotMovedTab(int,int)));
connect(this, SIGNAL(movedTab(int,int)),
SLOT(slotMovedTab(int,int)));
connect(this, SIGNAL(mouseMiddleClick()), connect(this, SIGNAL(mouseMiddleClick()),
SLOT(slotMouseMiddleClick())); SLOT(slotMouseMiddleClick()));
connect(this, SIGNAL(mouseMiddleClick(QWidget*)), connect(this, SIGNAL(mouseMiddleClick(QWidget*)),
...@@ -269,7 +267,7 @@ void KonqFrameTabs::moveTabBackward(int index) ...@@ -269,7 +267,7 @@ void KonqFrameTabs::moveTabBackward(int index)
if (index == 0) { if (index == 0) {
return; return;
} }
moveTab(index, index - 1); tabBar()->moveTab(index, index - 1);
} }
void KonqFrameTabs::moveTabForward(int index) void KonqFrameTabs::moveTabForward(int index)
...@@ -277,7 +275,7 @@ void KonqFrameTabs::moveTabForward(int index) ...@@ -277,7 +275,7 @@ void KonqFrameTabs::moveTabForward(int index)
if (index == count() - 1) { if (index == count() - 1) {
return; return;
} }
moveTab(index, index + 1); tabBar()->moveTab(index, index + 1);
} }
void KonqFrameTabs::slotMovedTab(int from, int to) void KonqFrameTabs::slotMovedTab(int from, int to)
......
...@@ -70,12 +70,6 @@ public: ...@@ -70,12 +70,6 @@ public:
void setTabText(int, const QString &); void setTabText(int, const QString &);
public Q_SLOTS: public Q_SLOTS:
/**
* Move a widget's tab from first to second specified index and emit
* signal movedTab( int, int ) afterwards.
*/
virtual void moveTab(int, int);
/** /**
* Removes the widget, reimplemented for * Removes the widget, reimplemented for
* internal reasons (keeping labels in sync). * internal reasons (keeping labels in sync).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment