27 #include <Qt3Support/Q3ListView>
28 #include <Qt3Support/Q3PtrList>
63 Q_PROPERTY(
bool fullWidth READ fullWidth WRITE setFullWidth )
64 Q_PROPERTY(
bool itemsMovable READ itemsMovable WRITE setItemsMovable )
65 Q_PROPERTY(
bool itemsRenameable READ itemsRenameable WRITE setItemsRenameable )
66 Q_PROPERTY(
bool dragEnabled READ dragEnabled WRITE setDragEnabled )
67 Q_PROPERTY(
bool autoOpen READ autoOpen WRITE setAutoOpen )
68 Q_PROPERTY(
bool dropVisualizer READ dropVisualizer WRITE setDropVisualizer )
69 Q_PROPERTY(
int tooltipColumn READ tooltipColumn WRITE setTooltipColumn )
70 Q_PROPERTY(
int dropVisualizerWidth READ dropVisualizerWidth WRITE setDropVisualizerWidth )
71 Q_PROPERTY(
QColor alternateBackground READ alternateBackground WRITE setAlternateBackground )
72 Q_PROPERTY(
bool shadeSortColumn READ shadeSortColumn WRITE setShadeSortColumn )
74 Q_OVERRIDE(
SelectionModeExt selectionMode READ selectionModeExt WRITE setSelectionModeExt )
109 Single = Q3ListView::Single,
110 Multi = Q3ListView::Multi,
111 Extended = Q3ListView::Extended,
112 NoSelection = Q3ListView::NoSelection,
135 virtual void setAcceptDrops (
bool);
146 virtual bool isExecuteArea(
const QPoint& point );
153 bool isExecuteArea(
int x );
200 bool itemsMovable()
const;
207 bool itemsRenameable()
const;
214 bool dragEnabled()
const;
221 bool autoOpen()
const;
228 bool isRenameable (
int column)
const;
235 bool dropVisualizer()
const;
242 int tooltipColumn()
const;
249 bool dropHighlighter()
const;
257 int dropVisualizerWidth ()
const;
265 SelectionModeExt selectionModeExt ()
const;
285 KDE_DEPRECATED
void setFullWidth();
292 void setFullWidth(
bool fullWidth);
299 bool fullWidth()
const;
306 virtual int addColumn(
const QString& label,
int width = -1);
310 virtual int addColumn(
const QIcon& iconset,
const QString& label,
int width = -1);
316 virtual void removeColumn(
int index);
327 void setAlternateBackground(
const QColor &c);
333 const QColor &alternateBackground()
const;
361 virtual void setSorting(
int column,
bool ascending =
true);
366 int columnSorted(
void)
const;
371 bool ascendingSort(
void)
const;
382 void setShadeSortColumn(
bool shadeSortColumn);
388 bool shadeSortColumn(
void)
const;
562 void setRenameable (
int column,
bool yesno=
true);
570 virtual void setItemsMovable(
bool b);
579 virtual void setItemsRenameable(
bool b);
585 virtual void setDragEnabled(
bool b);
590 virtual void setAutoOpen(
bool b);
597 virtual void setDropVisualizer(
bool b);
603 void setDropVisualizerWidth (
int w);
611 virtual void setTooltipColumn(
int column);
618 virtual void setDropHighlighter(
bool b);
625 void setSelectionModeExt (SelectionModeExt mode);
630 void setTabOrderedRenaming(
bool b);
635 bool tabOrderedRenaming()
const;
663 virtual bool event(
QEvent * );
678 virtual void focusInEvent(QFocusEvent* fe);
687 virtual void focusOutEvent( QFocusEvent *fe );
696 virtual void leaveEvent(
QEvent *e );
715 virtual void contentsDragMoveEvent (QDragMoveEvent *event);
724 virtual void contentsMousePressEvent( QMouseEvent *e );
733 virtual void contentsMouseMoveEvent( QMouseEvent *e );
742 virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e );
751 virtual void contentsDragLeaveEvent (QDragLeaveEvent *event);
760 virtual void contentsMouseReleaseEvent (QMouseEvent*);
769 virtual void contentsDropEvent (QDropEvent*);
778 virtual void contentsDragEnterEvent (QDragEnterEvent *);
787 virtual void contentsContextMenuEvent ( QContextMenuEvent * );
801 virtual bool acceptDrag (QDropEvent* event)
const;
826 virtual void startDrag();
835 virtual void keyPressEvent (QKeyEvent*);
844 virtual void viewportPaintEvent(QPaintEvent*);
850 void activateAutomaticSelection();
855 void deactivateAutomaticSelection();
861 bool automaticSelection()
const;
866 virtual void viewportResizeEvent(QResizeEvent* e);
874 void disableAutoSelection();
880 void resetAutoSelection();
894 void slotSettingsChanged(
int);
902 void cleanDropVisualizer();
907 void cleanItemHighlighter();
929 void slotOnViewport();
935 void slotAutoSelect();
937 void slotDragExpand();
943 void slotHeaderChanged();
962 void fileManagerKeyPressEvent (QKeyEvent*);
967 int depthToPixels(
int depth );
975 class K3ListViewPrivate;
976 K3ListViewPrivate*
const d;
1037 KDE_DEPRECATED
const QColor &backgroundColor();
1046 QColor backgroundColor(
int column);
1048 virtual void paintCell(QPainter *p,
const QColorGroup &cg,
1049 int column,
int width,
int alignment);
virtual void takeItem(Q3ListViewItem *i)
Reimplemented for internal reasons.
int rename(const QString &in, const QString &out)
A listview item with support for alternate background colors.
This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Clic...
friend class K3ListViewItem
virtual void takeItem(Q3ListViewItem *item)
SelectionModeExt
Possible selection modes.