ALT Linux repos
S: | 3.3.8d-alt16.1 |
5.0: | 3.3.8b-alt3 |
4.1: | 3.3.8b-alt2.qa1 |
4.0: | 3.3.8b-alt0.M40.1 |
3.0: | 3.3.4-alt6 |
+updates: | 3.3.4-alt6.3.M30 |
Group :: System/Libraries
RPM: qt3
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: qt-3.3.3-alt-homedir.patch
Download
Download
--- qt-x11-free-3.1.0-b2/src/tools/qsettings.cpp.orig 2004-08-05 18:41:55 +0400
+++ qt-x11-free-3.1.0-b2/src/tools/qsettings.cpp 2004-08-18 21:06:35 +0400
@@ -53,6 +53,7 @@ static inline int qt_open( const char *p
#ifndef QT_NO_SETTINGS
+#include <stdlib.h>
#include "qdir.h"
#include "qfile.h"
#include "qfileinfo.h"
@@ -462,7 +463,11 @@ QSettingsPrivate::QSettingsPrivate( QSet
Q_UNUSED( format );
#endif
- QString appSettings(QDir::homeDirPath() + "/.qt/");
+ QString appSettings(QDir::homeDirPath() + "/.qt3/");
+ QString settings_dir( getenv("QT_SETTINGS_DIR") );
+ if ( !settings_dir.isEmpty() ){
+ appSettings = settings_dir;
+ }
QString defPath;
#ifdef Q_WS_WIN
#ifdef Q_OS_TEMP