ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #00190
[Branch ~agateau/libindicate-qt/trunk] Rev 91: Test 'draw attention'
------------------------------------------------------------
revno: 91
committer: Aurelien Gateau <aurelien.gateau@xxxxxxxxxxxxx>
branch nick: libindicate-qt
timestamp: Tue 2009-09-15 17:32:26 +0200
message:
Test 'draw attention'
modified:
examples/qim-client.cpp
--
lp:libindicate-qt
https://code.launchpad.net/~agateau/libindicate-qt/trunk
Your team ayatana-commits is subscribed to branch lp:libindicate-qt.
To unsubscribe from this branch go to https://code.launchpad.net/~agateau/libindicate-qt/trunk/+edit-subscription.
=== modified file 'examples/qim-client.cpp'
--- examples/qim-client.cpp 2009-09-15 15:15:24 +0000
+++ examples/qim-client.cpp 2009-09-15 15:32:26 +0000
@@ -66,7 +66,14 @@
}
qDebug() << __FUNCTION__;
- mIndicator->setIndicatorProperty("name", mUserList[mPos] + " says 'Boo'");
+ bool attention = !mIndicator->drawAttentionProperty();
+ QString message = attention
+ ? " wants to talk to you now!"
+ : " does not want to talk anymore";
+ mIndicator->setIndicatorProperty("name", mUserList[mPos] + message);
+ mIndicator->setDrawAttentionProperty(attention);
+
+ QTimer::singleShot(2000, this, SLOT(modifyIndicator()));
}
void Controller::slotIndicatorDisplay()