Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
22faed61
Commit
22faed61
authored
Dec 06, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix toolbar customization when doing back and forth
Close #7543
parent
cab4efd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+2
-7
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
22faed61
...
...
@@ -722,11 +722,6 @@ void DroppingController::dropEvent( QDropEvent *event )
{
int
i
=
getParentPosInLayout
(
event
->
pos
()
);
/* Workaround: do not let the item move to its current
position + 1 as it breaks the widgetList */
if
(
i
-
1
==
i_dragIndex
)
--
i
;
QByteArray
data
=
event
->
mimeData
()
->
data
(
"vlc/button-bar"
);
QDataStream
dataStream
(
&
data
,
QIODevice
::
ReadOnly
);
...
...
@@ -800,11 +795,11 @@ bool DroppingController::eventFilter( QObject *obj, QEvent *event )
/* Remove before the drag to not mess DropEvent,
that will createAndAddWidget */
widgetList
.
removeAt
(
i
);
controlLayout
->
removeWidget
(
widg
);
widg
->
hide
();
/* Start the effective drag */
drag
->
exec
(
Qt
::
CopyAction
|
Qt
::
MoveAction
,
Qt
::
MoveAction
);
widg
->
hide
();
controlLayout
->
removeWidget
(
widg
);
b_draging
=
false
;
}
return
true
;
...
...
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