[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [PATCH] Fix KApplication for non-gui apps
From: George Staikos <staikos () kde ! org>
Date: 2005-02-17 21:47:45
Message-ID: 200502171647.46104.staikos () kde ! org
[Download RAW message or body]
On Thursday 17 February 2005 06:09, Waldo Bastian wrote:
> Something like:
>
> struct oldPixmapType { QPixmap a; QPixmap b; };
> union {
> struct { QPixmap *icon; QPixmap *miniIcon; } pm;
> char padding[sizeof(oldPixmapType)];
> } aIconPixmap;
>
Can someone test sizeof(KApplication) with and without this patch on 64bit
hardware to see if they are the same or not? Diff is attached.
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
["fixkappnongui.patch" (text/x-diff)]
Index: main.cpp
===================================================================
RCS file: /home/kde/kdebase/knetattach/main.cpp,v
retrieving revision 1.1
diff -u -3 -p -r1.1 main.cpp
--- main.cpp 13 Nov 2004 23:21:45 -0000 1.1
+++ main.cpp 17 Feb 2005 21:47:30 -0000
@@ -36,6 +36,8 @@ int main(int argc, char **argv) {
KCmdLineArgs::init(argc, argv, &about);
KApplication a;
+printf("SIZEOF = %d\n", sizeof(a));
+printf("SIZEOF = %d\n", sizeof(QPixmap));
KNetAttach na;
a.setMainWidget(&na);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic