]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/firstrun.hpp
Qt: make help dialog use standard buttons
[vlc] / modules / gui / qt4 / dialogs / firstrun.hpp
index 357fed94021cec774acd4f032467dea3fe04bd38..f45351344c3ff10890de28971e137321e6a87db0 100644 (file)
 #include "qt4.hpp"
 
 #include <QWidget>
-class ConfigControl;
+#include <QSettings>
+
+class QCheckBox;
 class FirstRun : public QWidget
 {
     Q_OBJECT
     public:
+        static void CheckAndRun( QWidget *_p, intf_thread_t *p_intf )
+        {
+            if( getSettings()->value( "IsFirstRun", 1 ).toInt() )
+            {
+                if( var_InheritBool( p_intf, "qt-privacy-ask") )
+                {
+                    new FirstRun( _p, p_intf );
+                }
+                getSettings()->setValue( "IsFirstRun", 0 );
+            }
+        }
         FirstRun( QWidget *, intf_thread_t * );
     private:
-        QList<ConfigControl *> controlsList;
+        QCheckBox *checkbox, *checkbox2;
         intf_thread_t *p_intf;
         void buildPrivDialog();
     private slots: