diff options
Diffstat (limited to 'examples/main.cpp')
| -rw-r--r-- | examples/main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/main.cpp b/examples/main.cpp index 602721d00..81cc4c20d 100644 --- a/examples/main.cpp +++ b/examples/main.cpp @@ -19,14 +19,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ -#include <TQtGui/TQApplication> +#include <tqapplication.h> #include "PkExample.h" int main(int argc, char *argv[]) { - TQApplication app(argc, argv); - PkExample example; - example.show(); - return app.exec(); + TQApplication app(argc, argv); + PkExample *example = new PkExample; + example->show(); + app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); + return app.exec(); } |
