From 44b9e62c1e5071fc6e5f8e80204b9974dbc704b6 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 25 Aug 2003 15:06:32 +0000 Subject: add a qtopia method we need for the new launcher --- (limited to 'library') diff --git a/library/backend/categories.cpp b/library/backend/categories.cpp index cce9f38..34ff6fe 100644 --- a/library/backend/categories.cpp +++ b/library/backend/categories.cpp @@ -929,3 +929,11 @@ void CheckedListView::setChecked( const QStringList &checked ) \internal */ + +/* ### FIXME properly merge */ +QStringList Categories::labels( const QString & app, const QArray &catids ) const +{ + QStringList strs = mGlobalCats.labels( catids ); + strs += mAppCats[app].labels( catids ); + return strs; +} diff --git a/library/backend/categories.h b/library/backend/categories.h index d5b3669..91c93e7 100644 --- a/library/backend/categories.h +++ b/library/backend/categories.h @@ -151,6 +151,9 @@ public: bool includeGlobal = TRUE, ExtraLabels extra = NoExtra ) const; + QStringList labels( const QString &app, + const QArray &catids ) const; + enum DisplaySingle { ShowMulti, ShowAll, ShowFirst }; /** Returns a single string associated with the cat ids for display in -- cgit v0.9.0.2