Changeset f9db452 for src/gui


Ignore:
Timestamp:
01/19/10 08:44:40 (13 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
b1fc17a
Parents:
446bce4
Message:

map-name to map-path implemented

  • correct map is displayed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r446bce4 rf9db452  
    199199void MainWindow::displayMap(const QModelIndex &aIndex)
    200200{
    201     QPixmap map(":/maps/rooms/janson.png");
     201    Event *event = static_cast<Event*>(aIndex.internalPointer());
     202    QString mapPath = QString(":/maps/rooms/%1.png").arg(event->room());
     203    QPixmap map(mapPath);
    202204    MapWindow window(map,this);
    203205    window.exec();
Note: See TracChangeset for help on using the changeset viewer.