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

Change the design to something more clever

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