author | llornkcor <llornkcor> | 2002-05-14 22:04:42 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-14 22:04:42 (UTC) |
commit | 1d397c2c0df731dc878c8574f653c8c2685e2378 (patch) (side-by-side diff) | |
tree | 0a3c2aeb664413f10e55bf989cc24b0285d6471b | |
parent | e325f9cfb783010caa8618608a4d57884c0107c5 (diff) | |
download | opie-1d397c2c0df731dc878c8574f653c8c2685e2378.zip opie-1d397c2c0df731dc878c8574f653c8c2685e2378.tar.gz opie-1d397c2c0df731dc878c8574f653c8c2685e2378.tar.bz2 |
fricking dos line endings... man.. I'll be SO glad when I get dsl back... ggrrrrrrrrr
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index 10e50f0..7dabdb6 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp @@ -542,24 +542,24 @@ void FileView::cut() flist.clear(); while( item ){ if( ite - // ##### a better inmplementation might be to rename the CUT file
- // ##### to ".QPE-FILEBROWSER-MOVING" rather than copying it.
- QString cmd, dest, basename, cd = "/tmp/qpemoving";
- QStringList newflist;
- newflist.clear();
-
- cmd = "rm -rf " + cd;
- system ( (const char *) cmd );
- cmd = "mkdir " + cd;
- system( (const char *) cmd );
-
-// get the names of the files to cut
- FileItem * item;
-
- if((item = (FileItem *) firstChild()) == 0) return;
-
- flist.clear();
- while( item ){
+ // ##### a better inmplementation might be to rename the CUT file + // ##### to ".QPE-FILEBROWSER-MOVING" rather than copying it. + QString cmd, dest, basename, cd = "/tmp/qpemoving"; + QStringList newflist; + newflist.clear(); + + cmd = "rm -rf " + cd; + system ( (const char *) cmd ); + cmd = "mkdir " + cd; + system( (const char *) cmd ); + +// get the names of the files to cut + FileItem * item; + + if((item = (FileItem *) firstChild()) == 0) return; + + flist.clear(); + while( item ){ if( item->isSelected() /*&& !item->isDir()*/ ){ flist += item->getFilePath(); } @@ -1108,22 +1108,22 @@ void FileBrowser::cleanUp() { // qDebug("exit"); system(cmdr.latin1()); } -
-{
- bool valShowThumbnails=viewMenu->isItemChecked( viewMenu->idAt( 2 ) );
- valShowThumbnails=!valShowThumbnails;
- viewMenu->setItemChecked( viewMenu->idAt( 2 ), valShowThumbnails );
- fileView->setShowThumbnails(valShowThumbnails);
-
- Config cfg("Filebrowser");
- cfg.setGroup("View");
- cfg.writeEntry("Thumbnails",valShowThumbnails?"TRUE":"FALSE");
-
- fileView->updateDir();
-}
-
-void FileBrowser::cleanUp() {
- QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache";
-// qDebug("exit");
- system(cmdr.latin1());
-}
+ +{ + bool valShowThumbnails=viewMenu->isItemChecked( viewMenu->idAt( 2 ) ); + valShowThumbnails=!valShowThumbnails; + viewMenu->setItemChecked( viewMenu->idAt( 2 ), valShowThumbnails ); + fileView->setShowThumbnails(valShowThumbnails); + + Config cfg("Filebrowser"); + cfg.setGroup("View"); + cfg.writeEntry("Thumbnails",valShowThumbnails?"TRUE":"FALSE"); + + fileView->updateDir(); +} + +void FileBrowser::cleanUp() { + QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache"; +// qDebug("exit"); + system(cmdr.latin1()); +} |