author | alwin <alwin> | 2004-04-22 12:00:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-22 12:00:15 (UTC) |
commit | b9509b7b90d7c70c5407f6774512037ff77fcec4 (patch) (unidiff) | |
tree | 9c29d6fb9549aace65c37dd506f5a4d7c52f1fb1 | |
parent | fae4a7b69748c55adebb29deebaaaf40ae2dd887 (diff) | |
download | opie-b9509b7b90d7c70c5407f6774512037ff77fcec4.zip opie-b9509b7b90d7c70c5407f6774512037ff77fcec4.tar.gz opie-b9509b7b90d7c70c5407f6774512037ff77fcec4.tar.bz2 |
ok, checking for valid link isn't a good idea..
-rw-r--r-- | noncore/graphics/opie-eye/impl/doc/doc_lister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp index 8066472..d4d1831 100644 --- a/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp +++ b/noncore/graphics/opie-eye/impl/doc/doc_lister.cpp | |||
@@ -25,49 +25,49 @@ Doc_DirLister::Doc_DirLister() | |||
25 | connect( master, SIGNAL(sig_start()), this, SIGNAL(sig_start()) ); | 25 | connect( master, SIGNAL(sig_start()), this, SIGNAL(sig_start()) ); |
26 | connect( master, SIGNAL(sig_end()), this, SIGNAL(sig_end()) ); | 26 | connect( master, SIGNAL(sig_end()), this, SIGNAL(sig_end()) ); |
27 | connect( master, SIGNAL(sig_thumbInfo(const QString&, const QString&)), | 27 | connect( master, SIGNAL(sig_thumbInfo(const QString&, const QString&)), |
28 | this, SLOT(slotThumbInfo(const QString&, const QString&)) ); | 28 | this, SLOT(slotThumbInfo(const QString&, const QString&)) ); |
29 | connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), | 29 | connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), |
30 | this, SLOT(slotFullInfo(const QString&, const QString&)) ); | 30 | this, SLOT(slotFullInfo(const QString&, const QString&)) ); |
31 | connect( master, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)), | 31 | connect( master, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)), |
32 | this, SLOT(slotThumbNail(const QString&, const QPixmap&)) ); | 32 | this, SLOT(slotThumbNail(const QString&, const QPixmap&)) ); |
33 | 33 | ||
34 | m_namemap.clear(); | 34 | m_namemap.clear(); |
35 | m_filemap.clear(); | 35 | m_filemap.clear(); |
36 | } | 36 | } |
37 | 37 | ||
38 | QString Doc_DirLister::defaultPath()const { | 38 | QString Doc_DirLister::defaultPath()const { |
39 | return ""; QPEApplication::documentDir(); | 39 | return ""; QPEApplication::documentDir(); |
40 | } | 40 | } |
41 | 41 | ||
42 | QString Doc_DirLister::setStartPath(const QString&) { | 42 | QString Doc_DirLister::setStartPath(const QString&) { |
43 | static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png"); | 43 | static const QString Mtype_str("image/jpeg;image/gif;image/bmp;image/png"); |
44 | if (m_namemap.isEmpty()) { | 44 | if (m_namemap.isEmpty()) { |
45 | DocLnkSet ds; | 45 | DocLnkSet ds; |
46 | Global::findDocuments(&ds,Mtype_str); | 46 | Global::findDocuments(&ds,Mtype_str); |
47 | QListIterator<DocLnk> dit(ds.children()); | 47 | QListIterator<DocLnk> dit(ds.children()); |
48 | for( ; dit.current(); ++dit) { | 48 | for( ; dit.current(); ++dit) { |
49 | if (! (*dit)->isValid()) continue; | 49 | // if (! (*dit)->isValid()) continue; |
50 | m_namemap[(*dit)->name()]=(*dit)->file(); | 50 | m_namemap[(*dit)->name()]=(*dit)->file(); |
51 | m_filemap[(*dit)->file()]=(*dit)->name(); | 51 | m_filemap[(*dit)->file()]=(*dit)->name(); |
52 | } | 52 | } |
53 | } | 53 | } |
54 | return QString::null; | 54 | return QString::null; |
55 | } | 55 | } |
56 | 56 | ||
57 | QString Doc_DirLister::currentPath()const { | 57 | QString Doc_DirLister::currentPath()const { |
58 | return QString::null; | 58 | return QString::null; |
59 | } | 59 | } |
60 | 60 | ||
61 | 61 | ||
62 | QStringList Doc_DirLister::folders()const { | 62 | QStringList Doc_DirLister::folders()const { |
63 | return QStringList(); | 63 | return QStringList(); |
64 | } | 64 | } |
65 | 65 | ||
66 | QStringList Doc_DirLister::files()const { | 66 | QStringList Doc_DirLister::files()const { |
67 | QStringList out; | 67 | QStringList out; |
68 | QMap<QString,QString>::ConstIterator it; | 68 | QMap<QString,QString>::ConstIterator it; |
69 | for (it = m_namemap.begin();it != m_namemap.end();++it) { | 69 | for (it = m_namemap.begin();it != m_namemap.end();++it) { |
70 | out.append(it.key()); | 70 | out.append(it.key()); |
71 | } | 71 | } |
72 | return out; | 72 | return out; |
73 | } | 73 | } |