Update for renamed sip-tqt.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 11 months ago
parent 8f5d69e802
commit b9e2f5ab2c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 12
      wineconfig/kcm_wineconfig.cpp

@ -16,7 +16,7 @@
#include <kstandarddirs.h>
#include <ksimpleconfig.h>
#include <tqstring.h>
#include <sip.h>
#include <sip-tqt.h>
#define MODULE_DIR "/root/TEMP5/tde-guidance-trinity-14.0.0-r131/debian/tmp/opt/trinity/share/apps/guidance"
#define EXTRA_MODULE_DIR "None"
@ -75,19 +75,15 @@ static TDECModule* return_instance( TQWidget *parent, const char *name ) {
}
// Inject a helper function
TQString bridge = TQString("from sip4_tqt import sip\n"
TQString bridge = TQString("import sip_tqt\n"
"from python_tqt import qt\n"
"def kcontrol_bridge_" FACTORY "(parent,name):\n"
" if parent!=0:\n"
#if SIP_VERSION >= 0x040200
" wparent = sip.wrapinstance(parent,qt.TQWidget)\n"
#else
" wparent = sip.wrapinstance(parent,'TQWidget')\n"
#endif
" wparent = sip_tqt.wrapinstance(parent,qt.TQWidget)\n"
" else:\n"
" wparent = None\n"
" inst = " FACTORY "(wparent, name)\n"
" return (inst,sip.unwrapinstance(inst))\n");
" return (inst,sip_tqt.unwrapinstance(inst))\n");
PyRun_String(bridge.latin1(),Py_file_input,PyModule_GetDict(pyModule),PyModule_GetDict(pyModule));
// Get the Python module's factory function.

Loading…
Cancel
Save