/usr/share/sip/PyKDE4/kdeui/kcombobox.sip is in python-kde4-dev 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | //
// Copyright 2008 Jim Bublitz <jbublitz@nwinternet.com>
// Earlier copyrights 1998 - 2007 Jim Bublitz also apply
// Generated by twine
// This file is part of PyKDE4.
// PyKDE4 is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of
// the License, or (at your option) any later version.
// PyKDE4 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
class KComboBox : QComboBox, KCompletionBase
{
%TypeHeaderCode
#include <kcombobox.h>
%End
public:
explicit KComboBox (QWidget* parent /TransferThis/ = 0);
explicit KComboBox (bool rw, QWidget* parent /TransferThis/ = 0);
void insertURL (const KUrl& url, int index = -1);
void insertURL (const QPixmap& pixmap, const KUrl& url, int index = -1);
void changeURL (const KUrl& url, int index);
void changeURL (const QPixmap& pixmap, const KUrl& url, int index);
void setEditUrl (const KUrl& url);
void addUrl (const KUrl& url);
void addUrl (const QIcon& icon, const KUrl& url);
void insertUrl (int index, const KUrl& url);
void insertUrl (int index, const QIcon& icon, const KUrl& url);
void changeUrl (int index, const KUrl& url);
void changeUrl (int index, const QIcon& icon, const KUrl& url);
int cursorPosition () const;
virtual void setAutoCompletion (bool autocomplete);
bool autoCompletion () const;
virtual void setContextMenuEnabled (bool showMenu);
void setUrlDropsEnabled (bool enable);
bool urlDropsEnabled () const;
bool contains (const QString& text) const;
void setTrapReturnKey (bool trap);
bool trapReturnKey () const;
virtual bool eventFilter (QObject*, QEvent*);
KCompletionBox* completionBox (bool create = 1);
virtual void setLineEdit (QLineEdit*);
void setEditable (bool editable);
signals:
void returnPressed ();
void returnPressed (const QString&);
void completion (const QString&);
void substringCompletion (const QString&);
void textRotation (KCompletionBase::KeyBindingType);
void completionModeChanged (KGlobalSettings::Completion);
void aboutToShowContextMenu (QMenu* p);
public:
void rotateText (KCompletionBase::KeyBindingType type);
virtual void setCompletedText (const QString&);
void setCompletedItems (const QStringList& items, bool autosubject = 1);
void setCurrentItem (const QString& item, bool insert = 0, int index = -1);
protected:
virtual void makeCompletion (const QString&);
virtual void setCompletedText (const QString&, bool);
virtual void create (WId = 0, bool initializeWindow = 1, bool destroyOldWindow = 1);
virtual void wheelEvent (QWheelEvent* ev);
virtual QSize minimumSizeHint () const;
public:
~KComboBox ();
};
// KComboBox
|