blob: e9a1567be4ce048d7cf4dc0a4739ad45ac4fba21 (
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
|
/****************************************************************
**
** Implementation of MainWindow class, translation tutorial 2
**
****************************************************************/
#include "arrowpad.h"
#include "mainwindow.h"
#include <qaccel.h>
#include <qapplication.h>
#include <qmenubar.h>
#include <qpopupmenu.h>
MainWindow::MainWindow( QWidget *parent, const char *name )
: QMainWindow( parent, name )
{
ArrowPad *ap = new ArrowPad( this, "arrow pad" );
setCentralWidget( ap );
QPopupMenu *file = new QPopupMenu( this );
file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
menuBar()->insertItem( tr("&File"), file );
menuBar()->setSeparator( QMenuBar::InWindowsStyle );
}
|