Diffstat (limited to 'noncore/graphics/opie-eye/impl/dir/dir_lister.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/impl/dir/dir_lister.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp index 3717297..d8b332a 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp +++ b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp | |||
@@ -12,35 +12,25 @@ | |||
12 | #include <qpe/qpeapplication.h> | 12 | #include <qpe/qpeapplication.h> |
13 | using namespace Opie::Core; | 13 | using namespace Opie::Core; |
14 | 14 | ||
15 | /* QT */ | 15 | /* QT */ |
16 | #include <qdir.h> | 16 | #include <qdir.h> |
17 | #include <qfileinfo.h> | 17 | #include <qfileinfo.h> |
18 | 18 | ||
19 | Dir_DirLister::Dir_DirLister( bool list ) | 19 | Dir_DirLister::Dir_DirLister( bool list ) |
20 | : PDirLister( "dir_dir_lister" ) | 20 | : PDirLister( "dir_dir_lister" ) |
21 | { | 21 | { |
22 | m_allFiles = list; | 22 | m_allFiles = list; |
23 | owarn << "All Files " << m_allFiles << "" << oendl; | 23 | owarn << "All Files " << m_allFiles << "" << oendl; |
24 | 24 | SlaveHelper::slaveConnectSignals( this ); | |
25 | SlaveMaster* master = SlaveMaster::self(); | ||
26 | connect( master, SIGNAL(sig_start()), this, SIGNAL(sig_start()) ); | ||
27 | connect( master, SIGNAL(sig_end()), this, SIGNAL(sig_end()) ); | ||
28 | connect( master, SIGNAL(sig_thumbInfo(const QString&, const QString&)), | ||
29 | this, SIGNAL(sig_thumbInfo(const QString&, const QString&)) ); | ||
30 | connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), | ||
31 | this, SIGNAL(sig_fullInfo(const QString&, const QString&)) ); | ||
32 | connect( master, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)), | ||
33 | this, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)) ); | ||
34 | |||
35 | } | 25 | } |
36 | 26 | ||
37 | QString Dir_DirLister::defaultPath()const { | 27 | QString Dir_DirLister::defaultPath()const { |
38 | return QPEApplication::documentDir(); | 28 | return QPEApplication::documentDir(); |
39 | } | 29 | } |
40 | 30 | ||
41 | QString Dir_DirLister::setStartPath( const QString& path ) { | 31 | QString Dir_DirLister::setStartPath( const QString& path ) { |
42 | m_currentDir.cd( path ); | 32 | m_currentDir.cd( path ); |
43 | if (!m_currentDir.exists() ) | 33 | if (!m_currentDir.exists() ) |
44 | m_currentDir.cd(defaultPath()); | 34 | m_currentDir.cd(defaultPath()); |
45 | 35 | ||
46 | 36 | ||