-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 20 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 2 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.pro | 2 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 5 |
4 files changed, 13 insertions, 16 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index f1be471..0dc822d 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -45,3 +45,3 @@ AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) renameBox = 0; - + whichTab = 1; unknownXpm = Resource::loadImage("UnknownDocument").smoothScale(AppLnk::smallIconSize(),AppLnk::smallIconSize() ); @@ -91,6 +91,2 @@ void AdvancedFm::tabChanged(QWidget *wd) { - QString fs= getFileSystemType( (const QString &) path); - - setCaption(tr("AdvancedFm :: ")+fs+" :: " - +checkDiskSpace( (const QString &) path )+ tr(" kB free") ); chdir( path.latin1()); @@ -112,6 +108,8 @@ void AdvancedFm::populateView() { QString fileL, fileS, fileDate; - QString fs= getFileSystemType((const QString &) path); + + QString fs = getFileSystemType((const QString &) path); setCaption(tr("AdvancedFm :: ")+fs+" :: " +checkDiskSpace((const QString &) path)+ tr(" kB free") ); - bool isDir=FALSE; + bool isDir = FALSE; + const QFileInfoList *list = thisDir->entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); @@ -121,3 +119,3 @@ void AdvancedFm::populateView() { if (fi->isSymLink() ) { - QString symLink=fi->readLink(); + QString symLink = fi->readLink(); QFileInfo sym( symLink); @@ -325,3 +323,3 @@ QStringList AdvancedFm::getPath() { -void AdvancedFm::changeTo(const QString dir) { +void AdvancedFm::changeTo(const QString &dir) { chdir( dir.latin1()); @@ -342,3 +340,3 @@ void AdvancedFm::SDButtonPushed() { Opie::Core::OStorageInfo info; - changeTo(info.sdPath()); + changeTo(info.sdPath()); } @@ -347,3 +345,3 @@ void AdvancedFm::CFButtonPushed() { Opie::Core::OStorageInfo info; - changeTo(info.cfPath()); + changeTo(info.cfPath()); } diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index c25bce2..a4f2510 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h @@ -98,3 +98,2 @@ protected: void setOtherTabCurrent(); - void changeTo(const QString dir); @@ -104,2 +103,3 @@ protected: protected slots: + void changeTo(const QString &); void slotSwitchMenu(int); diff --git a/noncore/apps/advancedfm/advancedfm.pro b/noncore/apps/advancedfm/advancedfm.pro index 713f61c..01ea8f4 100644 --- a/noncore/apps/advancedfm/advancedfm.pro +++ b/noncore/apps/advancedfm/advancedfm.pro @@ -1,3 +1,3 @@ TEMPLATE = app -CONFIG += qte warn_on quick-app +CONFIG += qte warn_on quick-app debug HEADERS = advancedfm.h filePermissions.h output.h diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 7b3dcf6..171e7c4 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -718,5 +718,4 @@ void AdvancedFm::startProcess(const QString & cmd) { process = new OProcess(); - connect(process, SIGNAL(processExited(Opie::Core::OProcess*)), this, SLOT( processEnded(Opie::Core::OProcess*))); - - connect(process, SIGNAL( receivedStderr(Opie::Core::OProcess*,char*,int)), this, SLOT( oprocessStderr(Opie::Core::OProcess*,char*,int))); + connect(process,SIGNAL(processExited(Opie::Core::OProcess*)),this,SLOT(processEnded(Opie::Core::OProcess*))); + connect(process,SIGNAL(receivedStderr(Opie::Core::OProcess*,char*,int)),this,SLOT(oprocessStderr(Opie::Core::OProcess*,char*,int))); |