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
0b49fce1
Commit
0b49fce1
authored
Jan 25, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove unused code
parent
ab43895a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
54 deletions
+0
-54
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+0
-51
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
+0
-3
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
0b49fce1
...
@@ -83,9 +83,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -83,9 +83,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
treeView
->
setDropIndicatorShown
(
true
);
treeView
->
setDropIndicatorShown
(
true
);
treeView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
treeView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
//treeView->installEventFilter( this );
//<jleben> I guess we don't need that
/* Saved Settings */
/* Saved Settings */
getSettings
()
->
beginGroup
(
"Playlist"
);
getSettings
()
->
beginGroup
(
"Playlist"
);
if
(
getSettings
()
->
contains
(
"headerStateV2"
)
)
if
(
getSettings
()
->
contains
(
"headerStateV2"
)
)
...
@@ -240,13 +237,6 @@ void StandardPLPanel::search( const QString& searchText )
...
@@ -240,13 +237,6 @@ void StandardPLPanel::search( const QString& searchText )
model
->
search
(
searchText
);
model
->
search
(
searchText
);
}
}
void
StandardPLPanel
::
doPopup
(
QModelIndex
index
,
QPoint
point
)
{
QItemSelectionModel
*
selection
=
treeView
->
selectionModel
();
QModelIndexList
list
=
selection
->
selectedIndexes
();
model
->
popup
(
index
,
point
,
list
);
}
/* Set the root of the new Playlist */
/* Set the root of the new Playlist */
/* This activated by the selector selection */
/* This activated by the selector selection */
void
StandardPLPanel
::
setRoot
(
playlist_item_t
*
p_item
)
void
StandardPLPanel
::
setRoot
(
playlist_item_t
*
p_item
)
...
@@ -320,7 +310,6 @@ void StandardPLPanel::toggleView()
...
@@ -320,7 +310,6 @@ void StandardPLPanel::toggleView()
{
{
iconView
=
new
PlIconView
(
model
,
this
);
iconView
=
new
PlIconView
(
model
,
this
);
layout
->
addWidget
(
iconView
,
1
,
0
,
1
,
-
1
);
layout
->
addWidget
(
iconView
,
1
,
0
,
1
,
-
1
);
//iconView->installEventFilter( this );
iconView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
iconView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
CONNECT
(
iconView
,
customContextMenuRequested
(
const
QPoint
&
),
CONNECT
(
iconView
,
customContextMenuRequested
(
const
QPoint
&
),
this
,
playlistPopup
(
const
QPoint
&
)
);
this
,
playlistPopup
(
const
QPoint
&
)
);
...
@@ -335,46 +324,6 @@ void StandardPLPanel::toggleView()
...
@@ -335,46 +324,6 @@ void StandardPLPanel::toggleView()
}
}
}
}
bool
StandardPLPanel
::
eventFilter
(
QObject
*
obj
,
QEvent
*
event
)
{
QAbstractItemView
*
aView
=
qobject_cast
<
QAbstractItemView
*>
(
obj
);
if
(
!
aView
)
return
false
;
switch
(
event
->
type
()
)
{
case
QEvent
:
:
MouseButtonPress
:
{
QMouseEvent
*
mouseEvent
=
static_cast
<
QMouseEvent
*>
(
event
);
if
(
mouseEvent
->
button
()
&
Qt
::
RightButton
)
{
QModelIndex
index
=
aView
->
indexAt
(
QPoint
(
mouseEvent
->
x
(),
mouseEvent
->
y
()
)
);
doPopup
(
index
,
QCursor
::
pos
()
);
return
true
;
}
else
if
(
mouseEvent
->
button
()
&
Qt
::
LeftButton
)
{
if
(
!
aView
->
indexAt
(
QPoint
(
mouseEvent
->
x
(),
mouseEvent
->
y
()
)
).
isValid
()
)
aView
->
clearSelection
();
}
// aView->mousePressEvent( mouseEvent );
}
return
true
;
case
QEvent
:
:
MouseButtonRelease
:
{
QMouseEvent
*
mouseEvent2
=
static_cast
<
QMouseEvent
*>
(
event
);
if
(
mouseEvent2
->
button
()
&
Qt
::
RightButton
)
return
false
;
/* Do NOT forward to QTreeView!! */
// aView->mouseReleaseEvent( mouseEvent );
return
true
;
}
default:
return
false
;
}
return
true
;
}
void
StandardPLPanel
::
wheelEvent
(
QWheelEvent
*
e
)
void
StandardPLPanel
::
wheelEvent
(
QWheelEvent
*
e
)
{
{
// Accept this event in order to prevent unwanted volume up/down changes
// Accept this event in order to prevent unwanted volume up/down changes
...
...
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
0b49fce1
...
@@ -60,8 +60,6 @@ protected:
...
@@ -60,8 +60,6 @@ protected:
virtual
void
keyPressEvent
(
QKeyEvent
*
e
);
virtual
void
keyPressEvent
(
QKeyEvent
*
e
);
virtual
void
wheelEvent
(
QWheelEvent
*
e
);
virtual
void
wheelEvent
(
QWheelEvent
*
e
);
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
event
);
PLModel
*
model
;
PLModel
*
model
;
private:
private:
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
...
@@ -77,7 +75,6 @@ private:
...
@@ -77,7 +75,6 @@ private:
int
currentRootId
;
int
currentRootId
;
QSignalMapper
*
selectColumnsSigMapper
;
QSignalMapper
*
selectColumnsSigMapper
;
void
doPopup
(
QModelIndex
index
,
QPoint
point
);
public
slots
:
public
slots
:
void
removeItem
(
int
);
void
removeItem
(
int
);
virtual
void
setRoot
(
playlist_item_t
*
);
virtual
void
setRoot
(
playlist_item_t
*
);
...
...
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