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

void View::showInformation ( ImageItem image ) [private]

[5]

[6]

Definition at line 118 of file view.cpp.

References QWidget::activateWindow(), QList< T >::append(), findWindow(), ImageItem::id(), QWidget::move(), officeTable, QWidget::pos, QWidget::raise(), QSqlTableModel::rowCount(), QWidget::show(), updateImage(), and QWidget::window().

Referenced by mouseReleaseEvent().

{
    int id = image->id();
    if (id < 0 || id >= officeTable->rowCount())
        return;

    InformationWindow *window = findWindow(id);
    if (window && window->isVisible()) {
        window->raise();
        window->activateWindow();
    } else if (window && !window->isVisible()) {
        window->show();
    } else {
        InformationWindow *window;
        window = new InformationWindow(id, officeTable, this);

        connect(window, SIGNAL(imageChanged(int, QString)),
                this, SLOT(updateImage(int, QString)));

        window->move(pos() + QPoint(20, 40));
        window->show();
        informationWindows.append(window);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index