boilerplate for new components

This commit is contained in:
laserpants 2016-06-12 11:21:58 +03:00
parent 7e6fae019e
commit 82e8023637
9 changed files with 126 additions and 2 deletions

10
components/badge.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "badge.h"
Badge::Badge(QWidget *parent = 0)
: QWidget(parent)
{
}
Badge::~Badge()
{
}

19
components/badge.h Normal file
View File

@ -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

10
components/fab.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "fab.h"
FloatingActionButton::FloatingActionButton(QWidget *parent = 0)
: QWidget(parent)
{
}
FloatingActionButton::~FloatingActionButton()
{
}

19
components/fab.h Normal file
View File

@ -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

10
components/progress.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "progress.h"
Progress::Progress(QWidget *parent = 0)
: QWidget(parent)
{
}
Progress::~Progress()
{
}

19
components/progress.h Normal file
View File

@ -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

View File

@ -0,0 +1,10 @@
#include "selectfield.h"
SelectField::SelectField(QWidget *parent = 0)
: QWidget(parent)
{
}
SelectField::~SelectField()
{
}

19
components/selectfield.h Normal file
View File

@ -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

View File

@ -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