boilerplate for new components
This commit is contained in:
parent
7e6fae019e
commit
82e8023637
|
@ -0,0 +1,10 @@
|
|||
#include "badge.h"
|
||||
|
||||
Badge::Badge(QWidget *parent = 0)
|
||||
: QWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Badge::~Badge()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef BADGE_H
|
||||
#define BADGE_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class Badge : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Badge(QWidget *parent = 0);
|
||||
~Badge();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(Badge)
|
||||
//Q_DECLARE_PRIVATE(Badge)
|
||||
};
|
||||
|
||||
#endif // BADGE_H
|
|
@ -0,0 +1,10 @@
|
|||
#include "fab.h"
|
||||
|
||||
FloatingActionButton::FloatingActionButton(QWidget *parent = 0)
|
||||
: QWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
FloatingActionButton::~FloatingActionButton()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef FAB_H
|
||||
#define FAB_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class FloatingActionButton : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FloatingActionButton(QWidget *parent = 0);
|
||||
~FloatingActionButton();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(FloatingActionButton)
|
||||
//Q_DECLARE_PRIVATE(FloatingActionButton)
|
||||
};
|
||||
|
||||
#endif // FAB_H
|
|
@ -0,0 +1,10 @@
|
|||
#include "progress.h"
|
||||
|
||||
Progress::Progress(QWidget *parent = 0)
|
||||
: QWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Progress::~Progress()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef PROGRESS_H
|
||||
#define PROGRESS_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class Progress : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Progress(QWidget *parent = 0);
|
||||
~Progress();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(Progress)
|
||||
//Q_DECLARE_PRIVATE(Progress)
|
||||
};
|
||||
|
||||
#endif // PROGRESS_H
|
|
@ -0,0 +1,10 @@
|
|||
#include "selectfield.h"
|
||||
|
||||
SelectField::SelectField(QWidget *parent = 0)
|
||||
: QWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
SelectField::~SelectField()
|
||||
{
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef SELECTFIELD_H
|
||||
#define SELECTFIELD_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class SelectField : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SelectField(QWidget *parent = 0);
|
||||
~SelectField();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(SelectField)
|
||||
//Q_DECLARE_PRIVATE(SelectField)
|
||||
};
|
||||
|
||||
#endif // SELECTFIELD_H
|
|
@ -55,7 +55,11 @@ SOURCES += main.cpp\
|
|||
components/slider_internal.cpp \
|
||||
components/flatbutton_internal.cpp \
|
||||
components/toggle_internal.cpp \
|
||||
components/tabs_internal.cpp
|
||||
components/tabs_internal.cpp \
|
||||
components/fab.cpp \
|
||||
components/badge.cpp \
|
||||
components/progress.cpp \
|
||||
components/selectfield.cpp
|
||||
|
||||
HEADERS += mainwindow.h \
|
||||
components/appbar.h \
|
||||
|
@ -111,7 +115,11 @@ HEADERS += mainwindow.h \
|
|||
components/toggle_internal.h \
|
||||
components/iconbutton_p.h \
|
||||
components/tabs_p.h \
|
||||
components/tabs_internal.h
|
||||
components/tabs_internal.h \
|
||||
components/fab.h \
|
||||
components/badge.h \
|
||||
components/progress.h \
|
||||
components/selectfield.h
|
||||
|
||||
RESOURCES += \
|
||||
resources.qrc
|
||||
|
|
Loading…
Reference in New Issue