tdecompletionbox.h
void userCancelled(const TQString &)
Emitted whenever the user chooses to ignore the available selections and close the this box.
TDECompletionBox(TQWidget *parent, const char *name=0)
Constructs a TDECompletionBox.
Definition tdecompletionbox.cpp:47
void activated(const TQString &)
Emitted when an item was selected, contains the text of the selected item.
virtual void slotActivated(TQListBoxItem *)
Called when an item was activated.
Definition tdecompletionbox.cpp:99
void down()
Moves the selection one line down or select the first item if nothing is selected yet.
Definition tdecompletionbox.cpp:381
void setItems(const TQStringList &items)
Clears the box and inserts items.
Definition tdecompletionbox.cpp:477
virtual bool eventFilter(TQObject *, TQEvent *)
Reimplemented from TDEListBox to get events from the viewport (to hide this widget on mouse-click,...
Definition tdecompletionbox.cpp:108
void setActivateOnSelect(bool state)
Set whether or not the selected signal should be emitted when an item is selected.
Definition tdecompletionbox.cpp:549
void up()
Moves the selection one line up or select the first item if nothing is selected yet.
Definition tdecompletionbox.cpp:396
void setCancelledText(const TQString &txt)
Sets the text to be emitted if the user chooses not to pick from the available matches.
Definition tdecompletionbox.cpp:436
virtual void popup()
Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at...
Definition tdecompletionbox.cpp:250
TQRect calculateGeometry() const
This calculates the size of the dropdown and the relative position of the top left corner with respec...
Definition tdecompletionbox.cpp:332
void insertItems(const TQStringList &items, int index=-1)
Inserts items into the box.
Definition tdecompletionbox.cpp:468
void setTabHandling(bool enable)
Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list.
Definition tdecompletionbox.cpp:426
TQStringList items() const
Returns a list of all items currently in the box.
Definition tdecompletionbox.cpp:85
void sizeAndPosition()
This properly sizes and positions the listbox.
Definition tdecompletionbox.cpp:268
Trinity API Reference