summaryrefslogtreecommitdiffstats
path: root/tdeui/tests/tdemainwindowtest.cpp
blob: bf92dc11cfe6913c8379057af8deb36771f12e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <tqtimer.h>
#include <tqlabel.h>

#include <tdeapplication.h>
#include <kstatusbar.h>
#include <tdemenubar.h>

#include "tdemainwindowtest.h"

MainWindow::MainWindow()
{
    TQTimer::singleShot( 2*1000, this, TQT_SLOT( showMessage() ) );

    setCentralWidget( new TQLabel( "foo", this ) );

    menuBar()->insertItem( "hi" );
}

void MainWindow::showMessage()
{
    statusBar()->show();
    statusBar()->message( "test" );
}

int main( int argc, char **argv )
{
    TDEApplication app( argc, argv, "tdemainwindowtest" );

    MainWindow* mw = new MainWindow; // deletes itself when closed
    mw->show();

    return app.exec();
}

#include "tdemainwindowtest.moc"