]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/example/qt/qt4/uic/main.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / example / qt / qt4 / uic / main.cpp
CommitLineData
7c673cae
FG
1// Copyright Felix E. Klee, 2003
2// Distributed under the Boost Software License, Version 1.0.
1e59de90
TL
3// (See accompanying file LICENSE.txt
4// or copy at https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
5
6#include "ui_hello_world_widget.h"
7#include <qapplication.h>
8#include <qwidget.h>
9
10#include <qpushbutton.h>
11
12int main(int argc, char **argv) {
13 QApplication a(argc, argv);
14
15 QWidget w;
16 Ui::HelloWorldWidget wm;
17 wm.setupUi(&w);
18
19 QObject::connect(wm.OkButton, SIGNAL(clicked()), &w, SLOT(close()));
20
21 w.show();
22 return a.exec();
23}