more boilerplate

This commit is contained in:
laserpants 2016-06-14 10:50:52 +03:00
parent 5bc61013cb
commit c9908a41c4
4 changed files with 38 additions and 2 deletions

10
components/snackbar.cpp Normal file
View File

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

19
components/snackbar.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef SNACKBAR_H
#define SNACKBAR_H
#include <QWidget>
class Snackbar : public QWidget
{
Q_OBJECT
public:
explicit Snackbar(QWidget *parent = 0);
~Snackbar();
private:
Q_DISABLE_COPY(Snackbar)
//Q_DECLARE_PRIVATE(Snackbar)
};
#endif // SNACKBAR_H

4
components/snackbar_p.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef SNACKBAR_P_H
#define SNACKBAR_P_H
#endif // SNACKBAR_P_H

View File

@ -61,7 +61,8 @@ SOURCES += main.cpp\
components/progress.cpp \
components/selectfield.cpp \
lib/checkable.cpp \
lib/checkable_internal.cpp
lib/checkable_internal.cpp \
components/snackbar.cpp
HEADERS += mainwindow.h \
components/appbar.h \
@ -127,7 +128,9 @@ HEADERS += mainwindow.h \
components/checkbox_p.h \
lib/checkable.h \
lib/checkable_p.h \
lib/checkable_internal.h
lib/checkable_internal.h \
components/snackbar.h \
components/snackbar_p.h
RESOURCES += \
resources.qrc