diff options
Diffstat (limited to 'sip/tdecore/kcompletion.sip')
-rw-r--r-- | sip/tdecore/kcompletion.sip | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sip/tdecore/kcompletion.sip b/sip/tdecore/kcompletion.sip index 8a67700..62013a6 100644 --- a/sip/tdecore/kcompletion.sip +++ b/sip/tdecore/kcompletion.sip @@ -115,7 +115,7 @@ public: SubstringCompletion }; - typedef TQMap<KCompletionBase::KeyBindingType,KShortcut> KeyBindingMap; + typedef TQMap<KCompletionBase::KeyBindingType,TDEShortcut> KeyBindingMap; KCompletionBase (); KCompletion* completionObject (bool = 1); virtual void setCompletionObject (KCompletion*, bool = 1); @@ -127,8 +127,8 @@ public: bool emitSignals () const; virtual void setCompletionMode (TDEGlobalSettings::Completion); TDEGlobalSettings::Completion completionMode () const; - bool setKeyBinding (KCompletionBase::KeyBindingType, const KShortcut&); - const KShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; + bool setKeyBinding (KCompletionBase::KeyBindingType, const TDEShortcut&); + const TDEShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; void useGlobalKeyBindings (); virtual void setCompletedText (const TQString&) = 0; virtual void setCompletedItems (const TQStringList&) = 0; @@ -148,7 +148,7 @@ protected: %MappedType KCompletionBase::KeyBindingMap -//converts a Python dict of int:KShortcut +//converts a Python dict of int:TDEShortcut { %TypeHeaderCode #include <kcompletion.h> @@ -167,8 +167,8 @@ protected: // Get it. - const TQMap<KCompletionBase::KeyBindingType,KShortcut> map = *sipCpp; - TQMap<KCompletionBase::KeyBindingType,KShortcut>::ConstIterator it; + const TQMap<KCompletionBase::KeyBindingType,TDEShortcut> map = *sipCpp; + TQMap<KCompletionBase::KeyBindingType,TDEShortcut>::ConstIterator it; PyObject *key; PyObject *value; @@ -176,7 +176,7 @@ protected: for (it = map.begin (); it != map.end (); ++it) { key = PyInt_FromLong ((int) it.key ()); - value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_KShortcut, sipTransferObj); + value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_TDEShortcut, sipTransferObj); if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0)) { Py_XDECREF (key); @@ -197,16 +197,16 @@ protected: if (sipIsErr == NULL) return PyDict_Check(sipPy); - TQMap<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new TQMap<KCompletionBase::KeyBindingType,KShortcut>; + TQMap<KCompletionBase::KeyBindingType,TDEShortcut> *kbmap = new TQMap<KCompletionBase::KeyBindingType,TDEShortcut>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - KShortcut *cValue; + TDEShortcut *cValue; int iserr; while (PyDict_Next(sipPy, &pos, &key, &value)) { - cValue = (KShortcut *)sipForceConvertToType(value, sipType_KShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + cValue = (TDEShortcut *)sipForceConvertToType(value, sipType_TDEShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr || !PyInt_Check (key)) { |