Do not display seconds for events (useless)
authorChristophe Dumez <dchris@gmail.com>
Sat, 10 Jul 2010 21:14:19 +0000 (23:14 +0200)
committerChristophe Dumez <dchris@gmail.com>
Sat, 10 Jul 2010 21:14:19 +0000 (23:14 +0200)
TimedSilencer.pro.user
switchingeventlist.cpp

index 7e82d5e..5f3e98d 100644 (file)
     <value key="Qt4ProjectManager.MaemoRunConfiguration.DeviceId" type="qulonglong">16</value>
     <valuemap key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployed" type="QVariantMap">
      <value key="192.168.1.4" type="QDateTime">2010-06-29T00:09:20</value>
-     <value key="localhost" type="QDateTime">2010-07-10T21:27:51</value>
+     <value key="localhost" type="QDateTime">2010-07-10T22:58:15</value>
     </valuemap>
    </valuemap>
    <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
index 022b7d9..57514e3 100644 (file)
@@ -59,8 +59,8 @@ SwitchingEventList::~SwitchingEventList() {
 
 void SwitchingEventList::updateRow(int row, ProfileEvent *pe) {
   model->setData(model->index(row, EV_STATUS), pe->activated, Qt::UserRole);
-  model->setData(model->index(row, EV_FROM), pe->from_time.toString());
-  model->setData(model->index(row, EV_TO), pe->to_time.toString());
+  model->setData(model->index(row, EV_FROM), pe->from_time.toString("HH:MM"));
+  model->setData(model->index(row, EV_TO), pe->to_time.toString("HH:MM"));
   model->setData(model->index(row, EV_REPEAT), ProfileEvent::formatDays(pe->days));
   model->setData(model->index(row, EV_ID), pe->getID());
 }