Changeset e6ab8a2 in confclerk_git for src/gui/conferenceeditor.cpp
- Timestamp:
- 07/04/11 23:42:02 (12 years ago)
- Branches:
- master, qt5
- Children:
- 526128c
- Parents:
- 8dd3dd2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/conferenceeditor.cpp
r8dd3dd2 re6ab8a2 22 22 #include "conferencemodel.h" 23 23 #include "urlinputdialog.h" 24 #include "mapwindow.h"25 24 #include "errormessage.h" 26 25 … … 51 50 connect(changeUrl, SIGNAL(clicked()), SLOT(changeUrlClicked())); 52 51 connect(refreshBtn, SIGNAL(clicked()), SLOT(refreshClicked())); 53 connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked()));54 52 connect(buttonBox, SIGNAL(rejected()), SLOT(close())); 55 53 … … 97 95 + ", " + 98 96 conf.end().toString("dd-MM-yyyy")); 99 100 QString map = conf.map();101 if (map.isEmpty()) {102 showMapButton->hide();103 } else {104 showMapButton->show();105 }106 107 97 conferenceInfo->setCurrentIndex(0); 108 98 removeBtn->show(); … … 220 210 } 221 211 222 void ConferenceEditor::conferenceMapClicked()223 {224 Conference conf = Conference::getById(selected_id);225 QString mapPath = conf.map();226 if(mapPath.isEmpty() or !QFile::exists(mapPath)) {227 error_message("Map is not available");228 return;229 }230 231 QString roomName;232 233 QPixmap map(mapPath);234 MapWindow window(map,roomName,this);235 window.exec();236 }
Note: See TracChangeset
for help on using the changeset viewer.