~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to tools/build/v2/example/qt/qt4/hello/main.cpp

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
ImportĀ upstreamĀ versionĀ 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright Vladimir Prus 2005.
 
2
// Distributed under the Boost Software License, Version 1.0.
 
3
// (See accompanying file LICENSE_1_0.txt
 
4
// or copy at http://www.boost.org/LICENSE_1_0.txt)
 
5
 
 
6
#include "arrow.h"
 
7
 
 
8
#include <QApplication>
 
9
#include <QTimer>
 
10
 
 
11
int main(int ac, char* av[])
 
12
{
 
13
    QApplication app(ac, av);
 
14
    Arrow_widget* w = new Arrow_widget;
 
15
    w->resize(1100, 480);
 
16
 
 
17
    QTimer timer;
 
18
    QObject::connect(&timer, SIGNAL(timeout()),
 
19
                     w, SLOT(slotChangeColor()));
 
20
 
 
21
    timer.start(2000);
 
22
 
 
23
    w->show();
 
24
    app.exec();
 
25
    return 0;
 
26
}
 
27