Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
Konqueror
Commits
a6648a99
Commit
a6648a99
authored
Nov 23, 2019
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix connect warning about moveTab
(cherry picked from commit
5a13d42e
)
parent
a6d78afb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
src/konqtabs.cpp
src/konqtabs.cpp
+2
-4
src/ktabwidget.h
src/ktabwidget.h
+0
-6
No files found.
src/konqtabs.cpp
View file @
a6648a99
...
...
@@ -115,8 +115,6 @@ KonqFrameTabs::KonqFrameTabs(QWidget *parent, KonqFrameContainerBase *parentCont
connect
(
tabBar
(),
SIGNAL
(
tabMoved
(
int
,
int
)),
SLOT
(
slotMovedTab
(
int
,
int
)));
connect
(
this
,
SIGNAL
(
movedTab
(
int
,
int
)),
SLOT
(
slotMovedTab
(
int
,
int
)));
connect
(
this
,
SIGNAL
(
mouseMiddleClick
()),
SLOT
(
slotMouseMiddleClick
()));
connect
(
this
,
SIGNAL
(
mouseMiddleClick
(
QWidget
*
)),
...
...
@@ -269,7 +267,7 @@ void KonqFrameTabs::moveTabBackward(int index)
if
(
index
==
0
)
{
return
;
}
moveTab
(
index
,
index
-
1
);
tabBar
()
->
moveTab
(
index
,
index
-
1
);
}
void
KonqFrameTabs
::
moveTabForward
(
int
index
)
...
...
@@ -277,7 +275,7 @@ void KonqFrameTabs::moveTabForward(int index)
if
(
index
==
count
()
-
1
)
{
return
;
}
moveTab
(
index
,
index
+
1
);
tabBar
()
->
moveTab
(
index
,
index
+
1
);
}
void
KonqFrameTabs
::
slotMovedTab
(
int
from
,
int
to
)
...
...
src/ktabwidget.h
View file @
a6648a99
...
...
@@ -70,12 +70,6 @@ public:
void
setTabText
(
int
,
const
QString
&
);
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
* internal reasons (keeping labels in sync).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment