mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-27 04:13:05 +00:00
23 lines
452 B
C++
23 lines
452 B
C++
![]() |
#include "qt4app.h"
|
||
|
|
||
|
#include <QtGui/QLabel>
|
||
|
#include <QtGui/QMenu>
|
||
|
#include <QtGui/QMenuBar>
|
||
|
#include <QtGui/QAction>
|
||
|
|
||
|
qt4app::qt4app()
|
||
|
{
|
||
|
QLabel* l = new QLabel( this );
|
||
|
l->setText( "Hello World!" );
|
||
|
setCentralWidget( l );
|
||
|
QAction* a = new QAction(this);
|
||
|
a->setText( "Quit" );
|
||
|
connect(a, SIGNAL(triggered()), SLOT(close()) );
|
||
|
menuBar()->addMenu( "File" )->addAction( a );
|
||
|
}
|
||
|
|
||
|
qt4app::~qt4app()
|
||
|
{}
|
||
|
|
||
|
#include "moc_qt4app.cpp"
|