Changeset 1825f82
- Timestamp:
- 09/21/11 23:49:43 (11 years ago)
- Branches:
- master, qt5
- Children:
- 6d48bb2
- Parents:
- bf6be88
- Location:
- src/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/daynavigatorwidget.cpp
rbf6be88 r1825f82 72 72 73 73 74 void DayNavigatorWidget::unsetDates() { 75 mStartDate= QDate(); 76 mEndDate = QDate(); 77 mCurDate = QDate(); 78 79 configureNavigation(); 80 emit(dateChanged(mCurDate)); 81 this->update(); 82 } 83 84 74 85 void DayNavigatorWidget::configureNavigation() { 75 86 prevDayButton->setDisabled(!mStartDate.isValid() || mCurDate == mStartDate); -
src/gui/daynavigatorwidget.h
rbf6be88 r1825f82 36 36 void setCurDate(const QDate& curDate); 37 37 QDate curDate() const {return mCurDate;} 38 void unsetDates(); 38 39 protected: 39 40 void paintEvent(QPaintEvent *); -
src/gui/mainwindow.cpp
rbf6be88 r1825f82 113 113 } 114 114 115 // TODO: open conferences at startup?116 #if 0117 if(!confCount)118 tabWidget->setCurrentIndex(6); // 6 - conference tab119 }120 #endif121 122 115 // open dialog for given Event ID 123 116 // this is used in case Alarm Dialog request application to start … … 215 208 searchTabContainer->searchAgainClicked(); 216 209 nowTabContainer->updateTreeView(QDate::currentDate()); 210 dayNavigator->setDates(startDate, endDate); 217 211 } 218 212 } … … 232 226 { 233 227 clearTabs(); 228 dayNavigator->unsetDates(); 234 229 setWindowTitle(saved_title); 235 230 } -
src/gui/tabcontainer.cpp
rbf6be88 r1825f82 45 45 treeView->setItemDelegate(new Delegate(treeView)); 46 46 47 connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateTreeView(const QDate &)));47 // connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateTreeView(const QDate &))); 48 48 49 49 connect(treeView, SIGNAL(eventHasChanged(int,bool)), SIGNAL(eventHasChanged(int,bool)));
Note: See TracChangeset
for help on using the changeset viewer.