[vlc-devel] commit: Qt: Remove the gotoPlaying button, as noone understood it. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Dec 4 07:21:47 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 30 00:39:50 2009 +0100| [3c6f6fa77169b3e0d3270487795535b0fff293e7] | committer: Jean-Baptiste Kempf
Qt: Remove the gotoPlaying button, as noone understood it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c6f6fa77169b3e0d3270487795535b0fff293e7
---
modules/gui/qt4/components/playlist/panels.hpp | 2 +-
.../gui/qt4/components/playlist/standardpanel.cpp | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/panels.hpp b/modules/gui/qt4/components/playlist/panels.hpp
index 4269409..f65ad4a 100644
--- a/modules/gui/qt4/components/playlist/panels.hpp
+++ b/modules/gui/qt4/components/playlist/panels.hpp
@@ -62,7 +62,7 @@ private:
QWidget *parent;
QLabel *title;
QTreeView *view;
- QPushButton *addButton, *gotoPlayingButton;
+ QPushButton *addButton;
int currentRootId;
QSignalMapper *selectColumnsSigMapper;
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 046b44a..2de4c8b 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -132,12 +132,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
BUTTONACT( addButton, popupAdd() );
layout->addWidget( addButton, 0, 2 );
- /* Goto */
- gotoPlayingButton = new QPushButton;
- BUTTON_SET_ACT_I( gotoPlayingButton, "", buttons/playlist/jump_to,
- qtr( "Show the current item" ), gotoPlayingItem() );
- layout->addWidget( gotoPlayingButton, 0, 3 );
-
/* Finish the layout */
layout->addWidget( view, 1, 0, 1, -1 );
@@ -152,6 +146,7 @@ StandardPLPanel::~StandardPLPanel()
getSettings()->endGroup();
}
+/* Unused anymore, but might be useful, like in right-click menu */
void StandardPLPanel::gotoPlayingItem()
{
view->scrollTo( model->currentIndex() );
More information about the vlc-devel
mailing list