← Back to team overview

ayatana-commits team mailing list archive

[Branch ~agateau/plasma-indicatordisplay/trunk] Rev 78: Updated model dump code.

 

------------------------------------------------------------
revno: 78
committer: Aurelien Gateau <aurelien.gateau@xxxxxxxxxxxxx>
branch nick: plasma-indicatordisplay
timestamp: Tue 2009-09-15 10:52:51 +0200
message:
  Updated model dump code.
modified:
  src/indicatordisplay.cpp


--
lp:plasma-indicatordisplay
https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk

Your team ayatana-commits is subscribed to branch lp:plasma-indicatordisplay.
To unsubscribe from this branch go to https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk/+edit-subscription.
=== modified file 'src/indicatordisplay.cpp'
--- src/indicatordisplay.cpp	2009-09-11 15:10:09 +0000
+++ src/indicatordisplay.cpp	2009-09-15 08:52:51 +0000
@@ -271,11 +271,12 @@
 void IndicatorDisplay::dumpModels()
 {
     RoleDumperHash hash;
-    hash.insert(33, new PointerRoleDumper<QIndicate::Listener::Server>("server"));
-    hash.insert(34, new PointerRoleDumper<QIndicate::Listener::Indicator>("indicator"));
+    hash.insert(Qt::UserRole + 1, new PointerRoleDumper<QIndicate::Listener::Server>("server"));
+    hash.insert(Qt::UserRole + 2, new PointerRoleDumper<QIndicate::Listener::Indicator>("indicator"));
     hash.insert(ListenerModel::ServerTypeRole, new SimpleRoleDumper("type"));
-    hash.insert(ListenerModel::IndicatorTimeRole, new SimpleRoleDumper("time"));
     hash.insert(ListenerModel::IndicatorCountRole, new SimpleRoleDumper("count"));
+    hash.insert(ListenerModel::IndicatorDateTimeRole, new SimpleRoleDumper("time"));
+    hash.insert(ListenerModel::IndicatorDrawAttentionRole, new SimpleRoleDumper("attention"));
     qDebug();
     qDebug() << "## mSourceModel";
     dump(hash, mSourceModel);