Ignore:
Timestamp:
04/23/10 08:04:08 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
3cdaf7d
Parents:
66428e7
Message:

restore viewing of conference map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/conferenceeditor.cpp

    r66428e7 rcb7b999  
    2121#include "conferencemodel.h"
    2222#include "urlinputdialog.h"
     23#include "mapwindow.h"
    2324
    2425#include <QInputDialog>
     
    4849    connect(changeUrl, SIGNAL(clicked()), SLOT(changeUrlClicked()));
    4950    connect(refreshBtn, SIGNAL(clicked()), SLOT(refreshClicked()));
     51    connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
    5052
    5153    // it's OK to emit selection signals here
     
    207209    itemSelected(QModelIndex(), QModelIndex());
    208210}
     211
     212void ConferenceEditor::conferenceMapClicked()
     213{
     214    QString mapPath = QString(":/maps/campus.png");
     215    if(!QFile::exists(mapPath))
     216        mapPath = QString(":/maps/rooms/not-available.png");
     217
     218    QString roomName;
     219
     220    QPixmap map(mapPath);
     221    MapWindow window(map,roomName,this);
     222    window.exec();
     223}
Note: See TracChangeset for help on using the changeset viewer.