Ignore:
Timestamp:
01/20/10 16:27:11 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
a5c1179
Parents:
f2ef735
Message:

MAEMO: work on alarm

  • snooze alarm
  • cancel alarm
  • run application which automatically display Event dialog for given Event ID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rf2ef735 rd4a8bbf  
    2121const int confId = 1;
    2222
    23 MainWindow::MainWindow(QWidget *parent)
    24     : QMainWindow(parent)
     23MainWindow::MainWindow(int aEventId, QWidget *aParent)
     24    : QMainWindow(aParent)
    2525{
    2626    setupUi(this);
     
    116116    connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTab(int)));
    117117
     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    }
    118125}
    119126
     
    229236        return;
    230237
    231     EventDialog dialog(aIndex,this);
     238    EventDialog dialog(static_cast<Event*>(aIndex.internalPointer())->id(),this);
    232239    dialog.exec();
    233240}
Note: See TracChangeset for help on using the changeset viewer.