From 654e7715637029122d748d3e1b3c3a42cb67b750 Mon Sep 17 00:00:00 2001 From: laserpants Date: Fri, 17 Jun 2016 14:43:04 +0300 Subject: [PATCH] add Dialog boilerplate --- components/dialog.cpp | 9 +++++++++ components/dialog.h | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/components/dialog.cpp b/components/dialog.cpp index e596956..dafefda 100644 --- a/components/dialog.cpp +++ b/components/dialog.cpp @@ -1 +1,10 @@ #include "dialog.h" + +Dialog::Dialog(QWidget *parent) + : QWidget(parent) +{ +} + +Dialog::~Dialog() +{ +} diff --git a/components/dialog.h b/components/dialog.h index e69de29..fc34bb6 100644 --- a/components/dialog.h +++ b/components/dialog.h @@ -0,0 +1,19 @@ +#ifndef DIALOG_H +#define DIALOG_H + +#include + +class Dialog : public QWidget +{ + Q_OBJECT + +public: + explicit Dialog(QWidget *parent = 0); + ~Dialog(); + +private: + Q_DISABLE_COPY(Dialog) + //Q_DECLARE_PRIVATE(Dialog) +}; + +#endif // DIALOG_H