Commit 3093f9ba authored by Ludovic Fauvet's avatar Ludovic Fauvet

Change the design to something more clever

parent 047ccd99
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include "QDebug" #include "QDebug"
AudioProjectPreferences::AudioProjectPreferences( QWidget *parent ) : AudioProjectPreferences::AudioProjectPreferences( QWidget *parent )
QWidget( parent ) : PreferenceWidget( parent )
{ {
this->setWidget( this ); setWidget( this );
m_ui.setupUi( this ); m_ui.setupUi( this );
} }
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
#include "PreferenceWidget.h" #include "PreferenceWidget.h"
#include "ui_AudioProjectPreferences.h" #include "ui_AudioProjectPreferences.h"
class AudioProjectPreferences : public QWidget, public PreferenceWidget class AudioProjectPreferences : public PreferenceWidget
{ {
//Q_OBJECT //Q_OBJECT
public: public:
AudioProjectPreferences(QWidget *parent = 0); AudioProjectPreferences( QWidget *parent = 0 );
~AudioProjectPreferences(); ~AudioProjectPreferences();
bool load(); bool load();
void save( QSettings& settings ); void save( QSettings& settings );
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include "PreferenceWidget.h" #include "PreferenceWidget.h"
PreferenceWidget::PreferenceWidget( QWidget* widget ) PreferenceWidget::PreferenceWidget( QWidget* parent )
: m_widget( widget ) : QWidget( parent )
{ {
} }
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <QSettings> #include <QSettings>
#include <QWidget> #include <QWidget>
class PreferenceWidget class PreferenceWidget : public QWidget
{ {
public: public:
PreferenceWidget( QWidget* widget = 0 ); PreferenceWidget( QWidget* parent = 0 );
virtual ~PreferenceWidget() {} virtual ~PreferenceWidget() {}
virtual bool load() = 0; virtual bool load() = 0;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
ProjectPreferences::ProjectPreferences( QWidget* parent ) ProjectPreferences::ProjectPreferences( QWidget* parent )
: QWidget( parent ) : PreferenceWidget( parent )
{ {
setWidget( this ); setWidget( this );
m_ui.setupUi( this ); m_ui.setupUi( this );
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "ui_ProjectPreferences.h" #include "ui_ProjectPreferences.h"
#include "PreferenceWidget.h" #include "PreferenceWidget.h"
class ProjectPreferences : public QWidget, public PreferenceWidget class ProjectPreferences : public PreferenceWidget
{ {
//Q_OBJECT //Q_OBJECT
public: public:
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include "QDebug" #include "QDebug"
VLMCPreferences::VLMCPreferences(QWidget *parent) : VLMCPreferences::VLMCPreferences( QWidget *parent )
QWidget(parent) : PreferenceWidget( parent )
{ {
this->setWidget( this ); setWidget( this );
m_ui.setupUi(this); m_ui.setupUi(this);
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "PreferenceWidget.h" #include "PreferenceWidget.h"
#include "ui_VLMCPreferences.h" #include "ui_VLMCPreferences.h"
class VLMCPreferences : public QWidget, public PreferenceWidget class VLMCPreferences : public PreferenceWidget
{ {
//Q_OBJECT //Q_OBJECT
public: public:
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include "QDebug" #include "QDebug"
VideoProjectPreferences::VideoProjectPreferences(QWidget *parent) : VideoProjectPreferences::VideoProjectPreferences( QWidget *parent )
QWidget(parent) : PreferenceWidget( parent )
{ {
this->setWidget( this ); setWidget( this );
m_ui.setupUi( this ); m_ui.setupUi( this );
} }
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
#include "PreferenceWidget.h" #include "PreferenceWidget.h"
#include "ui_VideoProjectPreferences.h" #include "ui_VideoProjectPreferences.h"
class VideoProjectPreferences : public QWidget, public PreferenceWidget class VideoProjectPreferences : public PreferenceWidget
{ {
//Q_OBJECT //Q_OBJECT
public: public:
VideoProjectPreferences(QWidget *parent = 0); VideoProjectPreferences( QWidget *parent = 0 );
~VideoProjectPreferences(); ~VideoProjectPreferences();
bool load(); bool load();
void save( QSettings& settings ); void save( QSettings& settings );
......
Markdown is supported
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