Hi,
I tumbled over this when i used the KToolBar.insertCombo method, like this
toolbar.insertCombo( ['a' ], id, self.isEditable(),
SIGNAL('activated(int)'), self.slotActivated, 1, self.shorttext
)
The slotActivated method will be called without arguments (giving me a
wrong argument count error). The sip declaration looks like
int insertCombo(QStrList *,int,bool,const char*,SIP_RXOBJ_CON,SIP_SLOT_CON
(),
bool = 1,const char * = 0,int = 70,int=-1,
QComboBox::Policy = QComboBox::AtBottom);
The interesting piece of c++ code looks like
a4 = sipConvertRx(sipNewProxy_kdeui,sipThis,"()",a4obj,NULL,&a5,&iserr);
One could put an int parameter into SIP_SLOT_CON(), but there are actually
2
possible signal parameters, e.g. activated(int) and activated(const char*)
and i would end up being able to connect to only one of them. So i moved
the code
to a %MemberCode section doing this:
sigargs = a3; // the signal name
while (*sigargs && *sigargs != '(')
sigargs++;
a4 = sipConvertRx(sipNewProxy_kdeui,sipThis,sigargs,a4obj,NULL,&a5,&iserr);
Then it works with both.
Shouldn't this be generally done in sipConvertRx ? Any other idea ?
--
Thomas Malik
Landesbank Baden-Wuerttemberg (Stuttgart, Germany)
Abt. 2340 Tel. (+49 711) 124-7049
[EMAIL PROTECTED]
______________________________________________________________________
--------------------------------------------------------------------------------------------
Bitte beachten Sie, dass der Inhalt dieser E-Mail einschlie�lich eventuell
angeh�ngter Dokumente vertraulich ist. Falls Sie nicht der angegebene
Empf�nger sind oder falls diese E-Mail irrt�mlich an Sie adressiert wurde,
d�rfen Sie die E-Mail und eventuell angeh�ngte Dokumente weder �ffnen,
lesen, kopieren, verbreiten noch ihren Inhalt in irgendeiner Weise nutzen.
Bitte verst�ndigen Sie den Absender sofort und l�schen Sie Die E-Mail
sodann.
Die Sicherheit von �bermittlungen per E-Mail kann nicht garantiert werden.
Per E-Mail �bermittelte Informationen k�nnen abgefangen oder ge�ndert
werden, verloren gehen oder zerst�rt werden, versp�tet oder unvollst�ndig
ankommen, oder Viren enthalten. Der Absender �bernimmt daher keine Gew�hr
f�r Irrt�mer oder Auslassungen jeder Art im Inhalt sowie sonstige Risiken,
die auf die �bermittlung per E-Mail zur�ckzuf�hren sind. Falls Sie eine
Best�tigung w�nschen, fordern Sie bitte den Inhalt der E-Mail als Hardcopy
an.
This e-mail and any attached files are confidential. If you are not the
named addressee or if this transmission has been addressed to you in error,
any disclosure, reproduction, copying, distrubtion, or other dissemination
or use of this communication is prohibited. If you have received this
transmission in error please notify the sender immediately and then delete
this e-mail.
E-mail transmission cannot be guaranteed to be secure or free from error as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message or
any other of such risks which arise as a result of e-mail transmission. If
verification is required, please request a hard copy version.
---------------------------------------------------------------------------------------------
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde