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
ddc7925d
Commit
ddc7925d
authored
Jan 26, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: plViews, cleanups
parent
ede2bb15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+13
-13
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
ddc7925d
...
@@ -88,11 +88,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -88,11 +88,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
layout
->
setColumnStretch
(
1
,
10
);
layout
->
setColumnStretch
(
1
,
10
);
SearchLineEdit
*
search
=
new
SearchLineEdit
(
this
);
SearchLineEdit
*
search
=
new
SearchLineEdit
(
this
);
search
->
setMaximumWidth
(
2
00
);
search
->
setMaximumWidth
(
3
00
);
layout
->
addWidget
(
search
,
0
,
4
);
layout
->
addWidget
(
search
,
0
,
4
);
CONNECT
(
search
,
textChanged
(
const
QString
&
),
CONNECT
(
search
,
textChanged
(
const
QString
&
),
this
,
search
(
const
QString
&
)
);
this
,
search
(
const
QString
&
)
);
layout
->
setColumnStretch
(
4
,
1
);
layout
->
setColumnStretch
(
4
,
2
);
/* Add item to the playlist button */
/* Add item to the playlist button */
addButton
=
new
QPushButton
;
addButton
=
new
QPushButton
;
...
@@ -112,14 +112,14 @@ StandardPLPanel::~StandardPLPanel()
...
@@ -112,14 +112,14 @@ StandardPLPanel::~StandardPLPanel()
getSettings
()
->
beginGroup
(
"Playlist"
);
getSettings
()
->
beginGroup
(
"Playlist"
);
if
(
treeView
)
if
(
treeView
)
getSettings
()
->
setValue
(
"headerStateV2"
,
treeView
->
header
()
->
saveState
()
);
getSettings
()
->
setValue
(
"headerStateV2"
,
treeView
->
header
()
->
saveState
()
);
getSettings
()
->
setValue
(
"view-mode"
,
(
currentView
==
iconView
)
?
ICON_VIEW
:
TREE_VIEW
);
getSettings
()
->
endGroup
();
getSettings
()
->
endGroup
();
}
}
/* Unused anymore, but might be useful, like in right-click menu */
/* Unused anymore, but might be useful, like in right-click menu */
void
StandardPLPanel
::
gotoPlayingItem
()
void
StandardPLPanel
::
gotoPlayingItem
()
{
{
if
(
treeView
)
currentView
->
scrollTo
(
model
->
currentIndex
()
);
treeView
->
scrollTo
(
model
->
currentIndex
()
);
}
}
void
StandardPLPanel
::
handleExpansion
(
const
QModelIndex
&
index
)
void
StandardPLPanel
::
handleExpansion
(
const
QModelIndex
&
index
)
...
@@ -153,6 +153,15 @@ void StandardPLPanel::popupAdd()
...
@@ -153,6 +153,15 @@ void StandardPLPanel::popupAdd()
+
QPoint
(
0
,
addButton
->
height
()
)
);
+
QPoint
(
0
,
addButton
->
height
()
)
);
}
}
void
StandardPLPanel
::
popupPlView
(
const
QPoint
&
point
)
{
QModelIndex
index
=
currentView
->
indexAt
(
point
);
QPoint
globalPoint
=
currentView
->
viewport
()
->
mapToGlobal
(
point
);
QItemSelectionModel
*
selection
=
currentView
->
selectionModel
();
QModelIndexList
list
=
selection
->
selectedIndexes
();
model
->
popup
(
index
,
globalPoint
,
list
);
}
void
StandardPLPanel
::
popupSelectColumn
(
QPoint
pos
)
void
StandardPLPanel
::
popupSelectColumn
(
QPoint
pos
)
{
{
QMenu
menu
;
QMenu
menu
;
...
@@ -173,15 +182,6 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
...
@@ -173,15 +182,6 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
menu
.
exec
(
QCursor
::
pos
()
);
menu
.
exec
(
QCursor
::
pos
()
);
}
}
void
StandardPLPanel
::
popupPlView
(
const
QPoint
&
point
)
{
QModelIndex
index
=
currentView
->
indexAt
(
point
);
QPoint
globalPoint
=
currentView
->
viewport
()
->
mapToGlobal
(
point
);
QItemSelectionModel
*
selection
=
currentView
->
selectionModel
();
QModelIndexList
list
=
selection
->
selectedIndexes
();
model
->
popup
(
index
,
globalPoint
,
list
);
}
void
StandardPLPanel
::
toggleColumnShown
(
int
i
)
void
StandardPLPanel
::
toggleColumnShown
(
int
i
)
{
{
treeView
->
setColumnHidden
(
i
,
!
treeView
->
isColumnHidden
(
i
)
);
treeView
->
setColumnHidden
(
i
,
!
treeView
->
isColumnHidden
(
i
)
);
...
...
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