Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6b4c45d2
Commit
6b4c45d2
authored
Nov 25, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - small cosmetic for the playlist.
parent
b83c1d09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+16
-17
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
6b4c45d2
...
@@ -50,26 +50,29 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -50,26 +50,29 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
PLPanel
(
_parent
,
_p_intf
)
PLPanel
(
_parent
,
_p_intf
)
{
{
model
=
new
PLModel
(
p_playlist
,
p_intf
,
p_root
,
-
1
,
this
);
model
=
new
PLModel
(
p_playlist
,
p_intf
,
p_root
,
-
1
,
this
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
();
layout
->
setSpacing
(
0
);
layout
->
setMargin
(
0
);
/* Create and configure the QTreeView */
/* Create and configure the QTreeView */
view
=
new
QVLCTreeView
(
0
);
view
=
new
QVLCTreeView
(
0
);
view
->
setModel
(
model
);
view
->
setModel
(
model
);
view
->
setIconSize
(
QSize
(
20
,
20
)
);
view
->
setIconSize
(
QSize
(
20
,
20
)
);
view
->
setAlternatingRowColors
(
true
);
view
->
setAlternatingRowColors
(
true
);
view
->
setAnimated
(
true
);
view
->
setAnimated
(
true
);
view
->
setSortingEnabled
(
true
);
view
->
setSortingEnabled
(
true
);
view
->
setSelectionMode
(
QAbstractItemView
::
ExtendedSelection
);
view
->
setSelectionMode
(
QAbstractItemView
::
ExtendedSelection
);
view
->
setDragEnabled
(
true
);
view
->
setDragEnabled
(
true
);
view
->
setAcceptDrops
(
true
);
view
->
setAcceptDrops
(
true
);
view
->
setDropIndicatorShown
(
true
);
view
->
setDropIndicatorShown
(
true
);
view
->
setAutoScroll
(
true
);
view
->
setAutoScroll
(
true
);
view
->
header
()
->
resizeSection
(
0
,
230
);
view
->
header
()
->
resizeSection
(
0
,
230
);
view
->
header
()
->
resizeSection
(
1
,
17
0
);
view
->
header
()
->
resizeSection
(
1
,
8
0
);
view
->
header
()
->
setSortIndicatorShown
(
true
);
view
->
header
()
->
setSortIndicatorShown
(
true
);
view
->
header
()
->
setClickable
(
true
);
view
->
header
()
->
setClickable
(
true
);
view
->
header
()
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
view
->
header
()
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
CONNECT
(
view
,
activated
(
const
QModelIndex
&
)
,
CONNECT
(
view
,
activated
(
const
QModelIndex
&
)
,
model
,
activateItem
(
const
QModelIndex
&
)
);
model
,
activateItem
(
const
QModelIndex
&
)
);
CONNECT
(
view
,
rightClicked
(
QModelIndex
,
QPoint
),
CONNECT
(
view
,
rightClicked
(
QModelIndex
,
QPoint
),
...
@@ -80,14 +83,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -80,14 +83,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
this
,
popupSelectColumn
(
QPoint
)
);
this
,
popupSelectColumn
(
QPoint
)
);
currentRootId
=
-
1
;
currentRootId
=
-
1
;
CONNECT
(
parent
,
rootChanged
(
int
),
this
,
setCurrentRootId
(
int
)
);
CONNECT
(
parent
,
rootChanged
(
int
),
this
,
setCurrentRootId
(
int
)
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
();
layout
->
setSpacing
(
0
);
layout
->
setMargin
(
0
);
/* Buttons configuration */
/* Buttons configuration */
QHBoxLayout
*
buttons
=
new
QHBoxLayout
()
;
QHBoxLayout
*
buttons
=
new
QHBoxLayout
;
addButton
=
new
QPushButton
(
QIcon
(
":/pixmaps/playlist_add.png"
),
""
,
this
);
addButton
=
new
QPushButton
(
QIcon
(
":/pixmaps/playlist_add.png"
),
""
,
this
);
addButton
->
setMaximumWidth
(
25
);
addButton
->
setMaximumWidth
(
25
);
BUTTONACT
(
addButton
,
popupAdd
()
);
BUTTONACT
(
addButton
,
popupAdd
()
);
...
@@ -111,7 +111,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -111,7 +111,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
buttons
->
addItem
(
spacer
);
buttons
->
addItem
(
spacer
);
repeatButton
=
new
QPushButton
(
this
);
repeatButton
=
new
QPushButton
(
this
);
if
(
model
->
hasRepeat
()
)
if
(
model
->
hasRepeat
()
)
{
{
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_one.png"
)
);
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_one.png"
)
);
repeatButton
->
setToolTip
(
qtr
(
I_PL_REPEAT
));
repeatButton
->
setToolTip
(
qtr
(
I_PL_REPEAT
));
...
@@ -120,16 +120,15 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -120,16 +120,15 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
{
{
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_all.png"
)
);
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_all.png"
)
);
repeatButton
->
setToolTip
(
qtr
(
I_PL_LOOP
));
repeatButton
->
setToolTip
(
qtr
(
I_PL_LOOP
));
}
}
else
else
{
{
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_off.png"
)
);
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/playlist_repeat_off.png"
)
);
repeatButton
->
setToolTip
(
qtr
(
I_PL_NOREPEAT
));
repeatButton
->
setToolTip
(
qtr
(
I_PL_NOREPEAT
));
}
}
BUTTONACT
(
repeatButton
,
toggleRepeat
()
);
BUTTONACT
(
repeatButton
,
toggleRepeat
()
);
buttons
->
addWidget
(
repeatButton
);
buttons
->
addWidget
(
repeatButton
);
QLabel
*
filter
=
new
QLabel
(
qtr
(
I_PL_SEARCH
)
+
" "
);
QLabel
*
filter
=
new
QLabel
(
qtr
(
I_PL_SEARCH
)
+
" "
);
buttons
->
addWidget
(
filter
);
buttons
->
addWidget
(
filter
);
searchLine
=
new
ClickLineEdit
(
qtr
(
I_PL_FILTER
),
0
);
searchLine
=
new
ClickLineEdit
(
qtr
(
I_PL_FILTER
),
0
);
...
@@ -254,7 +253,7 @@ void StandardPLPanel::popupSelectColumn( QPoint )
...
@@ -254,7 +253,7 @@ void StandardPLPanel::popupSelectColumn( QPoint )
ADD_META_ACTION
(
DESCRIPTION
);
ADD_META_ACTION
(
DESCRIPTION
);
#undef ADD_META_ACTION
#undef ADD_META_ACTION
selectColMenu
.
exec
(
QCursor
::
pos
()
);
selectColMenu
.
exec
(
QCursor
::
pos
()
);
}
}
...
...
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