Rename KStandard for enhanced compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 44605ea280
commit d1903dde17

@ -51,7 +51,7 @@
----- -----
1. Add option to use twin titlebar colours as menubar shade. 1. Add option to use twin titlebar colours as menubar shade.
2. Fix(?) compilation of config module. 2. Fix(?) compilation of config module.
3. Dont use KStandardDirs to create config folder. 3. Dont use TDEStandardDirs to create config folder.
4. Use 'kde' to disable parent-less dialog fix for all KDE applications. 4. Use 'kde' to disable parent-less dialog fix for all KDE applications.
1.2.0 1.2.0

@ -574,7 +574,7 @@ static const char * getHome()
#include <tqdir.h> #include <tqdir.h>
#include <tqfile.h> #include <tqfile.h>
#endif #endif
// Take from KStandardDirs::makeDir // Take from TDEStandardDirs::makeDir
static bool makeDir(const TQString& dir, int mode) static bool makeDir(const TQString& dir, int mode)
{ {
// we want an absolute path // we want an absolute path
@ -700,7 +700,7 @@ static const char *qtcConfDir()
#if defined TQTC_TQT_ONLY || 0x039999 < 0x040000 #if defined TQTC_TQT_ONLY || 0x039999 < 0x040000
makeDir(cfgDir, 0755); makeDir(cfgDir, 0755);
#else #else
KStandardDirs::makeDir(cfgDir, 0755); TDEStandardDirs::makeDir(cfgDir, 0755);
#endif #endif
#else #else
g_mkdir_with_parents(cfgDir, 0755); g_mkdir_with_parents(cfgDir, 0755);

@ -353,7 +353,7 @@ static const char *xdgConfigFolder()
if(0!=lstat(xdgDir, &info)) if(0!=lstat(xdgDir, &info))
{ {
#ifdef __cplusplus #ifdef __cplusplus
KStandardDirs::makeDir(xdgDir, 0755); TDEStandardDirs::makeDir(xdgDir, 0755);
#else #else
g_mkdir_with_parents(xdgDir, 0755); g_mkdir_with_parents(xdgDir, 0755);
#endif #endif

Loading…
Cancel
Save