connect(nowTreeView, SIGNAL(requestForWarning(const QModelIndex &)), SLOT(displayWarning(const QModelIndex &)));
// event search button clicked
connect(searchButton, SIGNAL(clicked()), SLOT(searchClicked()));
+ // event conference map button clicked
+ connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));
//
connect(tabWidget, SIGNAL(currentChanged(int)), SLOT(tabHasChanged(int)));
updateSearchView( Conference::getById(AppSettings::confId()).start() );
}
+void MainWindow::conferenceMapClicked()
+{
+
+ QString mapPath = QString(":/maps/campus.png");
+ if(!QFile::exists(mapPath))
+ mapPath = QString(":/maps/rooms/not-available.png");
+
+ QString roomName;
+
+ QPixmap map(mapPath);
+ MapWindow window(map,roomName,this);
+ window.exec();
+}
+
void MainWindow::displayWarning(const QModelIndex &aIndex)
{
Q_UNUSED(aIndex);