[PyKDE] Support for QWindowsXPStyle
Ulrich Berning
ulrich.berning at desys.de
Fri May 16 09:56:00 BST 2003
Hi all,
the attached sip file together with the attached patch make the
QWindowsXPStyle class available for PyQt.
Ciao,
Ulli
PS
Due to a bug in Qt, the QStyleFactory does not set a name for this style
as it does for all other styles.
(style->name() results in "unnamed" where it should be "WindowsXP")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030516/dbdb97f5/qwindowsxpstyle.html
-------------- next part --------------
diff -uNr PyQt-win-commercial-snapshot-20030513.orig/sip/qobject.sip PyQt-win-commercial-snapshot-20030513/sip/qobject.sip
--- PyQt-win-commercial-snapshot-20030513.orig/sip/qobject.sip Wed May 14 02:00:58 2003
+++ PyQt-win-commercial-snapshot-20030513/sip/qobject.sip Fri May 16 09:34:31 2003
@@ -253,6 +253,9 @@
#if !defined(QT_NO_STYLE_WINDOWS)
{sipName_QWindowsStyle, &sipClass_QWindowsStyle},
#endif
+#if defined(WS_WIN) && QT_VERSION >= 0x030001 && !defined(QT_NO_STYLE_WINDOWSXP)
+ {sipName_QWindowsXPStyle, &sipClass_QWindowsXPStyle},
+#endif
#if !defined(QT_NO_WIZARD)
{sipName_QWizard, &sipClass_QWizard},
#endif
diff -uNr PyQt-win-commercial-snapshot-20030513.orig/sip/qtdocs.sip PyQt-win-commercial-snapshot-20030513/sip/qtdocs.sip
--- PyQt-win-commercial-snapshot-20030513.orig/sip/qtdocs.sip Wed May 14 02:00:56 2003
+++ PyQt-win-commercial-snapshot-20030513/sip/qtdocs.sip Fri May 16 09:34:31 2003
@@ -833,6 +833,7 @@
%Include qwidgetstack.sip
%Include qwindow.sip
%Include qwindowsstyle.sip
+%Include qwindowsxpstyle.sip
%Include qwizard.sip
%Include qwmatrix.sip
%Include qworkspace.sip
diff -uNr PyQt-win-commercial-snapshot-20030513.orig/sip/qtmod.sip PyQt-win-commercial-snapshot-20030513/sip/qtmod.sip
--- PyQt-win-commercial-snapshot-20030513.orig/sip/qtmod.sip Wed May 14 02:00:56 2003
+++ PyQt-win-commercial-snapshot-20030513/sip/qtmod.sip Fri May 16 09:34:31 2003
@@ -206,6 +206,7 @@
%Include qwidgetstack.sip
%Include qwindow.sip
%Include qwindowsstyle.sip
+%Include qwindowsxpstyle.sip
%Include qwizard.sip
%Include qwmatrix.sip
%Include qworkspace.sip
diff -uNr PyQt-win-commercial-snapshot-20030513.orig/sip/versions.sip PyQt-win-commercial-snapshot-20030513/sip/versions.sip
--- PyQt-win-commercial-snapshot-20030513.orig/sip/versions.sip Wed May 14 02:01:00 2003
+++ PyQt-win-commercial-snapshot-20030513/sip/versions.sip Fri May 16 09:34:31 2003
@@ -62,6 +62,7 @@
%Feature Qt_STYLE_PLATINUM
%Feature Qt_STYLE_SGI
%Feature Qt_STYLE_WINDOWS
+%Feature Qt_STYLE_WINDOWSXP
%Feature Qt_TABDIALOG
%Feature Qt_TABLE
%Feature Qt_TABLEVIEW
More information about the PyQt
mailing list