[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/kopete/contactlist
From: José Millán Soto <fid () gpul ! org>
Date: 2011-08-30 9:23:22
Message-ID: 20110830092322.3AEF6AC87A () svn ! kde ! org
[Download RAW message or body]
SVN commit 1250237 by millansoto:
Improving contacts accessible information
Giving information about status and status messaged when
Qt::AccessibleTextRole or Qt::AccessibleDescriptionRole are
requested in ContactListModel::metaContactData.
REVIEW: 6788
M +6 -0 contactlistmodel.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/contactlistmodel.cpp \
#1250236:1250237 @@ -493,6 +493,12 @@
case Qt::DisplayRole:
return mc->displayName();
break;
+ case Qt::AccessibleTextRole:
+ return i18nc("%1 is display name, %2 is status (connected/away/etc.)", "%1 (%2)", \
mc->displayName(), mc->statusString()); + break;
+ case Qt::AccessibleDescriptionRole:
+ return i18nc("%1 is display name, %2 is status and %3 is status message", "%1 \
(%2)\n%3", mc->displayName(), mc->statusString(), mc->statusMessage().message()); \
+ break; case Kopete::Items::MetaContactImageRole:
return metaContactImage( mc );
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic