]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/util/customwidgets.hpp
Qt: messages dialog: new verbosity spinbox
[vlc] / modules / gui / qt4 / util / customwidgets.hpp
index 64d08dda335b06e6fd31c6c4d3ad4aad65dda367..e2338c6baa7eef8899bfc4e45dfc0063267acc0d 100644 (file)
@@ -31,6 +31,7 @@
 #include <QPushButton>
 #include <QLabel>
 #include <QStackedWidget>
+#include <QSpinBox>
 
 /**
   This class provides a QLineEdit which contains a greyed-out hinting
@@ -112,6 +113,16 @@ public:
     }
 };
 
+class DebugLevelSpinBox : public QSpinBox
+{
+    Q_OBJECT
+public:
+    DebugLevelSpinBox( QWidget *parent ) : QSpinBox( parent ) { };
+protected:
+    QString textFromValue( int ) const;
+    int mapTextToValue ( bool * );
+};
+
 /* VLC Key/Wheel hotkeys interactions */
 
 class QKeyEvent;