[vlc-devel] commit: Qt4: really clear shortcuts - fixes #1666 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Jul 3 21:32:51 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jul 3 22:34:46 2008 +0300| [ff396882d74d14db4d76536997f288a701a55851]
Qt4: really clear shortcuts - fixes #1666
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff396882d74d14db4d76536997f288a701a55851
---
modules/gui/qt4/components/preferences_widgets.cpp | 1 +
modules/gui/qt4/components/preferences_widgets.hpp | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 1f69d35..a72e7ea 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -1140,6 +1140,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
l->addWidget( keyContainer, line, 0, 1, 2 );
CONNECT( clearButton, clicked(), shortcutValue, clear() );
+ CONNECT( clearButton, clicked(), this, setTheKey() );
BUTTONACT( setButton, setTheKey() );
}
diff --git a/modules/gui/qt4/components/preferences_widgets.hpp b/modules/gui/qt4/components/preferences_widgets.hpp
index 9df5c6a..4e42cd2 100644
--- a/modules/gui/qt4/components/preferences_widgets.hpp
+++ b/modules/gui/qt4/components/preferences_widgets.hpp
@@ -427,7 +427,9 @@ class KeyShortcutEdit: public QLineEdit
Q_OBJECT
public:
void setValue( int _value ){ value = _value; }
- int getValue(){ return value; }
+ int getValue() const { return value; }
+public slots:
+ virtual void clear(void) { value = 0; QLineEdit::clear(); }
private:
int value;
virtual void mousePressEvent( QMouseEvent *event );
More information about the vlc-devel
mailing list