KDE3Support
k3listview.h
Go to the documentation of this file.
505 void moved(Q3PtrList<Q3ListViewItem> &items, Q3PtrList<Q3ListViewItem> &afterFirst, Q3PtrList<Q3ListViewItem> &afterNow);
1037 KDE_DEPRECATED const QColor &backgroundColor(); // #### should be removed in 4.0; use below instead
virtual void insertItem(Q3ListViewItem *item)
Definition k3listview.cpp:2224
bool isAlternate()
returns true if this item is to be drawn with the alternate background
Definition k3listview.cpp:2271
virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
Definition k3listview.cpp:2345
const QColor & backgroundColor()
returns the background color for this item
Definition k3listview.cpp:2238
This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Clic...
Definition k3listview.h:58
virtual QRect drawDropVisualizer(QPainter *p, Q3ListViewItem *parent, Q3ListViewItem *after)
Paint the drag line.
Definition k3listview.cpp:1301
void moved(Q3ListViewItem *item, Q3ListViewItem *afterFirst, Q3ListViewItem *afterNow)
This signal is emitted when ever the user moves an item in the list via DnD.
virtual void startDrag()
This method calls dragObject() and starts the drag.
Definition k3listview.cpp:1144
virtual void contentsDragMoveEvent(QDragMoveEvent *event)
Reimplemented for internal reasons.
Definition k3listview.cpp:976
void resetAutoSelection()
Reset AutoSelection to the system wide setting.
Definition k3listview.cpp:2140
bool automaticSelection() const
In FileManager selection mode: return whether it is currently in the mode where the current item is s...
Definition k3listview.cpp:1489
void itemRenamed(Q3ListViewItem *item, const QString &str, int col)
This signal gets emitted when an item is renamed via in-place renaming.
virtual void keyPressEvent(QKeyEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:1464
void doneEditing(Q3ListViewItem *item, int row)
Definition k3listview.cpp:1403
void activateAutomaticSelection()
In FileManager selection mode: explicitly activate the mode in which the current item is automaticall...
Definition k3listview.cpp:1472
virtual void findDrop(const QPoint &pos, Q3ListViewItem *&parent, Q3ListViewItem *&after)
Where is the nearest Q3ListViewItem that I'm going to drop?
Definition k3listview.cpp:1050
void deactivateAutomaticSelection()
In FileManager selection mode: explicitly deactivate the mode in which the current item is automatica...
Definition k3listview.cpp:1484
void emitExecute(Q3ListViewItem *item, const QPoint &pos, int c)
Emit signal executed.
Definition k3listview.cpp:671
void setAlternateBackground(const QColor &c)
sets the alternate background background color.
Definition k3listview.cpp:1998
virtual QString tooltip(Q3ListViewItem *item, int column) const
Definition k3listview.cpp:1439
virtual void setItemsRenameable(bool b)
Enables inplace-renaming of items.
Definition k3listview.cpp:1174
void moved(Q3PtrList< Q3ListViewItem > &items, Q3PtrList< Q3ListViewItem > &afterFirst, Q3PtrList< Q3ListViewItem > &afterNow)
This signal is emitted after all the items have been moved.
virtual void setAutoOpen(bool b)
Enable/Disable AutoOpen (not implemented currently).
Definition k3listview.cpp:1195
void setDropVisualizerWidth(int w)
Set the width of the (default) drop-visualizer.
Definition k3listview.cpp:1296
void setRenameable(int column, bool yesno=true)
By default, if you called setItemsRenameable(true), only the first column is renameable.
Definition k3listview.cpp:1394
virtual bool event(QEvent *)
Reimplemented to reload the alternate background in palette changes.
Definition k3listview.cpp:744
void dropped(QDropEvent *e, Q3ListViewItem *parent, Q3ListViewItem *after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
void moved()
This signal is emitted when ever the user moves an item in the list via DnD.
virtual void rename(Q3ListViewItem *item, int c)
Rename column c of item.
Definition k3listview.cpp:1380
bool below(const QRect &rect, const QPoint &p)
Determine whether a drop on position p would count as being above or below the QRect rect.
Definition k3listview.cpp:1454
virtual bool isExecuteArea(const QPoint &point)
This function determines whether the given coordinates are within the execute area.
Definition k3listview.cpp:467
virtual void focusOutEvent(QFocusEvent *fe)
Reimplemented for internal reasons.
Definition k3listview.cpp:715
virtual void contentsMouseReleaseEvent(QMouseEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:839
void executed(Q3ListViewItem *item, const QPoint &pos, int c)
This signal is emitted whenever the user executes an listview item.
virtual void setDropHighlighter(bool b)
Enable/Disable the drawing of a drop-highlighter (a rectangle around the item under the mouse cursor)...
Definition k3listview.cpp:1424
void slotOnViewport()
Accessory slot for AutoSelect/ChangeCursorOverItem.
Definition k3listview.cpp:525
void menuShortCutPressed(K3ListView *list, Q3ListViewItem *item)
This signal is emitted when the shortcut key for popup-menus is pressed.
int depthToPixels(int depth)
Convert the depth of an item into its indentation in pixels.
Definition k3listview.cpp:1045
virtual void focusInEvent(QFocusEvent *fe)
Reimplemented for internal reasons.
Definition k3listview.cpp:699
void dropped(QDropEvent *e, Q3ListViewItem *after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
void contextMenu(K3ListView *l, Q3ListViewItem *i, const QPoint &p)
This signal is emitted whenever a context-menu should be shown for item i.
virtual void contentsMousePressEvent(QMouseEvent *e)
Reimplemented for internal reasons.
Definition k3listview.cpp:752
void aboutToMove()
Connect to this signal if you want to do some preprocessing before a move is made,...
virtual void movableDropEvent(Q3ListViewItem *parent, Q3ListViewItem *afterme)
Handle dropEvent when itemsMovable() is set to true.
Definition k3listview.cpp:926
virtual void contentsMouseDoubleClickEvent(QMouseEvent *e)
Reimplemented for internal reasons.
Definition k3listview.cpp:872
virtual QRect drawItemHighlighter(QPainter *painter, Q3ListViewItem *item)
Paint the drag rectangle.
Definition k3listview.cpp:1348
void cleanItemHighlighter()
Repaint the rect where I was drawing the drop rectangle.
Definition k3listview.cpp:1370
void doubleClicked(Q3ListViewItem *item, const QPoint &pos, int c)
Definition k3listview.cpp:2149
void itemRenamed(Q3ListViewItem *item)
Same as above, but without the extra information.
void setShadeSortColumn(bool shadeSortColumn)
Set to true if the currently sorted column should be drawn shaded.
Definition k3listview.cpp:2004
void dropped(K3ListView *list, QDropEvent *e, Q3ListViewItem *after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
void slotMouseButtonClicked(int btn, Q3ListViewItem *item, const QPoint &pos, int c)
Definition k3listview.cpp:894
virtual void contentsDropEvent(QDropEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:900
void executed(Q3ListViewItem *item)
This signal is emitted whenever the user executes an listview item.
virtual void contentsDragEnterEvent(QDragEnterEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:1282
virtual void contentsMouseMoveEvent(QMouseEvent *e)
Reimplemented for internal reasons.
Definition k3listview.cpp:799
void itemAdded(Q3ListViewItem *item)
virtual bool acceptDrag(QDropEvent *event) const
Definition k3listview.cpp:1409
virtual void setDragEnabled(bool b)
Enable/Disable the dragging of items.
Definition k3listview.cpp:1185
void fileManagerKeyPressEvent(QKeyEvent *)
A special keyPressEvent (for FileManager selection mode).
Definition k3listview.cpp:1494
virtual void viewportPaintEvent(QPaintEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:1916
virtual void viewportResizeEvent(QResizeEvent *e)
Reimplemented for setFullWidth()
Definition k3listview.cpp:1988
virtual void setDropVisualizer(bool b)
Enable/Disable the drawing of a drop-visualizer (a bar that shows where a dropped item would be inser...
Definition k3listview.cpp:1210
virtual bool showTooltip(Q3ListViewItem *item, const QPoint &pos, int column) const
Definition k3listview.cpp:1434
bool tabOrderedRenaming() const
Returns whether tab ordered renaming is enabled.
Definition k3listview.cpp:1449
void dropped(K3ListView *list, QDropEvent *e, Q3ListViewItem *parent, Q3ListViewItem *after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
virtual void setItemsMovable(bool b)
Set whether items in the list view can be moved.
Definition k3listview.cpp:1164
void cleanDropVisualizer()
Repaint the rect where I was drawing the drop line.
Definition k3listview.cpp:1035
void setTabOrderedRenaming(bool b)
Enable/disable tabbing between editable cells.
Definition k3listview.cpp:1444
void itemRemoved(Q3ListViewItem *item)
virtual void contentsDragLeaveEvent(QDragLeaveEvent *event)
Reimplemented for internal reasons.
Definition k3listview.cpp:1028
void setSelectionModeExt(SelectionModeExt mode)
Set the selection mode.
Definition k3listview.cpp:1824
void emitContextMenu(Q3ListViewItem *, const QPoint &, int)
Emit the contextMenu signal.
Definition k3listview.cpp:1899
void slotSettingsChanged(int)
Update internal settings whenever the global ones change.
Definition k3listview.cpp:534
virtual void setTooltipColumn(int column)
Set which column should be used for automatic tooltips.
Definition k3listview.cpp:1419
virtual void contentsContextMenuEvent(QContextMenuEvent *)
Reimplemented for internal reasons.
Definition k3listview.cpp:1287
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.