-rw-r--r-- | library/qpeapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 71ec5b3..bf353d4 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -1052,68 +1052,68 @@ void QPEApplication::setDefaultRotation( int r ) | |||
1052 | { | 1052 | { |
1053 | if ( qApp->type() == GuiServer ) { | 1053 | if ( qApp->type() == GuiServer ) { |
1054 | deforient = r; | 1054 | deforient = r; |
1055 | setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); | 1055 | setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); |
1056 | Config config("qpe"); | 1056 | Config config("qpe"); |
1057 | config.setGroup( "Rotation" ); | 1057 | config.setGroup( "Rotation" ); |
1058 | config.writeEntry( "Rot", r ); | 1058 | config.writeEntry( "Rot", r ); |
1059 | } | 1059 | } |
1060 | else { | 1060 | else { |
1061 | #ifndef QT_NO_COP | 1061 | #ifndef QT_NO_COP |
1062 | { QCopEnvelope e( "QPE/System", "setDefaultRotation(int)" ); | 1062 | { QCopEnvelope e( "QPE/System", "setDefaultRotation(int)" ); |
1063 | e << r; | 1063 | e << r; |
1064 | } | 1064 | } |
1065 | #endif | 1065 | #endif |
1066 | 1066 | ||
1067 | } | 1067 | } |
1068 | } | 1068 | } |
1069 | 1069 | ||
1070 | #include <qgfx_qws.h> | 1070 | #include <qgfx_qws.h> |
1071 | #include <qwindowsystem_qws.h> | 1071 | #include <qwindowsystem_qws.h> |
1072 | #include <qpixmapcache.h> | 1072 | #include <qpixmapcache.h> |
1073 | 1073 | ||
1074 | extern void qws_clearLoadedFonts(); | 1074 | extern void qws_clearLoadedFonts(); |
1075 | 1075 | ||
1076 | inline void QPEApplication::setCurrentMode( int x, int y, int depth ) | 1076 | void QPEApplication::setCurrentMode( int x, int y, int depth ) |
1077 | { | 1077 | { |
1078 | // Reset the caches | 1078 | // Reset the caches |
1079 | qws_clearLoadedFonts(); | 1079 | qws_clearLoadedFonts(); |
1080 | QPixmapCache::clear(); | 1080 | QPixmapCache::clear(); |
1081 | 1081 | ||
1082 | // Change the screen mode | 1082 | // Change the screen mode |
1083 | qt_screen->setMode(x, y, depth); | 1083 | qt_screen->setMode(x, y, depth); |
1084 | 1084 | ||
1085 | if ( qApp->type() == GuiServer ) { | 1085 | if ( qApp->type() == GuiServer ) { |
1086 | // Reconfigure the GuiServer | 1086 | // Reconfigure the GuiServer |
1087 | qwsServer->beginDisplayReconfigure(); | 1087 | qwsServer->beginDisplayReconfigure(); |
1088 | qwsServer->endDisplayReconfigure(); | 1088 | qwsServer->endDisplayReconfigure(); |
1089 | 1089 | ||
1090 | // Get all the running apps to reset | 1090 | // Get all the running apps to reset |
1091 | QCopEnvelope env( "QPE/System", "reset()" ); | 1091 | QCopEnvelope env( "QPE/System", "reset()" ); |
1092 | } | 1092 | } |
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | inline void QPEApplication::reset() { | 1095 | void QPEApplication::reset() { |
1096 | // Reconnect to the screen | 1096 | // Reconnect to the screen |
1097 | qt_screen->disconnect(); | 1097 | qt_screen->disconnect(); |
1098 | qt_screen->connect( QString::null ); | 1098 | qt_screen->connect( QString::null ); |
1099 | 1099 | ||
1100 | // Redraw everything | 1100 | // Redraw everything |
1101 | applyStyle(); | 1101 | applyStyle(); |
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | /*! | 1104 | /*! |
1105 | \internal | 1105 | \internal |
1106 | */ | 1106 | */ |
1107 | void QPEApplication::applyStyle() | 1107 | void QPEApplication::applyStyle() |
1108 | { | 1108 | { |
1109 | Config config( "qpe" ); | 1109 | Config config( "qpe" ); |
1110 | config.setGroup( "Appearance" ); | 1110 | config.setGroup( "Appearance" ); |
1111 | 1111 | ||
1112 | #if QT_VERSION > 233 | 1112 | #if QT_VERSION > 233 |
1113 | // don't block ourselves ... | 1113 | // don't block ourselves ... |
1114 | Opie::force_appearance = 0; | 1114 | Opie::force_appearance = 0; |
1115 | 1115 | ||
1116 | static QString appname = Opie::binaryName ( ); | 1116 | static QString appname = Opie::binaryName ( ); |
1117 | 1117 | ||
1118 | QStringList ex = config. readListEntry ( "NoStyle", ';' ); | 1118 | QStringList ex = config. readListEntry ( "NoStyle", ';' ); |
1119 | int nostyle = 0; | 1119 | int nostyle = 0; |