]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.hpp
Qt4 - Improve the hotkeys preferences.
[vlc] / modules / gui / qt4 / components / preferences_widgets.hpp
index 42cc12723f5b65025cc0c9905e5751e5904de428..0733bbc9eee4ccde062f9bda3a9e86d2a5e60515 100644 (file)
@@ -412,7 +412,7 @@ private slot:
 class KeyInputDialog : public QDialog
 {
 public:
-    KeyInputDialog( QList<module_config_t *> &, const char * );
+    KeyInputDialog( QList<module_config_t *> &, const char *, QWidget * );
     int keyValue;
     bool conflicts;
 private:
@@ -425,6 +425,15 @@ private:
     QList<module_config_t*> values;
 };
 
+class KeyShortcutEdit: public QLineEdit
+{
+    Q_OBJECT
+private:
+    virtual void mousePressEvent( QMouseEvent *event );
+signals:
+    void pressed();
+};
+
 class KeySelectorControl : public ConfigControl
 {
     Q_OBJECT;
@@ -440,9 +449,13 @@ private:
     void finish();
     QLabel *label;
     QTreeWidget *table;
+    KeyShortcutEdit *shortcutValue;
     QList<module_config_t *> values;
+    //QWidget *parent;
 private slots:
-    void selectKey( QTreeWidgetItem *);
+    void setTheKey();
+    void selectKey( QTreeWidgetItem * = NULL );
+    void select1Key( QTreeWidgetItem *);
 };
 
 #endif