~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to projectmanagers/cmake/tests/manual/qt4app/qt4app.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "qt4app.h"
 
2
 
 
3
#include <QtGui/QLabel>
 
4
#include <QtGui/QMenu>
 
5
#include <QtGui/QMenuBar>
 
6
#include <QtGui/QAction>
 
7
 
 
8
qt4app::qt4app()
 
9
{
 
10
    QLabel* l = new QLabel( this );
 
11
    l->setText( "Hello World!" );
 
12
    setCentralWidget( l );
 
13
    QAction* a = new QAction(this);
 
14
    a->setText( "Quit" );
 
15
    connect(a, SIGNAL(triggered()), SLOT(close()) );
 
16
    menuBar()->addMenu( "File" )->addAction( a );
 
17
}
 
18
 
 
19
qt4app::~qt4app()
 
20
{}
 
21
 
 
22
#include "qt4app.moc"