.TH "KListView" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KListView \- This Widget extends the functionality of \fBQListView\fP to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <klistview.h>\fP
.PP
Inherits \fBQListView\fP.
.PP
Inherited by \fBKFileDetailView\fP, \fBKFileTreeView\fP, and \fBListProgress\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBSelectionModeExt\fP { \fBSingle\fP =  QListView::Single, \fBMulti\fP =  QListView::Multi, \fBExtended\fP =  QListView::Extended, \fBNoSelection\fP =  QListView::NoSelection, \fBFileManager\fP }"
.br
.RI "\fIPossible selection modes. \fP"
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBrename\fP (\fBQListViewItem\fP *item, int c)"
.br
.RI "\fIRename column \fCc\fP of \fCitem\fP. \fP"
.ti -1c
.RI "void \fBsetRenameable\fP (int column, bool yesno=true)"
.br
.RI "\fIBy default, if you called setItemsRenameable(true), only the first column is renameable. \fP"
.ti -1c
.RI "virtual void \fBsetItemsMovable\fP (bool b)"
.br
.RI "\fISet whether items in the list view can be moved. \fP"
.ti -1c
.RI "virtual void \fBsetItemsRenameable\fP (bool b)"
.br
.RI "\fIEnables inplace-renaming of items. \fP"
.ti -1c
.RI "virtual void \fBsetDragEnabled\fP (bool b)"
.br
.RI "\fIEnable/Disable the dragging of items. \fP"
.ti -1c
.RI "virtual void \fBsetAutoOpen\fP (bool b)"
.br
.RI "\fIEnable/Disable AutoOpen (not implemented currently). \fP"
.ti -1c
.RI "virtual void \fBsetDropVisualizer\fP (bool b)"
.br
.RI "\fIEnable/Disable the drawing of a drop-visualizer (a bar that shows where a dropped item would be inserted). \fP"
.ti -1c
.RI "void \fBsetDropVisualizerWidth\fP (int w)"
.br
.RI "\fISet the width of the (default) drop-visualizer. \fP"
.ti -1c
.RI "virtual void \fBsetTooltipColumn\fP (int column)"
.br
.RI "\fISet which column should be used for automatic tooltips. \fP"
.ti -1c
.RI "virtual void \fBsetDropHighlighter\fP (bool b)"
.br
.RI "\fIEnable/Disable the drawing of a drop-highlighter (a rectangle around the item under the mouse cursor). \fP"
.ti -1c
.RI "virtual void \fBsetCreateChildren\fP (bool b)"
.br
.RI "\fIFor future expansions. \fP"
.ti -1c
.RI "void \fBsetSelectionModeExt\fP (\fBSelectionModeExt\fP mode)"
.br
.RI "\fISet the selection mode. \fP"
.ti -1c
.RI "void \fBsetTabOrderedRenaming\fP (bool b)"
.br
.RI "\fIEnable/disable tabbing between editable cells 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
\fP"
.ti -1c
.RI "bool \fBtabOrderedRenaming\fP () const "
.br
.RI "\fIReturns whether tab ordered renaming is enabled 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
\fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBexecuted\fP (\fBQListViewItem\fP *item)"
.br
.RI "\fIThis signal is emitted whenever the user executes an listview item. \fP"
.ti -1c
.RI "void \fBexecuted\fP (\fBQListViewItem\fP *item, const  \fBQPoint\fP &pos, int c)"
.br
.RI "\fIThis signal is emitted whenever the user executes an listview item. \fP"
.ti -1c
.RI "void \fBdoubleClicked\fP (\fBQListViewItem\fP *item, const  \fBQPoint\fP &pos, int c)"
.br
.RI "\fIThis signal gets emitted whenever the user double clicks into the listview. \fP"
.ti -1c
.RI "void \fBdropped\fP (\fBQDropEvent\fP *e, \fBQListViewItem\fP *after)"
.br
.RI "\fIThis signal gets emitted whenever something acceptable is dropped onto the listview. \fP"
.ti -1c
.RI "void \fBdropped\fP (\fBKListView\fP *list, \fBQDropEvent\fP *e, \fBQListViewItem\fP *after)"
.br
.RI "\fIThis signal gets emitted whenever something acceptable is dropped onto the listview. \fP"
.ti -1c
.RI "void \fBdropped\fP (\fBKListView\fP *list, \fBQDropEvent\fP *e, \fBQListViewItem\fP *parent, \fBQListViewItem\fP *after)"
.br
.RI "\fIThis signal gets emitted whenever something acceptable is dropped onto the listview. \fP"
.ti -1c
.RI "void \fBdropped\fP (\fBQDropEvent\fP *e, \fBQListViewItem\fP *parent, \fBQListViewItem\fP *after)"
.br
.RI "\fIThis signal gets emitted whenever something acceptable is dropped onto the listview. \fP"
.ti -1c
.RI "void \fBmoved\fP ()"
.br
.RI "\fIThis signal is emitted when ever the user moves an item in the list via DnD. \fP"
.ti -1c
.RI "void \fBaboutToMove\fP ()"
.br
.RI "\fIConnect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting. \fP"
.ti -1c
.RI "void \fBmoved\fP (\fBQListViewItem\fP *item, \fBQListViewItem\fP *afterFirst, \fBQListViewItem\fP *afterNow)"
.br
.RI "\fIThis signal is emitted when ever the user moves an item in the list via DnD. \fP"
.ti -1c
.RI "void \fBmoved\fP (\fBQPtrList\fP< \fBQListViewItem\fP > &items, \fBQPtrList\fP< \fBQListViewItem\fP > &afterFirst, \fBQPtrList\fP< \fBQListViewItem\fP > &afterNow)"
.br
.RI "\fIThis signal is emitted after all the items have been moved. \fP"
.ti -1c
.RI "void \fBitemRenamed\fP (\fBQListViewItem\fP *item, const  \fBQString\fP &str, int col)"
.br
.RI "\fIThis signal gets emitted when an item is renamed via in-place renaming. \fP"
.ti -1c
.RI "void \fBitemRenamed\fP (\fBQListViewItem\fP *item)"
.br
.RI "\fISame as above, but without the extra information. \fP"
.ti -1c
.RI "void \fBmenuShortCutPressed\fP (\fBKListView\fP *list, \fBQListViewItem\fP *item)"
.br
.RI "\fIThis signal is emitted when the shortcut key for popup-menus is pressed. \fP"
.ti -1c
.RI "void \fBcontextMenu\fP (\fBKListView\fP *l, \fBQListViewItem\fP *i, const  \fBQPoint\fP &p)"
.br
.RI "\fIThis signal is emitted whenever a context-menu should be shown for item \fCi\fP. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKListView\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fB~KListView\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "virtual void \fBsetAcceptDrops\fP (bool)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual bool \fBisExecuteArea\fP (const  \fBQPoint\fP &point)"
.br
.RI "\fIThis function determines whether the given coordinates are within the execute area. \fP"
.ti -1c
.RI "bool \fBisExecuteArea\fP (int x)"
.br
.RI "\fISame thing, but from an x coordinate only. \fP"
.ti -1c
.RI "\fBQPtrList\fP< \fBQListViewItem\fP > \fBselectedItems\fP () const "
.br
.ti -1c
.RI "void \fBmoveItem\fP (\fBQListViewItem\fP *item, \fBQListViewItem\fP *parent, \fBQListViewItem\fP *after)"
.br
.RI "\fIArbitrarily move \fCitem\fP to \fCparent\fP, positioned immediately after item \fCafter\fP. \fP"
.ti -1c
.RI "\fBQListViewItem\fP * \fBlastItem\fP () const "
.br
.ti -1c
.RI "\fBQListViewItem\fP * \fBlastChild\fP () const "
.br
.ti -1c
.RI "\fBKLineEdit\fP * \fBrenameLineEdit\fP () const "
.br
.ti -1c
.RI "bool \fBitemsMovable\fP () const "
.br
.ti -1c
.RI "bool \fBitemsRenameable\fP () const "
.br
.ti -1c
.RI "bool \fBdragEnabled\fP () const "
.br
.ti -1c
.RI "bool \fBautoOpen\fP () const "
.br
.ti -1c
.RI "bool \fBisRenameable\fP (int column) const "
.br
.ti -1c
.RI "bool \fBdropVisualizer\fP () const "
.br
.ti -1c
.RI "int \fBtooltipColumn\fP () const "
.br
.ti -1c
.RI "bool \fBcreateChildren\fP () const "
.br
.RI "\fIFor future expansions. \fP"
.ti -1c
.RI "bool \fBdropHighlighter\fP () const "
.br
.ti -1c
.RI "int \fBdropVisualizerWidth\fP () const "
.br
.RI "\fIThe dropVisualizerWidth defaults to 4. \fP"
.ti -1c
.RI "\fBSelectionModeExt\fP \fBselectionModeExt\fP () const "
.br
.ti -1c
.RI "int \fBitemIndex\fP (const  \fBQListViewItem\fP *item) const "
.br
.RI "\fIReturns the index of \fCitem\fP within the item tree or -1 if \fCitem\fP doesn't exist in this list view. \fP"
.ti -1c
.RI "\fBQListViewItem\fP * \fBitemAtIndex\fP (int index)"
.br
.RI "\fIReturns the item of \fCindex\fP within the item tree or 0 if \fCindex\fP doesn't exist in this list view. \fP"
.ti -1c
.RI "void \fBsetFullWidth\fP ()"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP \fP"
.ti -1c
.RI "void \fBsetFullWidth\fP (bool fullWidth)"
.br
.RI "\fILet the last column fit exactly all the available width. \fP"
.ti -1c
.RI "bool \fBfullWidth\fP () const "
.br
.RI "\fIReturns whether the last column is set to fit the available width. \fP"
.ti -1c
.RI "virtual int \fBaddColumn\fP (const  \fBQString\fP &label, int width=-1)"
.br
.RI "\fIReimplemented for full width support. \fP"
.ti -1c
.RI "virtual int \fBaddColumn\fP (const  \fBQIconSet\fP &iconset, const  \fBQString\fP &label, int width=-1)"
.br
.RI "\fIReimplemented for full width support. \fP"
.ti -1c
.RI "virtual void \fBremoveColumn\fP (int index)"
.br
.RI "\fIReimplemented for full width support. \fP"
.ti -1c
.RI "void \fBsetAlternateBackground\fP (const  \fBQColor\fP &c)"
.br
.RI "\fIsets the alternate background background color. \fP"
.ti -1c
.RI "const  \fBQColor\fP & \fBalternateBackground\fP () const "
.br
.ti -1c
.RI "void \fBsaveLayout\fP (\fBKConfig\fP *config, const  \fBQString\fP &group) const "
.br
.RI "\fISaves the list view's layout (column widtsh, column order, sort column) to a \fBKConfig\fP group. \fP"
.ti -1c
.RI "void \fBrestoreLayout\fP (\fBKConfig\fP *config, const  \fBQString\fP &group)"
.br
.RI "\fIReads the list view's layout from a \fBKConfig\fP group as stored with \fBsaveLayout\fP. \fP"
.ti -1c
.RI "virtual void \fBsetSorting\fP (int column, bool ascending=true)"
.br
.RI "\fIReimplemented to remember the current sort column and order. \fP"
.ti -1c
.RI "int \fBcolumnSorted\fP (void) const "
.br
.ti -1c
.RI "bool \fBascendingSort\fP (void) const "
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotSettingsChanged\fP (int)"
.br
.RI "\fIUpdate internal settings whenever the global ones change. \fP"
.ti -1c
.RI "void \fBslotMouseButtonClicked\fP (int btn, \fBQListViewItem\fP *item, const  \fBQPoint\fP &pos, int c)"
.br
.ti -1c
.RI "void \fBdoneEditing\fP (\fBQListViewItem\fP *item, int row)"
.br
.ti -1c
.RI "void \fBcleanDropVisualizer\fP ()"
.br
.RI "\fIRepaint the rect where I was drawing the drop line. \fP"
.ti -1c
.RI "void \fBcleanItemHighlighter\fP ()"
.br
.RI "\fIRepaint the rect where I was drawing the drop rectangle. \fP"
.ti -1c
.RI "void \fBemitContextMenu\fP (\fBQListViewItem\fP *, const  \fBQPoint\fP &, int)"
.br
.RI "\fIEmit the \fBcontextMenu\fP signal. \fP"
.ti -1c
.RI "void \fBemitContextMenu\fP (\fBKListView\fP *, \fBQListViewItem\fP *)"
.br
.RI "\fIEmit the \fBcontextMenu\fP signal. \fP"
.ti -1c
.RI "void \fBslotOnItem\fP (\fBQListViewItem\fP *item)"
.br
.RI "\fIAccessory slot for AutoSelect. \fP"
.ti -1c
.RI "void \fBslotOnViewport\fP ()"
.br
.RI "\fIAccessory slot for AutoSelect/ChangeCursorOverItem. \fP"
.ti -1c
.RI "void \fBslotAutoSelect\fP ()"
.br
.RI "\fIProcess AutoSelection. \fP"
.ti -1c
.RI "void \fBslotHeaderChanged\fP ()"
.br
.RI "\fIReacts to header changes in full width mode. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "bool \fBbelow\fP (const  \fBQRect\fP &rect, const  \fBQPoint\fP &p)"
.br
.RI "\fIDetermine whether a drop on position \fCp\fP would count as being above or below the \fBQRect\fP \fCrect\fP. \fP"
.ti -1c
.RI "bool \fBbelow\fP (\fBQListViewItem\fP *i, const  \fBQPoint\fP &p)"
.br
.RI "\fIAn overloaded version of \fBbelow(const QRect&, const QPoint&)\fP. \fP"
.ti -1c
.RI "virtual bool \fBevent\fP (\fBQEvent\fP *)"
.br
.RI "\fIReimplemented to reload the alternate background in palette changes. \fP"
.ti -1c
.RI "void \fBemitExecute\fP (\fBQListViewItem\fP *item, const  \fBQPoint\fP &pos, int c)"
.br
.RI "\fIEmit signal \fBexecuted\fP. \fP"
.ti -1c
.RI "virtual void \fBfocusInEvent\fP (\fBQFocusEvent\fP *fe)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBfocusOutEvent\fP (\fBQFocusEvent\fP *fe)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBleaveEvent\fP (\fBQEvent\fP *e)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual \fBQString\fP \fBtooltip\fP (\fBQListViewItem\fP *item, int column) const "
.br
.ti -1c
.RI "virtual bool \fBshowTooltip\fP (\fBQListViewItem\fP *item, const  \fBQPoint\fP &pos, int column) const "
.br
.ti -1c
.RI "virtual void \fBcontentsDragMoveEvent\fP (\fBQDragMoveEvent\fP *event)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsMousePressEvent\fP (\fBQMouseEvent\fP *e)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsMouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsMouseDoubleClickEvent\fP (\fBQMouseEvent\fP *e)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsDragLeaveEvent\fP (\fBQDragLeaveEvent\fP *event)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsMouseReleaseEvent\fP (\fBQMouseEvent\fP *)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsDropEvent\fP (\fBQDropEvent\fP *)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBcontentsDragEnterEvent\fP (\fBQDragEnterEvent\fP *)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual \fBQDragObject\fP * \fBdragObject\fP ()"
.br
.ti -1c
.RI "virtual bool \fBacceptDrag\fP (\fBQDropEvent\fP *event) const "
.br
.ti -1c
.RI "virtual \fBQRect\fP \fBdrawDropVisualizer\fP (\fBQPainter\fP *p, \fBQListViewItem\fP *parent, \fBQListViewItem\fP *after)"
.br
.RI "\fIPaint the drag line. \fP"
.ti -1c
.RI "virtual \fBQRect\fP \fBdrawItemHighlighter\fP (\fBQPainter\fP *painter, \fBQListViewItem\fP *item)"
.br
.RI "\fIPaint the drag rectangle. \fP"
.ti -1c
.RI "virtual void \fBstartDrag\fP ()"
.br
.RI "\fIThis method calls \fBdragObject\fP() and starts the drag. \fP"
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "virtual void \fBviewportPaintEvent\fP (\fBQPaintEvent\fP *)"
.br
.RI "\fIReimplemented for internal reasons. \fP"
.ti -1c
.RI "void \fBactivateAutomaticSelection\fP ()"
.br
.RI "\fIIn FileManager selection mode: explicitely activate the mode in which the current item is automatically selected. \fP"
.ti -1c
.RI "void \fBdeactivateAutomaticSelection\fP ()"
.br
.RI "\fIIn FileManager selection mode: explicitely deactivate the mode in which the current item is automatically selected. \fP"
.ti -1c
.RI "bool \fBautomaticSelection\fP () const "
.br
.RI "\fIIn FileManager selection mode: return whether it is currently in the mode where the current item is selected automatically. \fP"
.ti -1c
.RI "virtual void \fBviewportResizeEvent\fP (\fBQResizeEvent\fP *e)"
.br
.RI "\fIReimplemented for \fBsetFullWidth()\fP. \fP"
.ti -1c
.RI "virtual void \fBmovableDropEvent\fP (\fBQListViewItem\fP *parent, \fBQListViewItem\fP *afterme)"
.br
.RI "\fIHandle dropEvent when \fBitemsMovable()\fP is set to true. \fP"
.ti -1c
.RI "virtual void \fBfindDrop\fP (const  \fBQPoint\fP &pos, \fBQListViewItem\fP *&parent, \fBQListViewItem\fP *&after)"
.br
.RI "\fIWhere is the nearest \fBQListViewItem\fP that I'm going to drop? \fP"
.ti -1c
.RI "void \fBfileManagerKeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.RI "\fIA special keyPressEvent (for FileManager selection mode). \fP"
.ti -1c
.RI "int \fBdepthToPixels\fP (int depth)"
.br
.RI "\fIConvert the depth of an item into its indentation in pixels. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKListViewItem\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This Widget extends the functionality of \fBQListView\fP to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM). 

There is a new signal \fBexecuted()\fP. It gets connected to either \fBQListView::clicked\fP() or \fBQListView::doubleClicked\fP() depending on the \fBKDE\fP 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 \fBQListView::selectionChanged()\fP signal.
.PP
Drag-and-Drop is supported with the signal \fBdropped\fP(), just \fBsetAcceptDrops\fP(true) and connect it to a suitable slot. To see where you are dropping, \fBsetDropVisualizer\fP(true). And also you'll need \fBacceptDrag\fP(QDropEvent*)
.PP
KListView is drag-enabled, too: to benefit from that you've got derive from it. Reimplement \fBdragObject\fP() and (possibly) \fBstartDrag\fP(), and \fBsetDragEnabled\fP(true).
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBklistview.h\fP,v 1.92.2.3 2003/09/03 11:22:19 wheeler Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 54 of file klistview.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKListView::SelectionModeExt\fP"
.PP
Possible selection modes. The first four correspond directly to QListView::SelectionMode, while the FileManager selection mode is defined as follows: 
.IP "\(bu" 2
home: move to the first 
.IP "\(bu" 2
end: move to the last 
.IP "\(bu" 2
PgUp/PgDn: move one page up/down 
.IP "\(bu" 2
up/down: move one item up/down 
.IP "\(bu" 2
insert: toggle selection of current and move to the next 
.IP "\(bu" 2
space: toggle selection of the current 
.IP "\(bu" 2
CTRL+up: move to the previous item and toggle selection of this one 
.IP "\(bu" 2
CTRL+down: toggle selection of the current item and move to the next 
.IP "\(bu" 2
CTRL+end: toggle selection from (including) the current item to (including) the last item 
.IP "\(bu" 2
CTRL+home: toggle selection from (including) the current item to the (including) the first item 
.IP "\(bu" 2
CTRL+PgDn: toggle selection from (including) the current item to (excluding) the item one page down 
.IP "\(bu" 2
CTRL+PgUp: toggle selection from (excluding) the current item to (including) the item one page up
.PP
The combinations work the same with SHIFT instead of CTRL, except that if you start selecting something using SHIFT everything selected before will be deselected first.
.PP
Additionally the current item is always selected automatically when navigating using the keyboard, except other items were selected explicitely.
.PP
This way e.g. SHIFT+up/PgUp then SHIFT+down/PgDn leaves no item selected Definition at line 95 of file klistview.h.
.PP
Referenced by selectionModeExt().
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KListView::KListView (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructor. The parameters \fCparent\fP and \fCname\fP are handled by \fBQListView\fP, as usual. Definition at line 396 of file klistview.cpp.
.PP
References KGlobalSettings::alternateBackgroundColor(), cleanDropVisualizer(), cleanItemHighlighter(), emitContextMenu(), menuShortCutPressed(), KStdAccel::name(), QListView::onItem(), QListView::onViewport(), QListView::rightButtonClicked(), QListView::rightButtonPressed(), slotAutoSelect(), slotOnItem(), slotOnViewport(), and slotSettingsChanged().
.SS "KListView::~\fBKListView\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 441 of file klistview.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KListView::setAcceptDrops (bool)\fC [virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Definition at line 1825 of file klistview.cpp.
.SS "bool KListView::isExecuteArea (const \fBQPoint\fP & point)\fC [virtual]\fP"
.PP
This function determines whether the given coordinates are within the execute area. The execute area is the part of a \fBQListViewItem\fP where mouse clicks or double clicks respectively generate a \fBexecuted\fP() signal. Depending on \fBQListView::allColumnsShowFocus\fP() this is either the whole item or only the first column. 
.PP
\fBReturns:\fP
.RS 4
true if point is inside execute area of an item, false in all other cases including the case that it is over the viewport. 
.RE
.PP
Definition at line 446 of file klistview.cpp.
.PP
References QListView::itemAt(), and QPoint::x().
.PP
Referenced by contentsMouseMoveEvent(), emitExecute(), and slotOnItem().
.SS "bool KListView::isExecuteArea (int x)"
.PP
Same thing, but from an x coordinate only. This only checks if x is in the first column (if all columns don't show focus), without testing if the y coordinate is over an item or not. Definition at line 454 of file klistview.cpp.
.PP
References QListView::allColumnsShowFocus(), QListView::columnWidth(), and QListView::header().
.SS "\fBQPtrList\fP< \fBQListViewItem\fP > KListView::selectedItems () const"
.PP
\fBReturns:\fP
.RS 4
a list containing the currently selected items. 
.RE
.PP
Definition at line 1158 of file klistview.cpp.
.PP
References QPtrList::append(), QListView::firstChild(), QListViewItem::isSelected(), and QListViewItem::itemBelow().
.PP
Referenced by fileManagerKeyPressEvent().
.SS "void KListView::moveItem (\fBQListViewItem\fP * item, \fBQListViewItem\fP * parent, \fBQListViewItem\fP * after)"
.PP
Arbitrarily move \fCitem\fP to \fCparent\fP, positioned immediately after item \fCafter\fP. Definition at line 1167 of file klistview.cpp.
.PP
References QListView::insertItem(), QListViewItem::insertItem(), QListViewItem::parent(), and QListView::takeItem().
.PP
Referenced by movableDropEvent().
.SS "\fBQListViewItem\fP * KListView::lastItem () const"
.PP
\fBReturns:\fP
.RS 4
the last item (not child!) of this listview.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBlastChild()\fP 
.RE
.PP
Reimplemented from \fBQListView\fP.
.PP
Definition at line 1073 of file klistview.cpp.
.PP
References QListViewItemIterator::current(), and lastChild().
.PP
Referenced by findDrop().
.SS "\fBQListViewItem\fP * KListView::lastChild () const"
.PP
\fBReturns:\fP
.RS 4
the last child of this listview. 
.RE
.PP
Definition at line 1063 of file klistview.cpp.
.PP
References QListView::firstChild(), and QListViewItem::nextSibling().
.PP
Referenced by lastItem().
.SS "\fBKLineEdit\fP * KListView::renameLineEdit () const"
.PP
\fBReturns:\fP
.RS 4
the lineedit used for inline renaming. Use that to setup a \fBKCompletion\fP or \fBQValidator\fP for the lineedit 
.RE
.PP
Definition at line 1083 of file klistview.cpp.
.SS "bool KListView::itemsMovable () const"
.PP
\fBReturns:\fP
.RS 4
if it is legal to move items in the list view 
.RE
.PP
Definition at line 1112 of file klistview.cpp.
.PP
Referenced by acceptDrag(), and contentsDropEvent().
.SS "bool KListView::itemsRenameable () const"
.PP
\fBReturns:\fP
.RS 4
whether inplace-renaming has been enabled.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetItemsRenameable()\fP 
.RE
.PP
Definition at line 1122 of file klistview.cpp.
.PP
Referenced by contentsMouseReleaseEvent().
.SS "bool KListView::dragEnabled () const"
.PP
\fBReturns:\fP
.RS 4
whether dragging is enabled. 
.RE
.PP
Definition at line 1133 of file klistview.cpp.
.PP
Referenced by contentsMouseMoveEvent().
.SS "bool KListView::autoOpen () const"
.PP
\fBReturns:\fP
.RS 4
true if AutoOpen is enabled (not implemented currently).
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetAutoOpen()\fP 
.RE
.PP
Definition at line 1143 of file klistview.cpp.
.SS "bool KListView::isRenameable (int column) const"
.PP
\fBReturns:\fP
.RS 4
true if \fCcolumn\fP is renamable. 
.RE
.PP
Definition at line 1291 of file klistview.cpp.
.SS "bool KListView::dropVisualizer () const"
.PP
\fBReturns:\fP
.RS 4
true if drawing of the drop-visualizer has been enabled. 
.RE
.PP
Definition at line 1148 of file klistview.cpp.
.PP
Referenced by contentsDragMoveEvent().
.SS "int KListView::tooltipColumn () const"
.PP
\fBReturns:\fP
.RS 4
the column for which tooltips are displayed (or -1 if none set). 
.RE
.PP
Definition at line 1329 of file klistview.cpp.
.PP
Referenced by showTooltip().
.SS "bool KListView::createChildren () const"
.PP
For future expansions. Do not use. \fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 1323 of file klistview.cpp.
.SS "bool KListView::dropHighlighter () const"
.PP
\fBReturns:\fP
.RS 4
true if drawing of the drop-highlighter has been enabled. 
.RE
.PP
Definition at line 1344 of file klistview.cpp.
.PP
Referenced by contentsDragMoveEvent().
.SS "int KListView::dropVisualizerWidth () const"
.PP
The dropVisualizerWidth defaults to 4. \fBReturns:\fP
.RS 4
the current width of the drop-visualizer. 
.RE
.PP
Definition at line 1831 of file klistview.cpp.
.SS "\fBKListView::SelectionModeExt\fP KListView::selectionModeExt () const"
.PP
\fBReturns:\fP
.RS 4
the 'extended' selection mode of this listview.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBSelectionModeExt\fP 
.PP
\fBsetSelectionModeExt\fP 
.RE
.PP
Definition at line 1768 of file klistview.cpp.
.PP
References SelectionModeExt.
.PP
Referenced by contentsMousePressEvent().
.SS "int KListView::itemIndex (const \fBQListViewItem\fP * item) const"
.PP
Returns the index of \fCitem\fP within the item tree or -1 if \fCitem\fP doesn't exist in this list view. This function takes all items into account not only the visible ones. Definition at line 1773 of file klistview.cpp.
.PP
References QListViewItemIterator::current(), and QListView::firstChild().
.PP
Referenced by slotAutoSelect().
.SS "\fBQListViewItem\fP * KListView::itemAtIndex (int index)"
.PP
Returns the item of \fCindex\fP within the item tree or 0 if \fCindex\fP doesn't exist in this list view. This function takes all items into account not only the visible ones. Definition at line 1792 of file klistview.cpp.
.PP
References QListViewItemIterator::current(), and QListView::firstChild().
.SS "void KListView::setFullWidth ()"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 1868 of file klistview.cpp.
.SS "void KListView::setFullWidth (bool fullWidth)"
.PP
Let the last column fit exactly all the available width. Definition at line 1873 of file klistview.cpp.
.PP
References QListView::columns(), and QListView::header().
.SS "bool KListView::fullWidth () const"
.PP
Returns whether the last column is set to fit the available width. Definition at line 1879 of file klistview.cpp.
.SS "int KListView::addColumn (const \fBQString\fP & label, int width = -1)\fC [virtual]\fP"
.PP
Reimplemented for full width support. Reimplemented from \fBQListView\fP.
.PP
Definition at line 1884 of file klistview.cpp.
.PP
References QListView::addColumn(), QListView::columns(), QListView::header(), and KStdAccel::label().
.PP
Referenced by KJanusWidget::KJanusWidget().
.SS "int KListView::addColumn (const \fBQIconSet\fP & iconset, const \fBQString\fP & label, int width = -1)\fC [virtual]\fP"
.PP
Reimplemented for full width support. Reimplemented from \fBQListView\fP.
.PP
Definition at line 1894 of file klistview.cpp.
.PP
References QListView::addColumn(), QListView::columns(), QListView::header(), and KStdAccel::label().
.SS "void KListView::removeColumn (int index)\fC [virtual]\fP"
.PP
Reimplemented for full width support. Reimplemented from \fBQListView\fP.
.PP
Definition at line 1904 of file klistview.cpp.
.PP
References QListView::columns(), QListView::header(), and QListView::removeColumn().
.SS "void KListView::setAlternateBackground (const \fBQColor\fP & c)"
.PP
sets the alternate background background color. This only has an effect if the items are KListViewItems
.PP
\fBParameters:\fP
.RS 4
\fIc\fP the color to use for every other item. Set to an invalid colour to disable alternate colours. 
.RE
.PP
Definition at line 1920 of file klistview.cpp.
.SS "const  \fBQColor\fP & KListView::alternateBackground () const"
.PP
\fBReturns:\fP
.RS 4
the alternate background color 
.RE
.PP
Definition at line 1915 of file klistview.cpp.
.PP
Referenced by KListViewItem::isAlternate().
.SS "void KListView::saveLayout (\fBKConfig\fP * config, const \fBQString\fP & group) const"
.PP
Saves the list view's layout (column widtsh, column order, sort column) to a \fBKConfig\fP group. \fBParameters:\fP
.RS 4
\fIconfig\fP the \fBKConfig\fP object to write to 
.br
\fIgroup\fP the config group to use 
.RE
.PP
Definition at line 1926 of file klistview.cpp.
.PP
References QListView::columns(), QListView::columnWidth(), QListView::header(), QString::number(), and KConfigBase::writeEntry().
.SS "void KListView::restoreLayout (\fBKConfig\fP * config, const \fBQString\fP & group)"
.PP
Reads the list view's layout from a \fBKConfig\fP group as stored with \fBsaveLayout\fP. \fBParameters:\fP
.RS 4
\fIconfig\fP the \fBKConfig\fP object to read from 
.br
\fIgroup\fP the config group to use 
.RE
.PP
Definition at line 1941 of file klistview.cpp.
.PP
References KConfigBase::hasKey(), QListView::header(), KConfigBase::readBoolEntry(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), QListView::setColumnWidth(), and setSorting().
.SS "void KListView::setSorting (int column, bool ascending = true)\fC [virtual]\fP"
.PP
Reimplemented to remember the current sort column and order. Reimplemented from \fBQListView\fP.
.PP
Definition at line 1957 of file klistview.cpp.
.PP
References QListView::setSorting().
.PP
Referenced by KJanusWidget::KJanusWidget(), and restoreLayout().
.SS "int KListView::columnSorted (void) const"
.PP
\fBReturns:\fP
.RS 4
the currently sorted column, or -1 if none is sorted 
.RE
.PP
Definition at line 1964 of file klistview.cpp.
.SS "bool KListView::ascendingSort (void) const"
.PP
\fBReturns:\fP
.RS 4
whether the current sort is ascending (or descending) 
.RE
.PP
Definition at line 1969 of file klistview.cpp.
.SS "void KListView::executed (\fBQListViewItem\fP * item)\fC [signal]\fP"
.PP
This signal is emitted whenever the user executes an listview item. That means depending on the \fBKDE\fP wide Single Click/Double Click setting the user clicked or double clicked on that item. 
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP is the pointer to the executed listview item.
.RE
.PP
Note that you may not delete any \fBQListViewItem\fP objects in slots connected to this signal. Referenced by emitExecute().
.SS "void KListView::executed (\fBQListViewItem\fP * item, const \fBQPoint\fP & pos, int c)\fC [signal]\fP"
.PP
This signal is emitted whenever the user executes an listview item. That means depending on the \fBKDE\fP wide Single Click/Double Click setting the user clicked or double clicked on that item. 
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP is the pointer to the executed listview item. 
.br
\fIpos\fP is the position where the user has clicked 
.br
\fIc\fP is the column into which the user clicked.
.RE
.PP
Note that you may not delete any \fBQListViewItem\fP objects in slots connected to this signal. 
.SS "void KListView::doubleClicked (\fBQListViewItem\fP * item, const \fBQPoint\fP & pos, int c)\fC [signal]\fP"
.PP
This signal gets emitted whenever the user double clicks into the listview. \fBParameters:\fP
.RS 4
\fIitem\fP is the pointer to the clicked listview item. 
.br
\fIpos\fP is the position where the user has clicked, and 
.br
\fIc\fP is the column into which the user clicked.
.RE
.PP
Note that you may not delete any \fBQListViewItem\fP objects in slots connected to this signal.
.PP
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 \fBexecuted\fP() instead. Reimplemented from \fBQListView\fP.
.PP
Referenced by contentsMouseDoubleClickEvent().
.SS "void KListView::dropped (\fBQDropEvent\fP * e, \fBQListViewItem\fP * after)\fC [signal]\fP"
.PP
This signal gets emitted whenever something acceptable is dropped onto the listview. \fBParameters:\fP
.RS 4
\fIe\fP is the drop event itself (it has already been accepted) 
.br
\fIafter\fP is the item after which the drop occured (or 0L, if the drop was above all items)
.RE
.PP
\fBSee also:\fP
.RS 4
#acceptDrop() 
.RE
.PP
Reimplemented in \fBKFileTreeView\fP.
.PP
Referenced by contentsDropEvent().
.SS "void KListView::dropped (\fBKListView\fP * list, \fBQDropEvent\fP * e, \fBQListViewItem\fP * after)\fC [signal]\fP"
.PP
This signal gets emitted whenever something acceptable is dropped onto the listview. This is an overloaded version of the above (provided to simplify processing drops outside of the class).
.PP
\fBParameters:\fP
.RS 4
\fIlist\fP is the listview 
.br
\fIe\fP is the drop event itself (it has already been accepted) 
.br
\fIafter\fP is the item after which the drop occured (or 0L, if the drop was above all items 
.RE
.PP

.SS "void KListView::dropped (\fBKListView\fP * list, \fBQDropEvent\fP * e, \fBQListViewItem\fP * parent, \fBQListViewItem\fP * after)\fC [signal]\fP"
.PP
This signal gets emitted whenever something acceptable is dropped onto the listview. This function also provides a parent, in the event that your listview is a tree 
.PP
\fBParameters:\fP
.RS 4
\fIlist\fP is the listview 
.br
\fIe\fP is the drop event itself (it has already been accepted) 
.br
\fIparent\fP the item that is to be the parent of the new item 
.br
\fIafter\fP is the item after which the drop occured (or 0L, if the drop was above all items 
.RE
.PP

.SS "void KListView::dropped (\fBQDropEvent\fP * e, \fBQListViewItem\fP * parent, \fBQListViewItem\fP * after)\fC [signal]\fP"
.PP
This signal gets emitted whenever something acceptable is dropped onto the listview. This function also provides a parent, in the event that your listview is a tree 
.PP
\fBParameters:\fP
.RS 4
\fIe\fP is the drop event itself (it has already been accepted) 
.br
\fIparent\fP the item that is to be the parent of the new item 
.br
\fIafter\fP is the item after which the drop occured (or 0L, if the drop was above all items 
.RE
.PP
Reimplemented in \fBKFileTreeView\fP.
.SS "void KListView::moved ()\fC [signal]\fP"
.PP
This signal is emitted when ever the user moves an item in the list via DnD. If more than one item is moved at the same time, this signal is only emitted once. Referenced by movableDropEvent(), and startDrag().
.SS "void KListView::aboutToMove ()\fC [signal]\fP"
.PP
Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting. This is sent only once per each groups of moves. That is, for each drop that is a move this will be emitted once, before KListView calls \fBmoveItem\fP() Referenced by movableDropEvent().
.SS "void KListView::moved (\fBQListViewItem\fP * item, \fBQListViewItem\fP * afterFirst, \fBQListViewItem\fP * afterNow)\fC [signal]\fP"
.PP
This signal is emitted when ever the user moves an item in the list via DnD. If more than one item is moved at the same time, \fCafterFirst\fP and \fCafterNow\fP will reflect what was true before the move. This differs from \fBmoved\fP(), so be careful. All the items will have been moved before \fBmoved\fP() is emitted, which is not true in this method. // FIXME 
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP the item that was moved 
.br
\fIafterFirst\fP the item that parameter item was in before the move, in the list 
.br
\fIafterNow\fP the item it's currently after. 
.RE
.PP

.SS "void KListView::moved (\fBQPtrList\fP< \fBQListViewItem\fP > & items, \fBQPtrList\fP< \fBQListViewItem\fP > & afterFirst, \fBQPtrList\fP< \fBQListViewItem\fP > & afterNow)\fC [signal]\fP"
.PP
This signal is emitted after all the items have been moved. It reports info for each and every item moved, in order. The first element in \fCitems\fP associates with the first of afterFirst and afterNow. 
.SS "void KListView::itemRenamed (\fBQListViewItem\fP * item, const \fBQString\fP & str, int col)\fC [signal]\fP"
.PP
This signal gets emitted when an item is renamed via in-place renaming. \fBParameters:\fP
.RS 4
\fIitem\fP is the renamed item. 
.br
\fIstr\fP is the new value of column \fCcol\fP. 
.br
\fIcol\fP is the renamed column. 
.RE
.PP

.SS "void KListView::itemRenamed (\fBQListViewItem\fP * item)\fC [signal]\fP"
.PP
Same as above, but without the extra information. 
.SS "void KListView::menuShortCutPressed (\fBKListView\fP * list, \fBQListViewItem\fP * item)\fC [signal]\fP"
.PP
This signal is emitted when the shortcut key for popup-menus is pressed. Normally you should not use this, just connect a slot to signal \fBcontextMenu\fP (KListView*, QListViewItem*, const \fBQPoint\fP&) to correctly handle showing context menus regardless of settings.
.PP
\fBParameters:\fP
.RS 4
\fIlist\fP is this listview. 
.br
\fIitem\fP is the \fBcurrentItem\fP() at the time the key was pressed. May be 0L. 
.RE
.PP
Referenced by keyPressEvent(), and KListView().
.SS "void KListView::contextMenu (\fBKListView\fP * l, \fBQListViewItem\fP * i, const \fBQPoint\fP & p)\fC [signal]\fP"
.PP
This signal is emitted whenever a context-menu should be shown for item \fCi\fP. It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).
.PP
\fBParameters:\fP
.RS 4
\fIl\fP is this listview. 
.br
\fIi\fP is the item for which the menu should be shown. May be 0L. 
.br
\fIp\fP is the point at which the menu should be shown. 
.RE
.PP
Referenced by emitContextMenu().
.SS "void KListView::rename (\fBQListViewItem\fP * item, int c)\fC [virtual, slot]\fP"
.PP
Rename column \fCc\fP of \fCitem\fP. Definition at line 1282 of file klistview.cpp.
.PP
References QListView::ensureItemVisible().
.PP
Referenced by contentsMouseReleaseEvent(), and KListViewLineEdit::selectNextCell().
.SS "void KListView::setRenameable (int column, bool yesno = true)\fC [slot]\fP"
.PP
By default, if you called setItemsRenameable(true), only the first column is renameable. Use this function to enable the feature on other columns.
.PP
If you want more intelligent (dynamic) selection, you'll have to derive from KListView, and override \fBrename\fP() and call only call it if you want the item to be renamed. Definition at line 1296 of file klistview.cpp.
.PP
References QListView::header().
.SS "void KListView::setItemsMovable (bool b)\fC [virtual, slot]\fP"
.PP
Set whether items in the list view can be moved. It is enabled by default.
.PP
\fBSee also:\fP
.RS 4
\fBitemsMovable()\fP 
.RE
.PP
Definition at line 1107 of file klistview.cpp.
.SS "void KListView::setItemsRenameable (bool b)\fC [virtual, slot]\fP"
.PP
Enables inplace-renaming of items. It is disabled by default.
.PP
\fBSee also:\fP
.RS 4
\fBitemsRenameable()\fP 
.PP
\fBsetRenameable()\fP 
.RE
.PP
Definition at line 1117 of file klistview.cpp.
.SS "void KListView::setDragEnabled (bool b)\fC [virtual, slot]\fP"
.PP
Enable/Disable the dragging of items. It is disabled by default. Definition at line 1128 of file klistview.cpp.
.SS "void KListView::setAutoOpen (bool b)\fC [virtual, slot]\fP"
.PP
Enable/Disable AutoOpen (not implemented currently). Definition at line 1138 of file klistview.cpp.
.SS "void KListView::setDropVisualizer (bool b)\fC [virtual, slot]\fP"
.PP
Enable/Disable the drawing of a drop-visualizer (a bar that shows where a dropped item would be inserted). It is enabled by default, if dragging is enabled Definition at line 1153 of file klistview.cpp.
.SS "void KListView::setDropVisualizerWidth (int w)\fC [slot]\fP"
.PP
Set the width of the (default) drop-visualizer. If you don't call this method, the width is set to 4. Definition at line 1200 of file klistview.cpp.
.SS "void KListView::setTooltipColumn (int column)\fC [virtual, slot]\fP"
.PP
Set which column should be used for automatic tooltips. \fBParameters:\fP
.RS 4
\fIcolumn\fP is the column for which tooltips will be shown. Set -1 to disable this feature. 
.RE
.PP
Definition at line 1334 of file klistview.cpp.
.SS "void KListView::setDropHighlighter (bool b)\fC [virtual, slot]\fP"
.PP
Enable/Disable the drawing of a drop-highlighter (a rectangle around the item under the mouse cursor). It is disabled by default. Definition at line 1339 of file klistview.cpp.
.SS "void KListView::setCreateChildren (bool b)\fC [virtual, slot]\fP"
.PP
For future expansions. Do not use. \fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 1318 of file klistview.cpp.
.SS "void KListView::setSelectionModeExt (\fBSelectionModeExt\fP mode)\fC [slot]\fP"
.PP
Set the selection mode. A different name was chosen to avoid API-clashes with \fBQListView::setSelectionMode\fP(). Definition at line 1745 of file klistview.cpp.
.PP
References QListView::setSelectionMode().
.SS "void KListView::setTabOrderedRenaming (bool b)\fC [slot]\fP"
.PP
Enable/disable tabbing between editable cells 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
Definition at line 1359 of file klistview.cpp.
.SS "bool KListView::tabOrderedRenaming () const\fC [slot]\fP"
.PP
Returns whether tab ordered renaming is enabled 
.PP
\fBSince:\fP
.RS 4
3.1. 
.RE
.PP
Definition at line 1364 of file klistview.cpp.
.SS "bool KListView::below (const \fBQRect\fP & rect, const \fBQPoint\fP & p)\fC [inline, protected]\fP"
.PP
Determine whether a drop on position \fCp\fP would count as being above or below the \fBQRect\fP \fCrect\fP. \fBParameters:\fP
.RS 4
\fIrect\fP is the rectangle we examine. 
.br
\fIp\fP is the point located in the rectangle, p is assumed to be in viewport coordinates. 
.RE
.PP
Definition at line 602 of file klistview.h.
.PP
References QRect::bottom(), QRect::top(), and QPoint::y().
.PP
Referenced by below().
.SS "bool KListView::below (\fBQListViewItem\fP * i, const \fBQPoint\fP & p)\fC [inline, protected]\fP"
.PP
An overloaded version of \fBbelow(const QRect&, const QPoint&)\fP. It differs from the above only in what arguments it takes.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP the item whose rect() is passed to the above function. 
.br
\fIp\fP is translated from contents coordinates to viewport coordinates before being passed to the above function. 
.RE
.PP
Definition at line 616 of file klistview.h.
.PP
References below(), and QListView::itemRect().
.SS "bool KListView::event (\fBQEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to reload the alternate background in palette changes. Definition at line 712 of file klistview.cpp.
.PP
References KGlobalSettings::alternateBackgroundColor(), and QEvent::type().
.SS "void KListView::emitExecute (\fBQListViewItem\fP * item, const \fBQPoint\fP & pos, int c)\fC [protected]\fP"
.PP
Emit signal \fBexecuted\fP. Definition at line 634 of file klistview.cpp.
.PP
References executed(), and isExecuteArea().
.PP
Referenced by contentsMouseDoubleClickEvent().
.SS "void KListView::focusInEvent (\fBQFocusEvent\fP * fe)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Definition at line 667 of file klistview.cpp.
.PP
References QListView::currentItem(), QFocusEvent::reason(), and QListView::selectionChanged().
.SS "void KListView::focusOutEvent (\fBQFocusEvent\fP * fe)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Definition at line 683 of file klistview.cpp.
.PP
References cleanDropVisualizer(), cleanItemHighlighter(), QListView::currentItem(), QFocusEvent::reason(), and QListView::selectionChanged().
.SS "void KListView::leaveEvent (\fBQEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Definition at line 705 of file klistview.cpp.
.SS "\fBQString\fP KListView::tooltip (\fBQListViewItem\fP * item, int column) const\fC [protected, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
the tooltip for \fCcolumn\fP of \fCitem\fP. 
.RE
.PP
Definition at line 1354 of file klistview.cpp.
.PP
References QListViewItem::text().
.PP
Referenced by showTooltip().
.SS "bool KListView::showTooltip (\fBQListViewItem\fP * item, const \fBQPoint\fP & pos, int column) const\fC [protected, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
whether the tooltip for \fCcolumn\fP of \fCitem\fP shall be shown at point \fCpos\fP. 
.RE
.PP
Definition at line 1349 of file klistview.cpp.
.PP
References QString::length(), tooltip(), and tooltipColumn().
.SS "void KListView::contentsDragMoveEvent (\fBQDragMoveEvent\fP * event)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 940 of file klistview.cpp.
.PP
References acceptDrag(), cleanDropVisualizer(), cleanItemHighlighter(), drawDropVisualizer(), drawItemHighlighter(), dropHighlighter(), dropVisualizer(), KNotifyClient::event(), and findDrop().
.SS "void KListView::contentsMousePressEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented from \fBQListView\fP.
.PP
Definition at line 720 of file klistview.cpp.
.PP
References QMouseEvent::button(), QListView::clearSelection(), QListView::contentsMousePressEvent(), QListView::currentItem(), QListViewItem::depth(), QListView::header(), QListViewItem::isSelected(), QListView::itemAt(), QListView::itemMargin(), QMouseEvent::pos(), QListView::rootIsDecorated(), selectionModeExt(), QMouseEvent::state(), QListView::treeStepSize(), and QPoint::x().
.SS "void KListView::contentsMouseMoveEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented from \fBQListView\fP.
.PP
Definition at line 767 of file klistview.cpp.
.PP
References QListView::contentsMouseMoveEvent(), QListView::contentsMouseReleaseEvent(), dragEnabled(), KCursor::handCursor(), isExecuteArea(), QListView::itemAt(), QMouseEvent::pos(), startDrag(), QPoint::x(), and QPoint::y().
.SS "void KListView::contentsMouseDoubleClickEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented from \fBQListView\fP.
.PP
Definition at line 840 of file klistview.cpp.
.PP
References QMouseEvent::button(), doubleClicked(), QListView::doubleClicked(), emitExecute(), QMouseEvent::globalPos(), QListView::header(), QListView::itemAt(), QMouseEvent::pos(), and QPoint::x().
.SS "void KListView::contentsDragLeaveEvent (\fBQDragLeaveEvent\fP * event)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 973 of file klistview.cpp.
.PP
References cleanDropVisualizer(), and cleanItemHighlighter().
.SS "void KListView::contentsMouseReleaseEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented from \fBQListView\fP.
.PP
Definition at line 807 of file klistview.cpp.
.PP
References QMouseEvent::button(), QListView::contentsMouseReleaseEvent(), QListViewItem::depth(), QListView::header(), QListView::itemAt(), QListView::itemMargin(), itemsRenameable(), QMouseEvent::pos(), rename(), QListView::rootIsDecorated(), QListView::treeStepSize(), and QPoint::x().
.SS "void KListView::contentsDropEvent (\fBQDropEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 866 of file klistview.cpp.
.PP
References QDropEvent::acceptAction(), acceptDrag(), cleanDropVisualizer(), cleanItemHighlighter(), dropped(), findDrop(), itemsMovable(), movableDropEvent(), QDropEvent::pos(), and QDropEvent::source().
.SS "void KListView::contentsDragEnterEvent (\fBQDragEnterEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 1194 of file klistview.cpp.
.PP
References acceptDrag(), and KNotifyClient::event().
.SS "\fBQDragObject\fP * KListView::dragObject ()\fC [protected, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
a dragobject encoding the current selection.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetDragEnabled()\fP 
.RE
.PP
Reimplemented from \fBQListView\fP.
.PP
Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 1099 of file klistview.cpp.
.PP
References QListView::currentItem().
.PP
Referenced by startDrag().
.SS "bool KListView::acceptDrag (\fBQDropEvent\fP * event) const\fC [protected, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
true if the \fCevent\fP provides some acceptable format. A common mistake is to forget the 'const' in your reimplementation 
.RE
.PP
Reimplemented in \fBKFileTreeView\fP.
.PP
Definition at line 1313 of file klistview.cpp.
.PP
References itemsMovable(), and QDropEvent::source().
.PP
Referenced by contentsDragEnterEvent(), contentsDragMoveEvent(), and contentsDropEvent().
.SS "\fBQRect\fP KListView::drawDropVisualizer (\fBQPainter\fP * p, \fBQListViewItem\fP * parent, \fBQListViewItem\fP * after)\fC [protected, virtual]\fP"
.PP
Paint the drag line. If painter is null, don't try to :)
.PP
If after == 0 then the marker should be drawn at the top.
.PP
\fBReturns:\fP
.RS 4
the rectangle that you painted to. 
.RE
.PP
Definition at line 1205 of file klistview.cpp.
.PP
References QRect::bottom(), QListViewItem::depth(), QPainter::fillRect(), QListViewItem::firstChild(), QListViewItem::isOpen(), QListView::itemMargin(), QListView::itemRect(), QListViewItem::nextSibling(), QListView::rootIsDecorated(), QRect::setBottom(), QRect::setLeft(), QRect::setRight(), QRect::setTop(), and QListView::treeStepSize().
.PP
Referenced by contentsDragMoveEvent().
.SS "\fBQRect\fP KListView::drawItemHighlighter (\fBQPainter\fP * painter, \fBQListViewItem\fP * item)\fC [protected, virtual]\fP"
.PP
Paint the drag rectangle. If painter is null, don't try to :)
.PP
\fBReturns:\fP
.RS 4
the rectangle that you painted to. 
.RE
.PP
Definition at line 1252 of file klistview.cpp.
.PP
References QListViewItem::depth(), QListView::itemRect(), QRect::left(), QRect::setLeft(), and QListView::treeStepSize().
.PP
Referenced by contentsDragMoveEvent().
.SS "void KListView::startDrag ()\fC [protected, virtual]\fP"
.PP
This method calls \fBdragObject\fP() and starts the drag. Reimplement it to do fancy stuff like setting a pixmap or using a non-default DragMode Reimplemented from \fBQListView\fP.
.PP
Definition at line 1088 of file klistview.cpp.
.PP
References QDragObject::drag(), dragObject(), moved(), and QDragObject::target().
.PP
Referenced by contentsMouseMoveEvent().
.SS "void KListView::keyPressEvent (\fBQKeyEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Reimplemented in \fBKFileDetailView\fP.
.PP
Definition at line 1369 of file klistview.cpp.
.PP
References QListView::currentItem(), fileManagerKeyPressEvent(), QKeyEvent::key(), and menuShortCutPressed().
.SS "void KListView::viewportPaintEvent (\fBQPaintEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
.PP
The API is unaffected. Definition at line 1837 of file klistview.cpp.
.PP
References QPainter::fillRect(), and QPaintEvent::rect().
.SS "void KListView::activateAutomaticSelection ()\fC [protected]\fP"
.PP
In FileManager selection mode: explicitely activate the mode in which the current item is automatically selected. Definition at line 1384 of file klistview.cpp.
.PP
References QListView::currentItem(), QListView::selectAll(), and QListView::selectionChanged().
.SS "void KListView::deactivateAutomaticSelection ()\fC [protected]\fP"
.PP
In FileManager selection mode: explicitely deactivate the mode in which the current item is automatically selected. Definition at line 1397 of file klistview.cpp.
.SS "bool KListView::automaticSelection () const\fC [protected]\fP"
.PP
In FileManager selection mode: return whether it is currently in the mode where the current item is selected automatically. Returns false if items were selected explicitely, e.g. using the mouse. Definition at line 1402 of file klistview.cpp.
.SS "void KListView::viewportResizeEvent (\fBQResizeEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented for \fBsetFullWidth()\fP. Definition at line 1910 of file klistview.cpp.
.SS "void KListView::slotSettingsChanged (int)\fC [protected, slot]\fP"
.PP
Update internal settings whenever the global ones change. Definition at line 489 of file klistview.cpp.
.PP
References KGlobalSettings::autoSelectDelay(), KGlobalSettings::changeCursorOverIcon(), KGlobalSettings::contextMenuKey(), KGlobalSettings::dndEventDelay(), emitContextMenu(), QListView::mouseButtonClicked(), QListView::rightButtonClicked(), QListView::rightButtonPressed(), KGlobalSettings::showContextMenusOnPress(), and KGlobalSettings::singleClick().
.PP
Referenced by KListView().
.SS "void KListView::cleanDropVisualizer ()\fC [protected, slot]\fP"
.PP
Repaint the rect where I was drawing the drop line. Definition at line 979 of file klistview.cpp.
.PP
Referenced by contentsDragLeaveEvent(), contentsDragMoveEvent(), contentsDropEvent(), focusOutEvent(), and KListView().
.SS "void KListView::cleanItemHighlighter ()\fC [protected, slot]\fP"
.PP
Repaint the rect where I was drawing the drop rectangle. Definition at line 1272 of file klistview.cpp.
.PP
Referenced by contentsDragLeaveEvent(), contentsDragMoveEvent(), contentsDropEvent(), focusOutEvent(), and KListView().
.SS "void KListView::emitContextMenu (\fBQListViewItem\fP *, const \fBQPoint\fP &, int)\fC [protected, slot]\fP"
.PP
Emit the \fBcontextMenu\fP signal. This slot is for mouse actions. Definition at line 1820 of file klistview.cpp.
.PP
References contextMenu().
.PP
Referenced by KListView(), and slotSettingsChanged().
.SS "void KListView::emitContextMenu (\fBKListView\fP *, \fBQListViewItem\fP *)\fC [protected, slot]\fP"
.PP
Emit the \fBcontextMenu\fP signal. This slot is for key presses. Definition at line 1808 of file klistview.cpp.
.PP
References contextMenu(), and QListView::itemRect().
.SS "void KListView::slotOnItem (\fBQListViewItem\fP * item)\fC [protected, slot]\fP"
.PP
Accessory slot for AutoSelect. Definition at line 471 of file klistview.cpp.
.PP
References isExecuteArea(), QCursor::pos(), and QPoint::x().
.PP
Referenced by KListView().
.SS "void KListView::slotOnViewport ()\fC [protected, slot]\fP"
.PP
Accessory slot for AutoSelect/ChangeCursorOverItem. Definition at line 480 of file klistview.cpp.
.PP
Referenced by KListView().
.SS "void KListView::slotAutoSelect ()\fC [protected, slot]\fP"
.PP
Process AutoSelection. Definition at line 537 of file klistview.cpp.
.PP
References QListView::clearSelection(), QListViewItemIterator::current(), QListView::currentItem(), itemIndex(), QListViewItem::itemPos(), QListView::selectionChanged(), QListView::selectionMode(), QListView::setCurrentItem(), QListView::setSelected(), QListViewItem::setSelected(), and QListView::triggerUpdate().
.PP
Referenced by KListView().
.SS "void KListView::slotHeaderChanged ()\fC [protected, slot]\fP"
.PP
Reacts to header changes in full width mode. Definition at line 624 of file klistview.cpp.
.PP
References QListView::columns(), QListView::columnWidth(), and QListView::setColumnWidth().
.SS "void KListView::movableDropEvent (\fBQListViewItem\fP * parent, \fBQListViewItem\fP * afterme)\fC [protected, virtual]\fP"
.PP
Handle dropEvent when \fBitemsMovable()\fP is set to true. Definition at line 890 of file klistview.cpp.
.PP
References aboutToMove(), QPtrList::append(), QListView::clearSelection(), QListView::currentItem(), QPtrList::first(), QListView::firstChild(), QListViewItem::isSelected(), QListViewItem::itemAbove(), QListViewItem::itemBelow(), moved(), moveItem(), QPtrList::next(), QListView::setCurrentItem(), and QListViewItem::setSelected().
.PP
Referenced by contentsDropEvent().
.SS "void KListView::findDrop (const \fBQPoint\fP & pos, \fBQListViewItem\fP *& parent, \fBQListViewItem\fP *& after)\fC [protected, virtual]\fP"
.PP
Where is the nearest \fBQListViewItem\fP that I'm going to drop? Definition at line 994 of file klistview.cpp.
.PP
References QListViewItem::childCount(), QListViewItem::depth(), depthToPixels(), QListViewItem::firstChild(), QListViewItem::height(), QListViewItem::isExpandable(), QListViewItem::isOpen(), QListViewItem::itemAbove(), QListView::itemAt(), QListView::itemRect(), lastItem(), QListViewItem::nextSibling(), QListViewItem::parent(), QPoint::x(), and QPoint::y().
.PP
Referenced by contentsDragMoveEvent(), and contentsDropEvent().
.SS "void KListView::fileManagerKeyPressEvent (\fBQKeyEvent\fP *)\fC [protected]\fP"
.PP
A special keyPressEvent (for FileManager selection mode). Definition at line 1407 of file klistview.cpp.
.PP
References QListView::currentItem(), QListView::ensureItemVisible(), QListView::firstChild(), QRect::isEmpty(), QListViewItem::isSelected(), QListViewItem::itemAbove(), QListViewItem::itemBelow(), QListView::itemRect(), QKeyEvent::key(), QRect::moveBy(), QListViewItem::nextSibling(), QListView::selectAll(), selectedItems(), QListView::selectionChanged(), QListView::selectionMode(), QListView::setCurrentItem(), QListView::setOpen(), QListViewItem::setSelected(), QListView::setSelectionMode(), QKeyEvent::state(), QRect::unite(), and QRect::x().
.PP
Referenced by keyPressEvent().
.SS "int KListView::depthToPixels (int depth)\fC [protected]\fP"
.PP
Convert the depth of an item into its indentation in pixels. Definition at line 989 of file klistview.cpp.
.PP
References QListView::itemMargin(), QListView::rootIsDecorated(), and QListView::treeStepSize().
.PP
Referenced by findDrop().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
