summaryrefslogtreecommitdiff
path: root/libopie
Unidiff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimrecord.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie/pim/opimrecord.cpp b/libopie/pim/opimrecord.cpp
index e510f4e..88b6fde 100644
--- a/libopie/pim/opimrecord.cpp
+++ b/libopie/pim/opimrecord.cpp
@@ -1 +1,4 @@
1#include <qpe/categories.h>
2#include <qpe/categoryselect.h>
3
1#include "opimrecord.h" 4#include "opimrecord.h"
@@ -21,4 +24,14 @@ OPimRecord &OPimRecord::operator=( const OPimRecord& rec) {
21} 24}
25/*
26 * category names
27 */
22QStringList OPimRecord::categoryNames()const { 28QStringList OPimRecord::categoryNames()const {
23 QStringList list; 29 QStringList list;
30 QArray<int> cats = categories();
31 Categories catDB;
32 catDB.load( categoryFileName() );
33
34 for (uint i = 0; i < cats.count(); i++ ) {
35 list << catDB.label("Todo List", cats[i] );
36 }
24 37
@@ -30,2 +43,5 @@ void OPimRecord::setCategoryNames( const QStringList& ) {
30void OPimRecord::addCategoryName( const QString& ) { 43void OPimRecord::addCategoryName( const QString& ) {
44 Categories catDB;
45 catDB.load( categoryFileName() );
46
31 47