author | zecke <zecke> | 2002-09-10 14:21:14 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-10 14:21:14 (UTC) |
commit | 8b59b498892b0e345d977ccd520087b660a91437 (patch) (unidiff) | |
tree | 4b9fef30cc51cce8e50c072038d15d8e10b29fb2 /library | |
parent | 4aad041a733e2478ff29330e1544e5fefcfb5cde (diff) | |
download | opie-8b59b498892b0e345d977ccd520087b660a91437.zip opie-8b59b498892b0e345d977ccd520087b660a91437.tar.gz opie-8b59b498892b0e345d977ccd520087b660a91437.tar.bz2 |
AppLnk fix QArray -> QMAp
-rw-r--r-- | library/applnk.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/library/applnk.cpp b/library/applnk.cpp index 298581a..41b3008 100644 --- a/library/applnk.cpp +++ b/library/applnk.cpp | |||
@@ -74,22 +74,25 @@ static bool prepareDirectories(const QString& lf) | |||
74 | 74 | ||
75 | class AppLnkPrivate | 75 | class AppLnkPrivate |
76 | { | 76 | { |
77 | public: | 77 | public: |
78 | /* the size of the Pixmap */ | 78 | /* the size of the Pixmap */ |
79 | enum Size {Normal = 0, Big }; | 79 | enum Size {Normal = 0, Big }; |
80 | AppLnkPrivate() { | 80 | AppLnkPrivate() { |
81 | /* we want one normal and one big item */ | 81 | /* we want one normal and one big item */ |
82 | mPixmaps = QArray<QPixmap>(2); | 82 | |
83 | QPixmap pix; | ||
84 | mPixmaps.insert(0, pix ); | ||
85 | mPixmaps.insert(1, pix); | ||
83 | } | 86 | } |
84 | 87 | ||
85 | QStringList mCatList; // always correct | 88 | QStringList mCatList; // always correct |
86 | QArray<int> mCat; // cached value; correct if not empty | 89 | QArray<int> mCat; // cached value; correct if not empty |
87 | QArray<QPixmap> mPixmaps; | 90 | QMap<int, QPixmap> mPixmaps; |
88 | 91 | ||
89 | void updateCatListFromArray() | 92 | void updateCatListFromArray() |
90 | { | 93 | { |
91 | Categories cat( 0 ); | 94 | Categories cat( 0 ); |
92 | cat.load( categoryFileName() ); | 95 | cat.load( categoryFileName() ); |
93 | mCatList = cat.labels("Document View",mCat); | 96 | mCatList = cat.labels("Document View",mCat); |
94 | } | 97 | } |
95 | 98 | ||