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
bc65454c
Commit
bc65454c
authored
Sep 07, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "qt4: selector: switch source on single click"
This reverts commit
2d235298
.
parent
cc17da89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+6
-12
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
bc65454c
...
@@ -54,15 +54,12 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
...
@@ -54,15 +54,12 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
// view->setDropIndicatorShown(true);
// view->setDropIndicatorShown(true);
createItems
();
createItems
();
/*
CONNECT( view, itemActivated( QTreeWidgetItem *, int ),
CONNECT
(
view
,
itemActivated
(
QTreeWidgetItem
*
,
int
),
this, setSource( QTreeWidgetItem *) );
*/
this
,
setSource
(
QTreeWidgetItem
*
)
);
/* I believe this is unnecessary, seeing
/* I believe this is unnecessary, seeing
QStyle::SH_ItemView_ActivateItemOnSingleClick */
QStyle::SH_ItemView_ActivateItemOnSingleClick
/* <jleben> No, you can only make custom styles by creating whole new
or subclassing an existing QStyle.
Connecting itemClicked signal is easier, of course */
CONNECT( view, itemClicked( QTreeWidgetItem *, int ),
CONNECT( view, itemClicked( QTreeWidgetItem *, int ),
this
,
setSource
(
QTreeWidgetItem
*
)
);
this, setSource( QTreeWidgetItem *) ); */
QVBoxLayout
*
layout
=
new
QVBoxLayout
;
QVBoxLayout
*
layout
=
new
QVBoxLayout
;
layout
->
setSpacing
(
0
);
layout
->
setMargin
(
0
);
layout
->
setSpacing
(
0
);
layout
->
setMargin
(
0
);
...
@@ -78,10 +75,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
...
@@ -78,10 +75,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
if
(
!
item
)
if
(
!
item
)
return
;
return
;
QVariant
type
=
item
->
data
(
0
,
TYPE_ROLE
);
int
i_type
=
item
->
data
(
0
,
TYPE_ROLE
).
toInt
();
if
(
type
==
QVariant
()
)
return
;
int
i_type
=
type
.
toInt
();
assert
(
(
i_type
==
PL_TYPE
||
i_type
==
ML_TYPE
||
i_type
==
SD_TYPE
)
);
assert
(
(
i_type
==
PL_TYPE
||
i_type
==
ML_TYPE
||
i_type
==
SD_TYPE
)
);
if
(
i_type
==
SD_TYPE
)
if
(
i_type
==
SD_TYPE
)
...
...
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