KIconView Class Reference
This Widget extends the functionality of QIconView to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link. A variant of QIconView that honors KDE's system-wide settings. More...
#include <kiconview.h>
Inheritance diagram for KIconView:

Public Types | |
enum | Mode { Execute, Select } |
Signals | |
void | executed (QIconViewItem *item) |
void | executed (QIconViewItem *item, const QPoint &pos) |
void | doubleClicked (QIconViewItem *item, const QPoint &pos) |
Public Member Functions | |
KIconView (QWidget *parent=0, const char *name=0, WFlags f=0) | |
void | setMode (Mode m) |
Mode | mode () const |
virtual void | setFont (const QFont &) |
Protected Slots | |
void | slotOnItem (QIconViewItem *item) |
void | slotOnViewport () |
void | slotSettingsChanged (int) |
void | slotAutoSelect () |
Protected Member Functions | |
void | emitExecute (QIconViewItem *item, const QPoint &pos) |
virtual void | focusOutEvent (QFocusEvent *fe) |
virtual void | leaveEvent (QEvent *e) |
virtual void | contentsMousePressEvent (QMouseEvent *e) |
virtual void | contentsMouseDoubleClickEvent (QMouseEvent *e) |
virtual void | contentsMouseReleaseEvent (QMouseEvent *e) |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
This Widget extends the functionality of QIconView to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link. A variant of QIconView that honors KDE's system-wide settings.There is a new signal executed(). It gets connected to either QIconView::clicked() or QIconView::doubleClicked() depending on the KDE wide Single Click/Double Click settings. It is strongly recommended that you use this signal instead of the above mentioned. This way you donīt need to care about the current settings. If you want to get informed when the user selects something connect to the QIconView::selectionChanged() signal.
Definition at line 39 of file kiconview.h.
Member Enumeration Documentation
|
KIconView has two different operating modes. Execute mode is depending on the configuration of single-click or double-click where the signal executed() will be emitted upon click/double-click. In Select mode, this signal will not be emitted. Default is Execute mode. Definition at line 59 of file kiconview.h. Referenced by mode(). |
Member Function Documentation
|
Sets the mode to Execute or Select.
Definition at line 91 of file kiconview.cpp. |
|
Definition at line 96 of file kiconview.cpp. References Mode. |
|
Reimplemented for internal purposes.
Definition at line 338 of file kiconview.cpp. |
|
This signal is emitted whenever the user executes an iconview item. That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.
|
|
This signal is emitted whenever the user executes an iconview item. That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.
|
|
This signal gets emitted whenever the user double clicks into the iconview.
This signal is more or less here for the sake of completeness. You should normally not need to use this. In most cases it's better to use executed() instead. |
|
The documentation for this class was generated from the following files: