]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/gui/conflictdialogcontainer.cpp
implemented 'conflicts' dialog
[toast/confclerk.git] / src / gui / conflictdialogcontainer.cpp
diff --git a/src/gui/conflictdialogcontainer.cpp b/src/gui/conflictdialogcontainer.cpp
new file mode 100644 (file)
index 0000000..b09eda7
--- /dev/null
@@ -0,0 +1,26 @@
+
+#include "conflictdialogcontainer.h"
+
+ConflictDialogContainer::ConflictDialogContainer(QWidget *aParent)
+    : TabContainer( aParent )
+{
+}
+
+void ConflictDialogContainer::loadEvents( const QDate &aDate, const int aConferenceId )
+{
+    static_cast<EventModel*>(treeView->model())->loadEventsByRoom( aDate, aConferenceId );
+    //treeView->setAllExpanded(true);
+}
+
+void ConflictDialogContainer::updateTreeViewModel(int aEventId)
+{
+    // requires special handling
+    // we need to reload favourites, because some favourite could be deleted
+    //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
+    int confId = Conference::activeConference();
+    QDate startDate = Conference::getById(confId).start();
+    QDate endDate = Conference::getById(confId).end();
+    dayNavigator->setDates(startDate, endDate);
+    updateTreeView( Conference::getById(confId).start() );
+}
+