summaryrefslogtreecommitdiffstats
path: root/kdecore/kapplication.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-24 18:06:08 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-24 18:06:08 +0000
commit416a551e80c1b7e36169da478dc099bafdd3f8fa (patch)
treeb1e9e989298222adab712b186c7d9ff4d92f0cf4 /kdecore/kapplication.h
parent0d2336ffe01ee690dcd556e280b9869834375590 (diff)
downloadtdelibs-416a551e80c1b7e36169da478dc099bafdd3f8fa.tar.gz
tdelibs-416a551e80c1b7e36169da478dc099bafdd3f8fa.zip
Add constructor to KApplication that allows ARGB visuals to be manually disabled
This allows the GTK Qt theme engine to work with a KApplication object when a window compositor is enabled git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1260463 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kapplication.h')
-rw-r--r--kdecore/kapplication.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/kdecore/kapplication.h b/kdecore/kapplication.h
index c16f105f2..25ecb6ee3 100644
--- a/kdecore/kapplication.h
+++ b/kdecore/kapplication.h
@@ -152,6 +152,35 @@ public:
/**
* Constructor. Parses command-line arguments. Use this constructor when you
+ * you want ARGB support to be automatically detected and enabled.
+ *
+ * @param display Will be passed to Qt as the X display. The display must be
+ * valid and already opened.
+ *
+ * @param disable_argb Set to true to disable ARGB visuals in this application.
+ *
+ * @param display Will be passed to Qt as the X display. The display must be
+ * valid and already opened.
+ *
+ * @param visual A pointer to the X11 visual that should be used by the
+ * appliction. Note that only TrueColor visuals are supported on depths
+ * greater than 8 bpp. If this parameter is NULL, the default visual will
+ * be used instead.
+ *
+ * @param allowStyles Set to false to disable the loading on plugin based
+ * styles. This is only useful to applications that do not display a GUI
+ * normally. If you do create an application with @p allowStyles set to false
+ * that normally runs in the background but under special circumstances
+ * displays widgets call enableStyles() before displaying any widgets.
+ *
+ * @since KDE 3.5
+ *
+ * @see RGBADisplay()
+ */
+ KApplication(Display *display, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles);
+
+ /**
+ * Constructor. Parses command-line arguments. Use this constructor when you
* you need to use a non-default visual or colormap.
*
* @param display Will be passed to Qt as the X display. The display must be