From: Dirk H Bartley Date: Fri, 23 Mar 2007 12:30:12 +0000 (+0000) Subject: Move putz test program to a test program directory under qt-console. X-Git-Tag: Release-7.0.0~6733 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=69dc4f50d8d3278f319c2908a35202f194a9b57a;p=bacula%2Fbacula Move putz test program to a test program directory under qt-console. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4391 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/testprogs/putz/main.cpp b/bacula/src/qt-console/testprogs/putz/main.cpp new file mode 100644 index 0000000000..5e7287e86f --- /dev/null +++ b/bacula/src/qt-console/testprogs/putz/main.cpp @@ -0,0 +1,16 @@ +#include +#include "putz.h" + +Putz *putz; +QApplication *app; + +int main(int argc, char *argv[]) +{ + app = new QApplication(argc, argv); + app->setQuitOnLastWindowClosed(true); + + putz = new Putz; + putz->show(); + + return app->exec(); +} diff --git a/bacula/src/qt-console/testprogs/putz/putz.cpp b/bacula/src/qt-console/testprogs/putz/putz.cpp new file mode 100644 index 0000000000..0b8fd13500 --- /dev/null +++ b/bacula/src/qt-console/testprogs/putz/putz.cpp @@ -0,0 +1,11 @@ + +#include +#include + +#include "putz.h" + +Putz::Putz() +{ + printf("got to Putz Constructor\n"); + setupUi(this); +} diff --git a/bacula/src/qt-console/testprogs/putz/putz.h b/bacula/src/qt-console/testprogs/putz/putz.h new file mode 100644 index 0000000000..97e6ba88cc --- /dev/null +++ b/bacula/src/qt-console/testprogs/putz/putz.h @@ -0,0 +1,19 @@ +#ifndef _PUTZ_H_ +#define _PUTZ_H_ + +#include +#include "ui_putz.h" + +class Putz : public QMainWindow, public Ui::MainWindow +{ + Q_OBJECT + +public: + Putz(); + +public slots: + +private: +}; + +#endif /* _PUTZ_H_ */ diff --git a/bacula/src/qt-console/testprogs/putz/putz.pro b/bacula/src/qt-console/testprogs/putz/putz.pro new file mode 100644 index 0000000000..2e31791945 --- /dev/null +++ b/bacula/src/qt-console/testprogs/putz/putz.pro @@ -0,0 +1,15 @@ +CONFIG += qt debug + +TEMPLATE = app +TARGET = putz +DEPENDPATH += . +INCLUDEPATH += .. +MOC_DIR = moc +OBJECTS_DIR = obj +UI_DIR = ui + +# Main window +FORMS += putz.ui + +HEADERS += putz.h +SOURCES += putz.cpp main.cpp diff --git a/bacula/src/qt-console/testprogs/putz/putz.ui b/bacula/src/qt-console/testprogs/putz/putz.ui new file mode 100644 index 0000000000..343f00236a --- /dev/null +++ b/bacula/src/qt-console/testprogs/putz/putz.ui @@ -0,0 +1,83 @@ + + MainWindow + + + + 0 + 0 + 557 + 534 + + + + MainWindow + + + true + + + + + + 0 + 0 + 557 + 28 + + + + + + + + 7 + 7 + 12 + 7 + + + + Whoochie + + + 1 + + + + + 9 + + + 6 + + + + + + + + + + coochie + + + 2 + + + + + 9 + + + 6 + + + + + + + + + + +