author | zecke <zecke> | 2004-10-16 00:01:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 00:01:01 (UTC) |
commit | df14f647ff1a60ca82e0fa9bd91458be146153b8 (patch) (side-by-side diff) | |
tree | 4859961352851a4392e1442f2080c15bff8ad7bc /libslcompat | |
parent | 419f9710c488f56a7a117eb1529970d3371e0094 (diff) | |
download | opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.zip opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.tar.gz opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.tar.bz2 |
Replace QPEApplication::qpeDir() + "/ with
QPEApplication::qpeDir() + "
as it is guranteed that qpeDir() will have '/' as the last
charachter
-rw-r--r-- | libslcompat/slmisc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libslcompat/slmisc.h b/libslcompat/slmisc.h index 20ba988..442b098 100644 --- a/libslcompat/slmisc.h +++ b/libslcompat/slmisc.h @@ -1,77 +1,77 @@ /* * Copyright (C) 2002 SHARP CORPORATION All rights reserved. */ #ifndef _SLMISC_H_INCLUDED #define _SLMISC_H_INCLUDED #include <qpe/qpeapplication.h> #include <qfileinfo.h> #include <qpe/global.h> #include <qmessagebox.h> #define _SLPOWER class QPopupMenu; class QListView; #if !defined(_SLPOWER) class PowerStatus; #else class SlPowerStatus; #endif class Config; typedef ulong SlResolutionScale; class SlMisc { public: static bool isExecutable(const QString &c) { - QFileInfo exec(QPEApplication::qpeDir() + "/bin/" + c); + QFileInfo exec(QPEApplication::qpeDir() + "bin/" + c); return exec.isExecutable(); }; static ulong availableMemory(); static bool invalidFileName(QString &fName); static QString getValidFileName(const QString &baseName); static QString getCanonicalPath(const QString &fName); static void enableAutoPowerOff(bool isOn); static void enableAutoPowerOff(bool isOn,bool DimAlso,bool ScreenSaverAlso=FALSE); static void enableLockApplication(bool); static bool isTheSmbShareFileHasWriteEntry(const QString &shareFName); static bool isTheSmbShareFileNowCopy(const QString &shareFName); static bool checkTheSmbShareFileMode(const QString &shareFName, char modeMask, char checkMode, bool equality); static bool isTheFileLockedBySmbd(const QString &fName); static bool isSambaForked(); static void startSamba(); static void stopSamba(); enum ListType { Pid, CmdLine, Both }; static QStringList procList (const QRegExp& re, uint max = 0, enum ListType type = Pid); static void dumpMemInfo(bool isShowHeap); static bool canCreateTheFile(const QString&); static QString getLanguage(); static QSize getMaximizedWidgetInfo(); static QSize SlMisc::getScrollbarMetrics(); static int getDpi(); static SlResolutionScale getResolutionScale(); static int getMaximizedWidgetContentsWidth(); static bool isLandscape(); static void requestCloseFile(const QString&); static void requestOpenFile(const QString&); static void insertStandardFontMenu(QPopupMenu *pm); static void insertAllFontMenu(QPopupMenu *pm); static int getLogicalSizeFromMenuId(int id); static void setFontSizeItemChecked(QPopupMenu *pm,int logicalSize); static int getFontPointSize(int logicalSize); static void toggleFontSize(QPopupMenu *pm,int &logicalSize,bool isLarge=true); static void toggleAllFontSize(QPopupMenu *pm,int *fontSize,bool isLarge=true); static void SlFontArrange (QWidget* widget); static void SlLayoutSpaceArrange (QObject* object); static bool checkBatteryError(const QString &module_name, bool force); static bool checkBatteryErrorWithoutDialog(const QString &module_name, bool force); enum InputDeviceType { BuiltinKeyboard = 1, |