- 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/alarm/alarm.cpp
rf2ef735 rd4a8bbf 2 2 3 3 #include <QDateTime> 4 5 #include <QApplication> 6 #include <QDir> 4 7 5 8 int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime) … … 19 22 /* Add exec command action */ 20 23 action = alarm_event_add_actions(event, 1); 21 QString command = Q String("/home/maemo/work/fosdem-maemo/bin/fosdem%1").arg(QString::number(aEventId));24 QString command = QDir::currentPath() + "/" + *qApp->argv() + QString(" %1").arg(QString::number(aEventId)); 22 25 alarm_action_set_exec_command(action, command.toLocal8Bit().data()); 23 26 action->flags |= ALARM_ACTION_TYPE_EXEC;
Note: See TracChangeset
for help on using the changeset viewer.