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
684cafc4
Commit
684cafc4
authored
Sep 05, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Cleanup and start code to get the possibility on Windows to open the containing folder...
parent
bb22f297
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
32 deletions
+13
-32
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+12
-28
modules/gui/qt4/playlist_model.hpp
modules/gui/qt4/playlist_model.hpp
+1
-4
No files found.
modules/gui/qt4/playlist_model.cpp
View file @
684cafc4
...
@@ -251,7 +251,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
...
@@ -251,7 +251,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
}
}
#undef ADD_META
#undef ADD_META
}
}
/*************************************************************************
/*************************************************************************
...
@@ -969,32 +968,10 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
...
@@ -969,32 +968,10 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
menu
->
addAction
(
qfu
(
I_POP_SORT
),
this
,
SLOT
(
popupSort
()
)
);
menu
->
addAction
(
qfu
(
I_POP_SORT
),
this
,
SLOT
(
popupSort
()
)
);
menu
->
addAction
(
qfu
(
I_POP_ADD
),
this
,
SLOT
(
popupAdd
()
)
);
menu
->
addAction
(
qfu
(
I_POP_ADD
),
this
,
SLOT
(
popupAdd
()
)
);
}
}
// menu->addSeparator();
#ifdef WIN32
menu
->
addSeparator
();
/*ContextUpdateMapper = new QSignalMapper(this);
menu
->
addAction
(
qfu
(
I_POP_EXPLORE
),
this
SLOT
(
popupExplore
()
)
);
#endif
QMenu *selectColMenu = new QMenu( qtr("Show columns") );
#define ADD_META_ACTION( meta ) { \
QAction* option = selectColMenu->addAction( qfu(VLC_META_##meta) ); \
option->setCheckable( true ); \
option->setChecked( rootItem->i_showflags & VLC_META_ENGINE_##meta ); \
ContextUpdateMapper->setMapping( option, VLC_META_ENGINE_##meta ); \
CONNECT( option, triggered(), ContextUpdateMapper, map() ); \
}
CONNECT(ContextUpdateMapper, mapped( int ), this, viewchanged( int ) );
ADD_META_ACTION( TITLE );
ADD_META_ACTION( ARTIST );
ADD_META_ACTION( DURATION );
ADD_META_ACTION( COLLECTION );
ADD_META_ACTION( GENRE );
ADD_META_ACTION( SEQ_NUM );
ADD_META_ACTION( RATING );
ADD_META_ACTION( DESCRIPTION );
#undef ADD_META_ACTION
menu->addMenu( selectColMenu );*/
menu
->
popup
(
point
);
menu
->
popup
(
point
);
}
}
else
else
...
@@ -1095,6 +1072,13 @@ void PLModel::popupSave()
...
@@ -1095,6 +1072,13 @@ void PLModel::popupSave()
fprintf
(
stderr
,
"Save not implemented
\n
"
);
fprintf
(
stderr
,
"Save not implemented
\n
"
);
}
}
#ifdef WIN32
void
PLModel
::
popupExplore
()
{
ShellExecuteW
(
NULL
,
L"explore"
,
L"C:
\\
"
,
NULL
,
NULL
,
SW_SHOWNORMAL
);
}
#endif
/**********************************************************************
/**********************************************************************
* Playlist callbacks
* Playlist callbacks
**********************************************************************/
**********************************************************************/
...
...
modules/gui/qt4/playlist_model.hpp
View file @
684cafc4
...
@@ -142,10 +142,7 @@ public:
...
@@ -142,10 +142,7 @@ public:
void
sendArt
(
QString
url
);
void
sendArt
(
QString
url
);
void
removeArt
(
);
void
removeArt
(
);
int
shownFlags
()
int
shownFlags
()
{
return
rootItem
->
i_showflags
;
}
{
return
rootItem
->
i_showflags
;
}
private:
private:
void
addCallbacks
();
void
addCallbacks
();
void
delCallbacks
();
void
delCallbacks
();
...
...
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