diff options
author | Robert Xu <robxu9@gmail.com> | 2011-08-13 12:58:51 -0400 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2011-08-13 12:58:51 -0400 |
commit | 46130378aea5fff80803409c2573e2ea31472cb9 (patch) | |
tree | cb5da908105e6577da7676f84ba9c7fbaba4fb52 /opensuse/tdelibs/limit-max-image-size.diff | |
parent | 53f2819f9af035a38ca08df1ede9e6cd24aa79ef (diff) | |
download | tde-packaging-46130378aea5fff80803409c2573e2ea31472cb9.tar.gz tde-packaging-46130378aea5fff80803409c2573e2ea31472cb9.zip |
add dbus-1-tqt and libdbus-1-tqt-0; add unmodified tdelibs from kdelibs3
Diffstat (limited to 'opensuse/tdelibs/limit-max-image-size.diff')
-rw-r--r-- | opensuse/tdelibs/limit-max-image-size.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/opensuse/tdelibs/limit-max-image-size.diff b/opensuse/tdelibs/limit-max-image-size.diff new file mode 100644 index 000000000..6a01bf063 --- /dev/null +++ b/opensuse/tdelibs/limit-max-image-size.diff @@ -0,0 +1,28 @@ +Index: kapplication.cpp +=================================================================== +RCS file: /home/kde/kdelibs/kdecore/kapplication.cpp,v +retrieving revision 1.670 +diff -u -p -r1.670 kapplication.cpp +--- kdecore/kapplication.cpp 22 Jul 2004 16:50:04 -0000 1.670 ++++ kdecore/kapplication.cpp 16 Aug 2004 20:31:02 -0000 +@@ -43,6 +43,7 @@ + #include <qtooltip.h> + #include <qstylefactory.h> + #include <qmetaobject.h> ++#include <qimage.h> + #ifndef QT_NO_SQL + #include <qsqlpropertymap.h> + #endif +@@ -1975,6 +1976,12 @@ void KApplication::propagateSettings(Set + KConfigBase* config = KGlobal::config(); + KConfigGroupSaver saver( config, "KDE" ); + ++#ifdef QT_HAVE_MAX_IMAGE_SIZE ++ QSize maxImageSize(4096, 4096); ++ maxImageSize = config->readSizeEntry("MaxImageSize", &maxImageSize); ++ QImage::setMaxImageSize(maxImageSize); ++#endif ++ + int num = config->readNumEntry("CursorBlinkRate", QApplication::cursorFlashTime()); + if ((num != 0) && (num < 200)) + num = 200; |