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
27f5e6a9
Commit
27f5e6a9
authored
Jan 25, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use the new PlIconView class
parent
c07eff52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+3
-5
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
+2
-1
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
27f5e6a9
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include "components/playlist/playlist_model.hpp"
#include "components/playlist/playlist_model.hpp"
#include "components/playlist/standardpanel.hpp"
#include "components/playlist/standardpanel.hpp"
#include "components/playlist/icon_view.hpp"
#include "util/customwidgets.hpp"
#include "util/customwidgets.hpp"
#include <vlc_intf_strings.h>
#include <vlc_intf_strings.h>
...
@@ -101,7 +102,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -101,7 +102,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
getSettings
()
->
endGroup
();
getSettings
()
->
endGroup
();
/* Connections for the TreeView */
/* Connections for the TreeView */
CONNECT
(
view
,
activated
(
const
QModelIndex
&
)
,
CONNECT
(
view
,
activated
(
const
QModelIndex
&
),
model
,
activateItem
(
const
QModelIndex
&
)
);
model
,
activateItem
(
const
QModelIndex
&
)
);
CONNECT
(
view
->
header
(),
customContextMenuRequested
(
const
QPoint
&
),
CONNECT
(
view
->
header
(),
customContextMenuRequested
(
const
QPoint
&
),
this
,
popupSelectColumn
(
QPoint
)
);
this
,
popupSelectColumn
(
QPoint
)
);
...
@@ -299,10 +300,7 @@ void StandardPLPanel::toggleView()
...
@@ -299,10 +300,7 @@ void StandardPLPanel::toggleView()
{
{
if
(
view2
==
NULL
)
if
(
view2
==
NULL
)
{
{
view2
=
new
QListView
;
view2
=
new
PlIconView
(
model
,
this
);
view2
->
setModel
(
model
);
view2
->
setViewMode
(
QListView
::
IconMode
);
view2
->
setMovement
(
QListView
::
Snap
);
layout
->
addWidget
(
view2
,
1
,
0
,
1
,
-
1
);
layout
->
addWidget
(
view2
,
1
,
0
,
1
,
-
1
);
installEventFilter
(
view2
);
installEventFilter
(
view2
);
}
}
...
...
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
27f5e6a9
...
@@ -44,6 +44,7 @@ class PLModel;
...
@@ -44,6 +44,7 @@ class PLModel;
class
QPushButton
;
class
QPushButton
;
class
QKeyEvent
;
class
QKeyEvent
;
class
QWheelEvent
;
class
QWheelEvent
;
class
PlIconView
;
class
StandardPLPanel
:
public
QWidget
class
StandardPLPanel
:
public
QWidget
{
{
...
@@ -71,7 +72,7 @@ private:
...
@@ -71,7 +72,7 @@ private:
QGridLayout
*
layout
;
QGridLayout
*
layout
;
QTreeView
*
view
;
QTreeView
*
view
;
QListView
*
view2
;
PlIconView
*
view2
;
int
currentRootId
;
int
currentRootId
;
QSignalMapper
*
selectColumnsSigMapper
;
QSignalMapper
*
selectColumnsSigMapper
;
...
...
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