Ignore:
Timestamp:
01/22/10 15:41:46 (12 years ago)
Author:
fortefr <fortefr@…>
Branches:
master, qt5
Children:
0d4ecc2
Parents:
49c5ad3
Message:

Conference map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r49c5ad3 re7340e1  
    122122    // event search button clicked
    123123    connect(searchButton, SIGNAL(clicked()), SLOT(searchClicked()));
     124    // event conference map button clicked
     125    connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
    124126    //
    125127    connect(tabWidget, SIGNAL(currentChanged(int)), SLOT(tabHasChanged(int)));
     
    292294}
    293295
     296void MainWindow::conferenceMapClicked()
     297{
     298
     299    QString mapPath = QString(":/maps/campus.png");
     300    if(!QFile::exists(mapPath))
     301        mapPath = QString(":/maps/rooms/not-available.png");
     302
     303    QString roomName;
     304
     305    QPixmap map(mapPath);
     306    MapWindow window(map,roomName,this);
     307    window.exec();
     308}
     309
    294310void MainWindow::displayWarning(const QModelIndex &aIndex)
    295311{
Note: See TracChangeset for help on using the changeset viewer.