Commit ff396882 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Qt4: really clear shortcuts - fixes #1666

parent e3272bb4
...@@ -1140,6 +1140,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this, ...@@ -1140,6 +1140,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
l->addWidget( keyContainer, line, 0, 1, 2 ); l->addWidget( keyContainer, line, 0, 1, 2 );
CONNECT( clearButton, clicked(), shortcutValue, clear() ); CONNECT( clearButton, clicked(), shortcutValue, clear() );
CONNECT( clearButton, clicked(), this, setTheKey() );
BUTTONACT( setButton, setTheKey() ); BUTTONACT( setButton, setTheKey() );
} }
......
...@@ -427,7 +427,9 @@ class KeyShortcutEdit: public QLineEdit ...@@ -427,7 +427,9 @@ class KeyShortcutEdit: public QLineEdit
Q_OBJECT Q_OBJECT
public: public:
void setValue( int _value ){ value = _value; } 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: private:
int value; int value;
virtual void mousePressEvent( QMouseEvent *event ); virtual void mousePressEvent( QMouseEvent *event );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment