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

QStatusBar * QMainWindow::statusBar (  )  const [inherited]

Returns the status bar for the main window. This function creates and returns an empty status bar if the status bar does not exist.

See also:

Definition at line 521 of file qmainwindow.cpp.

References QWidget::layout(), and QWidget::setSizePolicy().

Referenced by MainWindow::changeCurrent(), MainWindow::createStatusBar(), MainWindow::loadFile(), MainWindow::mousePressEvent(), MainWindow::print(), and MainWindow::saveFile().

    QStatusBar *statusbar = d_func()->layout->statusBar();
    if (!statusbar) {
      QMainWindow *self = const_cast<QMainWindow *>(this);
      statusbar = new QStatusBar(self);
        statusbar->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
    return statusbar;

Generated by  Doxygen 1.6.0   Back to index