Ignore:
Timestamp:
01/27/10 20:17:01 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
21d7cc0
Parents:
bc88043
Message:

implemented 'conflicts' dialog

  • displays rooms instead of conflicts for now
    • needs to implement additional methods in Event, ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/tabcontainer.cpp

    rbc88043 rea638ef  
    1010#include "eventdialog.h"
    1111#include "mapwindow.h"
     12
     13#include "conflictsdialog.h"
    1214
    1315TabContainer::TabContainer(QWidget *aParent)
     
    2830    connect(treeView, SIGNAL(clicked(const QModelIndex &)), SLOT(itemClicked(const QModelIndex &)));
    2931    connect(treeView, SIGNAL(requestForMap(const QModelIndex &)), SLOT(displayMap(const QModelIndex &)));
    30     connect(treeView, SIGNAL(requestForWarning(const QModelIndex &)), SLOT(displayWarning(const QModelIndex &)));
     32    connect(treeView, SIGNAL(requestForConflicts(const QModelIndex &)), SLOT(displayConflicts(const QModelIndex &)));
    3133
    3234    if(!Conference::getAll().count()) // no conference(s) in the DB
     
    8284}
    8385
    84 void TabContainer::displayWarning(const QModelIndex &aIndex)
     86void TabContainer::displayConflicts(const QModelIndex &aIndex)
    8587{
    8688    Q_UNUSED(aIndex);
    8789
    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)));
    9294}
    9395
Note: See TracChangeset for help on using the changeset viewer.