~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/knowledgebase/knowledgebase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: james.westby@ubuntu.com-20100525095014-e3cebfkdenjrx3xg
Tags: upstream-4.4.80
ImportĀ upstreamĀ versionĀ 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
{
202
202
    setBusy(false);
203
203
 
204
 
    if (source.startsWith("KnowledgeBaseList\\")) {
 
204
    if (source.startsWith(QLatin1String("KnowledgeBaseList\\"))) {
205
205
        m_totalItems = data["TotalItems"].toInt();
206
206
        m_totalPages = ceil((qreal)m_totalItems/m_itemsPerPage);
207
207
 
224
224
        QStringList keys = data.keys();
225
225
        keys.sort();
226
226
        foreach (const QString &kb, keys) {
227
 
            if (kb.startsWith("KnowledgeBase-")) {
 
227
            if (kb.startsWith(QLatin1String("KnowledgeBase-"))) {
228
228
                Plasma::DataEngine::Data kbData = data[kb].value<Plasma::DataEngine::Data>();
229
229
 
230
230
                KBItemWidget *kbItem = new KBItemWidget(m_KBItemsPage);
246
246
            }
247
247
        }
248
248
 
249
 
    } else if (source.startsWith("Person\\")) {
 
249
    } else if (source.startsWith(QLatin1String("Person\\"))) {
250
250
        Plasma::DataEngine::Data personData = data[source].value<Plasma::DataEngine::Data>();
251
251
        QList<KBItemWidget *> items = m_kbItemsByUser[personData["Id"].toString()];
252
252