summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofilelistview.cpp
authorzecke <zecke>2002-10-28 19:55:18 (UTC)
committer zecke <zecke>2002-10-28 19:55:18 (UTC)
commit3ba494eb02e72e1f9a732c46ec8085e843f01eca (patch) (unidiff)
treecdc0e7af342cd0e205ed4ae1c1da92ced3fd5774 /libopie/ofileselector/ofilelistview.cpp
parente9d8023028b7c996d8ff2a68b87dfde19fcfa892 (diff)
downloadopie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.zip
opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.gz
opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.bz2
This will probably not compile.. i did not even try to compile it
on my machine I changed the data flow to be more extandable the Olister class is now playing a bigger role it's dependant on doing some assembly of the filepath and changedirs. It now has also to take care of the location bar
Diffstat (limited to 'libopie/ofileselector/ofilelistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/ofilelistview.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/libopie/ofileselector/ofilelistview.cpp b/libopie/ofileselector/ofilelistview.cpp
index 691bf42..9cfdc48 100644
--- a/libopie/ofileselector/ofilelistview.cpp
+++ b/libopie/ofileselector/ofilelistview.cpp
@@ -46,6 +46,7 @@ void OFileListView::clear() {
46void OFileListView::addFile( const QPixmap& pix, 46void OFileListView::addFile( const QPixmap& pix,
47 const QString&, 47 const QString&,
48 QFileInfo* info, 48 QFileInfo* info,
49 const QString& /*extra*/,
49 bool isSymlink ) { 50 bool isSymlink ) {
50 QString dir; 51 QString dir;
51 QString name; 52 QString name;
@@ -70,11 +71,15 @@ void OFileListView::addFile( const QPixmap& pix,
70} 71}
71void OFileListView::addFile( const QPixmap&, 72void OFileListView::addFile( const QPixmap&,
72 const QString& /*mime*/, const QString& /*dir*/, 73 const QString& /*mime*/, const QString& /*dir*/,
73 const QString& /*file*/, bool /*isSyml*/ ) { 74 const QString& /*file*/,
75 const QString& /*extra*/,
76 bool /*isSyml*/ ) {
74 77
75} 78}
76void OFileListView::addDir( const QPixmap& pix, const QString&, 79void OFileListView::addDir( const QPixmap& pix, const QString&,
77 QFileInfo* info, bool symlink ) { 80 QFileInfo* info,
81 const QString& /*extra */,
82 bool symlink ) {
78 83
79 bool locked = false; 84 bool locked = false;
80 QString name; 85 QString name;
@@ -90,18 +95,23 @@ void OFileListView::addDir( const QPixmap& pix, const QString&,
90} 95}
91void OFileListView::addDir( const QPixmap&, 96void OFileListView::addDir( const QPixmap&,
92 const QString& /*mime*/, const QString& /*dir*/, 97 const QString& /*mime*/, const QString& /*dir*/,
93 const QString& /*file*/, bool ) { 98 const QString& /*file*/,
99 const QString& /*extra*/,
100 bool ) {
94 101
95} 102}
96void OFileListView::addSymlink( const QPixmap&, 103void OFileListView::addSymlink( const QPixmap&,
97 const QString& /*mime*/, 104 const QString& /*mime*/,
98 QFileInfo* /*info*/, 105 QFileInfo* /*info*/,
106 const QString& /*extra*/,
99 bool /*isSym*/ ) { 107 bool /*isSym*/ ) {
100 108
101} 109}
102void OFileListView::addSymlink(const QPixmap&, 110void OFileListView::addSymlink(const QPixmap&,
103 const QString& /*m*/, const QString& /*path*/, 111 const QString& /*m*/, const QString& /*path*/,
104 const QString& /*file*/, bool /*isSym*/ ) { 112 const QString& /*file*/,
113 const QString& /*extra*/,
114 bool /*isSym*/ ) {
105 115
106} 116}
107void OFileListView::cd( const QString& ) { 117void OFileListView::cd( const QString& ) {
@@ -127,7 +137,7 @@ QString OFileListView::selectedPath()const {
127} 137}
128QStringList OFileListView::selectedPaths()const { 138QStringList OFileListView::selectedPaths()const {
129 QStringList list; 139 QStringList list;
130 list << selectedPath(); 140b list << selectedPath();
131 return list; 141 return list;
132} 142}
133int OFileListView::fileCount() { 143int OFileListView::fileCount() {