From c9908a41c421a2b035a173fa62ce6644dd2cf5a3 Mon Sep 17 00:00:00 2001 From: laserpants Date: Tue, 14 Jun 2016 10:50:52 +0300 Subject: [PATCH] more boilerplate --- components/snackbar.cpp | 10 ++++++++++ components/snackbar.h | 19 +++++++++++++++++++ components/snackbar_p.h | 4 ++++ qt-material-widgets.pro | 7 +++++-- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 components/snackbar.cpp create mode 100644 components/snackbar.h create mode 100644 components/snackbar_p.h diff --git a/components/snackbar.cpp b/components/snackbar.cpp new file mode 100644 index 0000000..326de83 --- /dev/null +++ b/components/snackbar.cpp @@ -0,0 +1,10 @@ +#include "snackbar.h" + +Snackbar::Snackbar(QWidget *parent) + : QWidget(parent) +{ +} + +Snackbar::~Snackbar() +{ +} diff --git a/components/snackbar.h b/components/snackbar.h new file mode 100644 index 0000000..840b4ea --- /dev/null +++ b/components/snackbar.h @@ -0,0 +1,19 @@ +#ifndef SNACKBAR_H +#define SNACKBAR_H + +#include + +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 diff --git a/components/snackbar_p.h b/components/snackbar_p.h new file mode 100644 index 0000000..f6ca730 --- /dev/null +++ b/components/snackbar_p.h @@ -0,0 +1,4 @@ +#ifndef SNACKBAR_P_H +#define SNACKBAR_P_H + +#endif // SNACKBAR_P_H diff --git a/qt-material-widgets.pro b/qt-material-widgets.pro index bd36b3b..deb777d 100644 --- a/qt-material-widgets.pro +++ b/qt-material-widgets.pro @@ -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