Changeset e7340e1 for src/gui


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

Conference map

Location:
src/gui
Files:
3 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{
  • src/gui/mainwindow.h

    r49c5ad3 re7340e1  
    2828    void displayWarning(const QModelIndex &aIndex);
    2929    void searchClicked();
     30    void conferenceMapClicked();
    3031    void tabHasChanged(int aIndex);
    3132    void eventHasChanged(int aEventId);
  • src/gui/mainwindow.ui

    r49c5ad3 re7340e1  
    230230       </layout>
    231231      </widget>
    232       <widget class="QWidget" name="mapTab" >
    233        <attribute name="title" >
    234         <string>Map</string>
    235        </attribute>
    236       </widget>
    237       <widget class="QWidget" name="conferenceTab" >
    238        <attribute name="title" >
     232     <widget class="QWidget" name="conferenceTab" >
     233      <attribute name="title" >
    239234        <string>Conference</string>
    240235       </attribute>
Note: See TracChangeset for help on using the changeset viewer.