Changeset d4a8bbf in confclerk_git for src/gui/mainwindow.cpp
- Timestamp:
- 01/20/10 16:27:11 (13 years ago)
- Branches:
- master, qt5
- Children:
- a5c1179
- Parents:
- f2ef735
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
rf2ef735 rd4a8bbf 21 21 const int confId = 1; 22 22 23 MainWindow::MainWindow( QWidget *parent)24 : QMainWindow( parent)23 MainWindow::MainWindow(int aEventId, QWidget *aParent) 24 : QMainWindow(aParent) 25 25 { 26 26 setupUi(this); … … 116 116 connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTab(int))); 117 117 118 // open dialog for given Event ID 119 // this is used in case Alarm Dialog request application to start 120 if(aEventId) 121 { 122 EventDialog dialog(aEventId,this); 123 dialog.exec(); 124 } 118 125 } 119 126 … … 229 236 return; 230 237 231 EventDialog dialog( aIndex,this);238 EventDialog dialog(static_cast<Event*>(aIndex.internalPointer())->id(),this); 232 239 dialog.exec(); 233 240 }
Note: See TracChangeset
for help on using the changeset viewer.