Changeset ea638ef for src/gui/tabcontainer.cpp
- Timestamp:
- 01/27/10 20:17:01 (13 years ago)
- Branches:
- master, qt5
- Children:
- 21d7cc0
- Parents:
- bc88043
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/tabcontainer.cpp
rbc88043 rea638ef 10 10 #include "eventdialog.h" 11 11 #include "mapwindow.h" 12 13 #include "conflictsdialog.h" 12 14 13 15 TabContainer::TabContainer(QWidget *aParent) … … 28 30 connect(treeView, SIGNAL(clicked(const QModelIndex &)), SLOT(itemClicked(const QModelIndex &))); 29 31 connect(treeView, SIGNAL(requestForMap(const QModelIndex &)), SLOT(displayMap(const QModelIndex &))); 30 connect(treeView, SIGNAL(requestFor Warning(const QModelIndex &)), SLOT(displayWarning(const QModelIndex &)));32 connect(treeView, SIGNAL(requestForConflicts(const QModelIndex &)), SLOT(displayConflicts(const QModelIndex &))); 31 33 32 34 if(!Conference::getAll().count()) // no conference(s) in the DB … … 82 84 } 83 85 84 void TabContainer::display Warning(const QModelIndex &aIndex)86 void TabContainer::displayConflicts(const QModelIndex &aIndex) 85 87 { 86 88 Q_UNUSED(aIndex); 87 89 88 QMessageBox::warning(89 this,90 tr("Time Conflict Warning"),91 tr("This event happens at the same time than another one of your favourites."));90 ConflictsDialog dialog; 91 connect(&dialog, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int))); 92 dialog.exec(); 93 disconnect(&dialog, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int))); 92 94 } 93 95
Note: See TracChangeset
for help on using the changeset viewer.