Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void MainWindow::createActions (  )  [private]

[1]

[7]

[12]

[27]

[0]

[16]

[4]

[22]

[3]

[23]

[17] [17] //! [18]

[2]

[1]

[28]

[13] [13] //! [14]

[8]

[4]

[23]

Definition at line 103 of file mainwindow.cpp.

References about(), aboutAct, assistant(), QWidget::close(), QObject::connect(), open(), QAction::setShortcut(), and textViewer.

Referenced by MainWindow().

{
    assistantAct = new QAction(tr("Help Contents"), this);
    assistantAct->setShortcut(tr("F1"));
    connect(assistantAct, SIGNAL(triggered()), this, SLOT(assistant()));

    openAct = new QAction(tr("&Open..."), this);
    openAct->setShortcut(tr("Ctrl+O"));
    connect(openAct, SIGNAL(triggered()), this, SLOT(open()));

    clearAct = new QAction(tr("&Clear"), this);
    clearAct->setShortcut(tr("Ctrl+C"));
    connect(clearAct, SIGNAL(triggered()), textViewer, SLOT(clear()));

    exitAct = new QAction(tr("E&xit"), this);
    exitAct->setShortcut(tr("Ctrl+Q"));
    connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));

    aboutAct = new QAction(tr("&About"), this);
    connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));

    aboutQtAct = new QAction(tr("About &Qt"), this);
    connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
}


Generated by  Doxygen 1.6.0   Back to index