Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5b86425b
Commit
5b86425b
authored
Sep 24, 2010
by
Ludovic Fauvet
Committed by
Jean-Baptiste Kempf
Sep 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: attempt to work around a design flaw in the toolbar editor
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8faa8a8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+7
-0
modules/gui/qt4/dialogs/toolbar.hpp
modules/gui/qt4/dialogs/toolbar.hpp
+1
-0
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
5b86425b
...
...
@@ -672,6 +672,11 @@ 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
);
...
...
@@ -727,6 +732,8 @@ bool DroppingController::eventFilter( QObject *obj, QEvent *event )
}
if
(
i
==
-
1
)
return
true
;
i_dragIndex
=
i
;
doubleInt
*
dI
=
widgetList
.
at
(
i
);
int
i_type
=
dI
->
i_type
;
...
...
modules/gui/qt4/dialogs/toolbar.hpp
View file @
5b86425b
...
...
@@ -112,6 +112,7 @@ private:
};
QRubberBand
*
rubberband
;
QList
<
doubleInt
*>
widgetList
;
int
i_dragIndex
;
int
getParentPosInLayout
(
QPoint
point
);
...
...
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