Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ff396882
Commit
ff396882
authored
Jul 03, 2008
by
Rémi Denis-Courmont
Browse files
Qt4: really clear shortcuts - fixes #1666
parent
e3272bb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/preferences_widgets.cpp
View file @
ff396882
...
...
@@ -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
()
);
}
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
ff396882
...
...
@@ -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
);
...
...
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