• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
K3ListView Class Reference

#include <k3listview.h>

Inheritance diagram for K3ListView:
Inheritance graph
[legend]

Public Types

enum  SelectionModeExt {
  Single = Q3ListView::Single, Multi = Q3ListView::Multi, Extended = Q3ListView::Extended, NoSelection = Q3ListView::NoSelection,
  FileManager
}
 

Public Slots

virtual void rename (Q3ListViewItem *item, int c)
 
virtual void setAutoOpen (bool b)
 
virtual void setDragEnabled (bool b)
 
virtual void setDropHighlighter (bool b)
 
virtual void setDropVisualizer (bool b)
 
void setDropVisualizerWidth (int w)
 
virtual void setItemsMovable (bool b)
 
virtual void setItemsRenameable (bool b)
 
void setRenameable (int column, bool yesno=true)
 
void setSelectionModeExt (SelectionModeExt mode)
 
void setTabOrderedRenaming (bool b)
 
virtual void setTooltipColumn (int column)
 
bool tabOrderedRenaming () const
 

Signals

void aboutToMove ()
 
void contextMenu (K3ListView *l, Q3ListViewItem *i, const QPoint &p)
 
void dropped (QDropEvent *e, Q3ListViewItem *after)
 
void dropped (K3ListView *list, QDropEvent *e, Q3ListViewItem *after)
 
void dropped (K3ListView *list, QDropEvent *e, Q3ListViewItem *parent, Q3ListViewItem *after)
 
void dropped (QDropEvent *e, Q3ListViewItem *parent, Q3ListViewItem *after)
 
void executed (Q3ListViewItem *item)
 
void executed (Q3ListViewItem *item, const QPoint &pos, int c)
 
void itemAdded (Q3ListViewItem *item)
 
void itemRemoved (Q3ListViewItem *item)
 
void itemRenamed (Q3ListViewItem *item, const QString &str, int col)
 
void itemRenamed (Q3ListViewItem *item)
 
void menuShortCutPressed (K3ListView *list, Q3ListViewItem *item)
 
void moved ()
 
void moved (Q3ListViewItem *item, Q3ListViewItem *afterFirst, Q3ListViewItem *afterNow)
 
void moved (Q3PtrList< Q3ListViewItem > &items, Q3PtrList< Q3ListViewItem > &afterFirst, Q3PtrList< Q3ListViewItem > &afterNow)
 

Public Member Functions

 K3ListView (QWidget *parent=0)
 
virtual ~K3ListView ()
 
virtual int addColumn (const QString &label, int width=-1)
 
virtual int addColumn (const QIcon &iconset, const QString &label, int width=-1)
 
const QColor & alternateBackground () const
 
bool ascendingSort (void) const
 
bool autoOpen () const
 
int columnSorted (void) const
 
bool dragEnabled () const
 
bool dropHighlighter () const
 
bool dropVisualizer () const
 
int dropVisualizerWidth () const
 
bool fullWidth () const
 
virtual bool isExecuteArea (const QPoint &point)
 
bool isExecuteArea (int x)
 
bool isRenameable (int column) const
 
Q3ListViewItem * itemAtIndex (int index)
 
int itemIndex (const Q3ListViewItem *item) const
 
bool itemsMovable () const
 
bool itemsRenameable () const
 
Q3ListViewItem * lastChild () const
 
Q3ListViewItem * lastItem () const
 
void moveItem (Q3ListViewItem *item, Q3ListViewItem *parent, Q3ListViewItem *after)
 
virtual void removeColumn (int index)
 
KLineEdit * renameLineEdit () const
 
void restoreLayout (KConfig *config, const QString &group)
 
void restoreLayout (KConfigGroup &cg)
 
void saveLayout (KConfig *config, const QString &group) const
 
void saveLayout (KConfigGroup &cg) const
 
QList< Q3ListViewItem * > selectedItems (bool includeHiddenItems=true) const
 
SelectionModeExt selectionModeExt () const
 
virtual void setAcceptDrops (bool)
 
void setAlternateBackground (const QColor &c)
 
void setFullWidth ()
 
void setFullWidth (bool fullWidth)
 
void setShadeSortColumn (bool shadeSortColumn)
 
virtual void setSorting (int column, bool ascending=true)
 
bool shadeSortColumn (void) const
 
virtual void takeItem (Q3ListViewItem *i)
 
int tooltipColumn () const
 
- Public Member Functions inherited from Q3ListView
 Q3ListView (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~Q3ListView ()
 
void adjustColumn (int col)
 
bool allColumnsShowFocus () const
 
int childCount () const
 
virtual void clear ()
 
virtual void clearSelection ()
 
void clicked (Q3ListViewItem *item)
 
void clicked (Q3ListViewItem *item, const QPoint &pnt, int c)
 
void collapsed (Q3ListViewItem *item)
 
int columnAlignment (int column) const
 
int columns () const
 
QString columnText (int c) const
 
int columnWidth (int c) const
 
WidthMode columnWidthMode (int c) const
 
void contextMenuRequested (Q3ListViewItem *item, const QPoint &pos, int col)
 
void currentChanged (Q3ListViewItem *item)
 
Q3ListViewItem * currentItem () const
 
RenameAction defaultRenameAction () const
 
void doubleClicked (Q3ListViewItem *item)
 
void doubleClicked (Q3ListViewItem *item, const QPoint &point, int column)
 
void dropped (QDropEvent *e)
 
void ensureItemVisible (const Q3ListViewItem *i)
 
virtual bool eventFilter (QObject *o, QEvent *e)
 
void expanded (Q3ListViewItem *item)
 
Q3ListViewItem * findItem (const QString &text, int column, ComparisonFlags compare) const
 
Q3ListViewItem * firstChild () const
 
Q3Header * header () const
 
void hideColumn (int column)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
virtual void insertItem (Q3ListViewItem *i)
 
virtual void invertSelection ()
 
bool isMultiSelection () const
 
bool isOpen (const Q3ListViewItem *item) const
 
bool isRenaming () const
 
bool isSelected (const Q3ListViewItem *i) const
 
Q3ListViewItem * itemAt (const QPoint &viewPos) const
 
int itemMargin () const
 
int itemPos (const Q3ListViewItem *item)
 
QRect itemRect (const Q3ListViewItem *item) const
 
void itemRenamed (Q3ListViewItem *item, int col, const QString &text)
 
void itemRenamed (Q3ListViewItem *item, int col)
 
Q3ListViewItem * lastItem () const
 
virtual QSize minimumSizeHint () const
 
void mouseButtonClicked (int button, Q3ListViewItem *item, const QPoint &pos, int c)
 
void mouseButtonPressed (int button, Q3ListViewItem *item, const QPoint &pos, int c)
 
void onItem (Q3ListViewItem *i)
 
void onViewport ()
 
void pressed (Q3ListViewItem *item)
 
void pressed (Q3ListViewItem *item, const QPoint &pnt, int c)
 
virtual void removeItem (Q3ListViewItem *item)
 
void repaintItem (const Q3ListViewItem *item) const
 
ResizeMode resizeMode () const
 
void returnPressed (Q3ListViewItem *item)
 
void rightButtonClicked (Q3ListViewItem *item, const QPoint &point, int column)
 
void rightButtonPressed (Q3ListViewItem *item, const QPoint &point, int column)
 
bool rootIsDecorated () const
 
virtual void selectAll (bool select)
 
Q3ListViewItem * selectedItem () const
 
void selectionChanged ()
 
void selectionChanged (Q3ListViewItem *item)
 
SelectionMode selectionMode () const
 
virtual void setAllColumnsShowFocus (bool)
 
virtual void setColumnAlignment (int column, int align)
 
virtual void setColumnText (int column, const QString &label)
 
virtual void setColumnText (int column, const QIcon &icon, const QString &label)
 
virtual void setColumnWidth (int column, int w)
 
virtual void setColumnWidthMode (int c, WidthMode mode)
 
virtual void setContentsPos (int x, int y)
 
virtual void setCurrentItem (Q3ListViewItem *i)
 
virtual void setDefaultRenameAction (RenameAction a)
 
virtual void setItemMargin (int)
 
virtual void setMultiSelection (bool enable)
 
virtual void setOpen (Q3ListViewItem *item, bool open)
 
virtual void setResizeMode (ResizeMode m)
 
virtual void setRootIsDecorated (bool)
 
virtual void setSelected (Q3ListViewItem *item, bool selected)
 
void setSelectionAnchor (Q3ListViewItem *item)
 
void setSelectionMode (SelectionMode mode)
 
virtual void setShowSortIndicator (bool show)
 
virtual void setShowToolTips (bool b)
 
void setSortColumn (int column)
 
void setSortOrder (Qt::SortOrder order)
 
virtual void setTreeStepSize (int)
 
bool showSortIndicator () const
 
bool showToolTips () const
 
virtual QSize sizeHint () const
 
virtual void sort ()
 
int sortColumn () const
 
Qt::SortOrder sortOrder () const
 
void spacePressed (Q3ListViewItem *item)
 
int treeStepSize () const
 
void triggerUpdate ()
 
- Public Member Functions inherited from Q3ScrollView
 Q3ScrollView (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~Q3ScrollView ()
 
virtual void addChild (QWidget *child, int x, int y)
 
int bottomMargin () const
 
void center (int x, int y)
 
void center (int x, int y, float xmargin, float ymargin)
 
bool childIsVisible (QWidget *child)
 
int childX (QWidget *child)
 
int childY (QWidget *child)
 
QWidget * clipper () const
 
int contentsHeight () const
 
void contentsMoving (int x, int y)
 
void contentsToViewport (int x, int y, int &vx, int &vy) const
 
QPoint contentsToViewport (const QPoint &p) const
 
int contentsWidth () const
 
int contentsX () const
 
int contentsY () const
 
QWidget * cornerWidget () const
 
bool dragAutoScroll () const
 
void enableClipper (bool y)
 
void ensureVisible (int x, int y)
 
void ensureVisible (int x, int y, int xmargin, int ymargin)
 
bool hasStaticBackground () const
 
QScrollBar * horizontalScrollBar () const
 
void horizontalSliderPressed ()
 
void horizontalSliderReleased ()
 
ScrollBarMode hScrollBarMode () const
 
bool isHorizontalSliderPressed ()
 
bool isVerticalSliderPressed ()
 
int leftMargin () const
 
virtual void moveChild (QWidget *child, int x, int y)
 
void removeChild (QWidget *child)
 
void repaintContents (const QRect &r, bool erase)
 
void repaintContents (int x, int y, int w, int h, bool erase)
 
void repaintContents (bool erase)
 
virtual void resizeContents (int w, int h)
 
ResizePolicy resizePolicy () const
 
int rightMargin () const
 
void scrollBy (int dx, int dy)
 
virtual void setCornerWidget (QWidget *corner)
 
virtual void setDragAutoScroll (bool b)
 
virtual void setHScrollBarMode (ScrollBarMode)
 
virtual void setMargins (int left, int top, int right, int bottom)
 
virtual void setResizePolicy (ResizePolicy)
 
void setStaticBackground (bool y)
 
virtual void setVisible (bool visible)
 
virtual void setVScrollBarMode (ScrollBarMode)
 
void showChild (QWidget *child, bool y)
 
int topMargin () const
 
void updateContents (const QRect &r)
 
void updateContents (int x, int y, int w, int h)
 
void updateContents ()
 
void updateScrollBars ()
 
QScrollBar * verticalScrollBar () const
 
void verticalSliderPressed ()
 
void verticalSliderReleased ()
 
QWidget * viewport () const
 
QSize viewportSize (int x, int y) const
 
QPoint viewportToContents (const QPoint &vp) const
 
void viewportToContents (int vx, int vy, int &x, int &y) const
 
int visibleHeight () const
 
int visibleWidth () const
 
ScrollBarMode vScrollBarMode () const
 
- Public Member Functions inherited from Q3Frame
 Q3Frame (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~Q3Frame ()
 
QRect contentsRect () const
 
int frameWidth () const
 
int margin () const
 
void setMargin (int)
 
- Public Member Functions inherited from QFrame
 QFrame (QWidget *parent, QFlags< Qt::WindowType > f)
 
 QFrame (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~QFrame ()
 
QRect frameRect () const
 
Shadow frameShadow () const
 
Shape frameShape () const
 
int frameStyle () const
 
int frameWidth () const
 
int lineWidth () const
 
int midLineWidth () const
 
void setFrameRect (const QRect &)
 
void setFrameShadow (Shadow)
 
void setFrameShape (Shape)
 
void setFrameStyle (int style)
 
void setLineWidth (int)
 
void setMidLineWidth (int)
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, QFlags< Qt::WindowType > f)
 
 QWidget (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 
 ~QWidget ()
 
bool acceptDrops () const
 
QString accessibleDescription () const
 
QString accessibleName () const
 
QList< QAction * > actions () const
 
void activateWindow ()
 
void addAction (QAction *action)
 
void addActions (QList< QAction * > actions)
 
void adjustSize ()
 
bool autoFillBackground () const
 
Qt::BackgroundMode backgroundMode () const
 
QPoint backgroundOffset () const
 
BackgroundOrigin backgroundOrigin () const
 
QPalette::ColorRole backgroundRole () const
 
QSize baseSize () const
 
QString caption () const
 
QWidget * childAt (int x, int y, bool includeThis) const
 
QWidget * childAt (const QPoint &p, bool includeThis) const
 
QWidget * childAt (int x, int y) const
 
QWidget * childAt (const QPoint &p) const
 
QRect childrenRect () const
 
QRegion childrenRegion () const
 
void clearFocus ()
 
void clearMask ()
 
bool close (bool alsoDelete)
 
bool close ()
 
QColorGroup colorGroup () const
 
void constPolish () const
 
QMargins contentsMargins () const
 
QRect contentsRect () const
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
QCursor cursor () const
 
void customContextMenuRequested (const QPoint &pos)
 
void drawText (const QPoint &p, const QString &s)
 
void drawText (int x, int y, const QString &s)
 
WId effectiveWinId () const
 
void ensurePolished () const
 
void erase ()
 
void erase (const QRect &rect)
 
void erase (const QRegion &rgn)
 
void erase (int x, int y, int w, int h)
 
Qt::FocusPolicy focusPolicy () const
 
QWidget * focusProxy () const
 
QWidget * focusWidget () const
 
const QFont & font () const
 
QFontInfo fontInfo () const
 
QFontMetrics fontMetrics () const
 
QPalette::ColorRole foregroundRole () const
 
QRect frameGeometry () const
 
QSize frameSize () const
 
const QRect & geometry () const
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
 
virtual HDC getDC () const
 
void grabGesture (Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffect * graphicsEffect () const
 
QGraphicsProxyWidget * graphicsProxyWidget () const
 
bool hasEditFocus () const
 
bool hasFocus () const
 
bool hasMouse () const
 
bool hasMouseTracking () const
 
int height () const
 
virtual int heightForWidth (int w) const
 
void hide ()
 
const QPixmap * icon () const
 
void iconify ()
 
QString iconText () const
 
QInputContext * inputContext ()
 
Qt::InputMethodHints inputMethodHints () const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, QList< QAction * > actions)
 
bool isActiveWindow () const
 
bool isAncestorOf (const QWidget *child) const
 
bool isDesktop () const
 
bool isDialog () const
 
bool isEnabled () const
 
bool isEnabledTo (QWidget *ancestor) const
 
bool isEnabledToTLW () const
 
bool isFullScreen () const
 
bool isHidden () const
 
bool isInputMethodEnabled () const
 
bool isMaximized () const
 
bool isMinimized () const
 
bool isModal () const
 
bool isPopup () const
 
bool isShown () const
 
bool isTopLevel () const
 
bool isUpdatesEnabled () const
 
bool isVisible () const
 
bool isVisibleTo (QWidget *ancestor) const
 
bool isVisibleToTLW () const
 
bool isWindow () const
 
bool isWindowModified () const
 
QLayout * layout () const
 
Qt::LayoutDirection layoutDirection () const
 
QLocale locale () const
 
void lower ()
 
Qt::HANDLE macCGHandle () const
 
Qt::HANDLE macQDHandle () const
 
QPoint mapFrom (QWidget *parent, const QPoint &pos) const
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapFromParent (const QPoint &pos) const
 
QPoint mapTo (QWidget *parent, const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QPoint mapToParent (const QPoint &pos) const
 
QRegion mask () const
 
int maximumHeight () const
 
QSize maximumSize () const
 
int maximumWidth () const
 
int minimumHeight () const
 
QSize minimumSize () const
 
int minimumWidth () const
 
void move (int x, int y)
 
void move (const QPoint &)
 
QWidget * nativeParentWidget () const
 
QWidget * nextInFocusChain () const
 
QRect normalGeometry () const
 
void overrideWindowFlags (QFlags< Qt::WindowType > flags)
 
bool ownCursor () const
 
bool ownFont () const
 
bool ownPalette () const
 
virtual QPaintEngine * paintEngine () const
 
const QPalette & palette () const
 
QWidget * parentWidget (bool sameWindow) const
 
QWidget * parentWidget () const
 
QPlatformWindow * platformWindow () const
 
QPlatformWindowFormat platformWindowFormat () const
 
void polish ()
 
QPoint pos () const
 
QWidget * previousInFocusChain () const
 
void raise ()
 
void recreate (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
 
QRect rect () const
 
virtual void releaseDC (HDC hdc) const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
 
void repaint (int x, int y, int w, int h, bool b)
 
void repaint (const QRegion &rgn, bool b)
 
void repaint ()
 
void repaint (int x, int y, int w, int h)
 
void repaint (const QRegion &rgn)
 
void repaint (bool b)
 
void repaint (const QRect &rect)
 
void repaint (const QRect &r, bool b)
 
void reparent (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
 
void reparent (QWidget *parent, const QPoint &p, bool showIt)
 
void resize (int w, int h)
 
void resize (const QSize &)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setActiveWindow ()
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundColor (const QColor &color)
 
void setBackgroundMode (Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground)
 
void setBackgroundOrigin (BackgroundOrigin background)
 
void setBackgroundPixmap (const QPixmap &pixmap)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setCaption (const QString &c)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContentsMargins (const QMargins &margins)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setEraseColor (const QColor &color)
 
void setErasePixmap (const QPixmap &pixmap)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus (Qt::FocusReason reason)
 
void setFocus ()
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setFont (const QFont &f, bool b)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (int x, int y, int w, int h)
 
void setGeometry (const QRect &)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setIcon (const QPixmap &i)
 
void setIconText (const QString &it)
 
void setInputContext (QInputContext *context)
 
void setInputMethodEnabled (bool enabled)
 
void setInputMethodHints (QFlags< Qt::InputMethodHint > hints)
 
void setKeyCompression (bool b)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setPalette (const QPalette &p, bool b)
 
void setPaletteBackgroundColor (const QColor &color)
 
void setPaletteBackgroundPixmap (const QPixmap &pixmap)
 
void setPaletteForegroundColor (const QColor &color)
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, QFlags< Qt::WindowType > f)
 
void setPlatformWindow (QPlatformWindow *window)
 
void setPlatformWindowFormat (const QPlatformWindowFormat &format)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setShown (bool shown)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setSizePolicy (QSizePolicy)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
QStyle * setStyle (const QString &style)
 
void setStyleSheet (const QString &styleSheet)
 
void setToolTip (const QString &)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlags (QFlags< Qt::WindowType > type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (QFlags< Qt::WindowState > windowState)
 
void setWindowSurface (QWindowSurface *surface)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const
 
QSize sizeIncrement () const
 
QSizePolicy sizePolicy () const
 
void stackUnder (QWidget *w)
 
QString statusTip () const
 
QStyle * style () const
 
QString styleSheet () const
 
bool testAttribute (Qt::WidgetAttribute attribute) const
 
QString toolTip () const
 
QWidget * topLevelWidget () const
 
bool underMouse () const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetFont ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void unsetPalette ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
void update ()
 
void updateGeometry ()
 
bool updatesEnabled () const
 
QRect visibleRect () const
 
QRegion visibleRegion () const
 
QString whatsThis () const
 
int width () const
 
QWidget * window () const
 
QString windowFilePath () const
 
Qt::WindowFlags windowFlags () const
 
QIcon windowIcon () const
 
QString windowIconText () const
 
Qt::WindowModality windowModality () const
 
qreal windowOpacity () const
 
QString windowRole () const
 
Qt::WindowStates windowState () const
 
QWindowSurface * windowSurface () const
 
QString windowTitle () const
 
Qt::WindowType windowType () const
 
WId winId () const
 
int x () const
 
const QX11Info & x11Info () const
 
Qt::HANDLE x11PictureHandle () const
 
int y () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from QPaintDevice
virtual  ~QPaintDevice ()
 
int colorCount () const
 
int depth () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int numColors () const
 
virtual QPaintEngine * paintEngine () const =0
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
int width () const
 
int widthMM () const
 
int x11Cells () const
 
Qt::HANDLE x11Colormap () const
 
bool x11DefaultColormap () const
 
bool x11DefaultVisual () const
 
int x11Depth () const
 
Display * x11Display () const
 
int x11Screen () const
 
void * x11Visual () const
 

Protected Slots

void cleanDropVisualizer ()
 
void cleanItemHighlighter ()
 
void doneEditing (Q3ListViewItem *item, int row)
 
void emitContextMenu (Q3ListViewItem *, const QPoint &, int)
 
void emitContextMenu (K3ListView *, Q3ListViewItem *)
 
void slotAutoSelect ()
 
void slotDragExpand ()
 
void slotHeaderChanged ()
 
void slotMouseButtonClicked (int btn, Q3ListViewItem *item, const QPoint &pos, int c)
 
void slotOnItem (Q3ListViewItem *item)
 
void slotOnViewport ()
 
void slotSettingsChanged (int)
 

Protected Member Functions

virtual bool acceptDrag (QDropEvent *event) const
 
void activateAutomaticSelection ()
 
bool automaticSelection () const
 
bool below (const QRect &rect, const QPoint &p)
 
bool below (Q3ListViewItem *i, const QPoint &p)
 
virtual void contentsContextMenuEvent (QContextMenuEvent *)
 
virtual void contentsDragEnterEvent (QDragEnterEvent *)
 
virtual void contentsDragLeaveEvent (QDragLeaveEvent *event)
 
virtual void contentsDragMoveEvent (QDragMoveEvent *event)
 
virtual void contentsDropEvent (QDropEvent *)
 
virtual void contentsMouseDoubleClickEvent (QMouseEvent *e)
 
virtual void contentsMouseMoveEvent (QMouseEvent *e)
 
virtual void contentsMousePressEvent (QMouseEvent *e)
 
virtual void contentsMouseReleaseEvent (QMouseEvent *)
 
void deactivateAutomaticSelection ()
 
int depthToPixels (int depth)
 
void disableAutoSelection ()
 
void doubleClicked (Q3ListViewItem *item, const QPoint &pos, int c)
 
virtual Q3DragObject * dragObject ()
 
virtual QRect drawDropVisualizer (QPainter *p, Q3ListViewItem *parent, Q3ListViewItem *after)
 
virtual QRect drawItemHighlighter (QPainter *painter, Q3ListViewItem *item)
 
void emitExecute (Q3ListViewItem *item, const QPoint &pos, int c)
 
virtual bool event (QEvent *)
 
void fileManagerKeyPressEvent (QKeyEvent *)
 
virtual void findDrop (const QPoint &pos, Q3ListViewItem *&parent, Q3ListViewItem *&after)
 
virtual void focusInEvent (QFocusEvent *fe)
 
virtual void focusOutEvent (QFocusEvent *fe)
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void leaveEvent (QEvent *e)
 
virtual void movableDropEvent (Q3ListViewItem *parent, Q3ListViewItem *afterme)
 
void resetAutoSelection ()
 
virtual bool showTooltip (Q3ListViewItem *item, const QPoint &pos, int column) const
 
virtual void startDrag ()
 
virtual QString tooltip (Q3ListViewItem *item, int column) const
 
virtual void viewportPaintEvent (QPaintEvent *)
 
virtual void viewportResizeEvent (QResizeEvent *e)
 
- Protected Member Functions inherited from Q3ListView
virtual void changeEvent (QEvent *ev)
 
void doAutoScroll ()
 
virtual void drawContentsOffset (QPainter *p, int ox, int oy, int cx, int cy, int cw, int ch)
 
virtual void paintEmptyArea (QPainter *p, const QRect &rect)
 
virtual void resizeEvent (QResizeEvent *e)
 
virtual void showEvent (QShowEvent *)
 
void updateContents ()
 
- Protected Member Functions inherited from Q3ScrollView
virtual void contentsWheelEvent (QWheelEvent *e)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
virtual void drawContents (QPainter *p, int clipx, int clipy, int clipw, int cliph)
 
virtual bool focusNextPrevChild (bool next)
 
virtual void frameChanged ()
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h)
 
virtual void setVBarGeometry (QScrollBar &vbar, int x, int y, int w, int h)
 
virtual void wheelEvent (QWheelEvent *e)
 
- Protected Member Functions inherited from Q3Frame
virtual void drawContents (QPainter *painter)
 
virtual void drawFrame (QPainter *p)
 
virtual void paintEvent (QPaintEvent *event)
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void enterEvent (QEvent *event)
 
bool focusNextChild ()
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void languageChange ()
 
virtual bool macEvent (EventHandlerCallRef caller, EventRef event)
 
virtual int metric (PaintDeviceMetric m) const
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool qwsEvent (QWSEvent *event)
 
void resetInputContext ()
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus ()
 
virtual bool winEvent (MSG *message, long *result)
 
virtual bool x11Event (XEvent *event)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 

Properties

QColor alternateBackground
 
bool autoOpen
 
bool dragEnabled
 
bool dropVisualizer
 
int dropVisualizerWidth
 
bool fullWidth
 
bool itemsMovable
 
bool itemsRenameable
 
bool shadeSortColumn
 
int tooltipColumn
 
- Properties inherited from Q3ListView
 allColumnsShowFocus
 
 childCount
 
 columns
 
 defaultRenameAction
 
 itemMargin
 
 multiSelection
 
 resizeMode
 
 rootIsDecorated
 
 selectionMode
 
 showSortIndicator
 
 showToolTips
 
 treeStepSize
 
- Properties inherited from Q3ScrollView
 contentsHeight
 
 contentsWidth
 
 contentsX
 
 contentsY
 
 dragAutoScroll
 
 hScrollBarMode
 
 resizePolicy
 
 visibleHeight
 
 visibleWidth
 
 vScrollBarMode
 
- Properties inherited from Q3Frame
 contentsRect
 
 margin
 
- Properties inherited from QFrame
 frameRect
 
 frameShadow
 
 frameShape
 
 frameWidth
 
 lineWidth
 
 midLineWidth
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 toolTip
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QWidget
QWidget * find (WId id)
 
QWidget * keyboardGrabber ()
 
QWidget * mouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
QWidgetMapper * wmapper ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Public Member Functions inherited from QPaintDevice
int x11AppCells (int screen)
 
Qt::HANDLE x11AppColormap (int screen)
 
bool x11AppDefaultColormap (int screen)
 
bool x11AppDefaultVisual (int screen)
 
int x11AppDepth (int screen)
 
Display * x11AppDisplay ()
 
int x11AppDpiX (int screen)
 
int x11AppDpiY (int screen)
 
Qt::HANDLE x11AppRootWindow (int screen)
 
int x11AppScreen ()
 
void * x11AppVisual (int screen)
 
void x11SetAppDpiX (int dpi, int screen)
 
void x11SetAppDpiY (int dpi, int screen)
 
- Public Attributes inherited from Q3ListView
typedef ComparisonFlags
 
- Public Attributes inherited from QWidget
typedef RenderFlags
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 

Detailed Description

This Widget extends the functionality of Q3ListView to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).

There is a new signal executed(). It gets connected to either Q3ListView::clicked() or Q3ListView::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 Q3ListView::selectionChanged() signal.

Drag-and-Drop is supported with the signal dropped(), just setAcceptDrops(true) and connect it to a suitable slot. To see where you are dropping, setDropVisualizer(true). And also you'll need acceptDrag(QDropEvent*)

K3ListView is drag-enabled, too: to benefit from that you have to derive from it. Reimplement dragObject() and (possibly) startDrag(), and setDragEnabled(true).

Definition at line 57 of file k3listview.h.

Member Enumeration Documentation

enum K3ListView::SelectionModeExt

Possible selection modes.

The first four correspond directly to Q3ListView::SelectionMode, while the FileManager selection mode is defined as follows:

  • home: move to the first
  • end: move to the last
  • PgUp/PgDn: move one page up/down
  • up/down: move one item up/down
  • insert: toggle selection of current and move to the next
  • space: toggle selection of the current
  • CTRL+up: move to the previous item and toggle selection of this one
  • CTRL+down: toggle selection of the current item and move to the next
  • CTRL+end: toggle selection from (including) the current item to (including) the last item
  • CTRL+home: toggle selection from (including) the current item to the (including) the first item
  • CTRL+PgDn: toggle selection from (including) the current item to (excluding) the item one page down
  • CTRL+PgUp: toggle selection from (excluding) the current item to (including) the item one page up

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.

Additionally the current item is always selected automatically when navigating using the keyboard, except other items were selected explicitly.

This way e.g. SHIFT+up/PgUp then SHIFT+down/PgDn leaves no item selected

Enumerator
Single 
Multi 
Extended 
NoSelection 
FileManager 

Definition at line 108 of file k3listview.h.

Constructor & Destructor Documentation

K3ListView::K3ListView ( QWidget *  parent = 0)
explicit

Constructor.

The parameter parent is handled by Q3ListView, as usual.

Definition at line 419 of file k3listview.cpp.

K3ListView::~K3ListView ( )
virtual

Destructor.

Definition at line 462 of file k3listview.cpp.

Member Function Documentation

void K3ListView::aboutToMove ( )
signal

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 K3ListView calls

See also
moveItem()
bool K3ListView::acceptDrag ( QDropEvent *  event) const
protectedvirtual
Returns
true if the event provides some acceptable format. A common mistake is to forget the "const" in your reimplementation

Reimplemented in K3FileTreeView.

Definition at line 1409 of file k3listview.cpp.

void K3ListView::activateAutomaticSelection ( )
protected

In FileManager selection mode: explicitly activate the mode in which the current item is automatically selected.

Definition at line 1472 of file k3listview.cpp.

int K3ListView::addColumn ( const QString &  label,
int  width = -1 
)
virtual

Reimplemented for full width support.

See also
removeColumn()

Reimplemented from Q3ListView.

Definition at line 1962 of file k3listview.cpp.

int K3ListView::addColumn ( const QIcon &  iconset,
const QString &  label,
int  width = -1 
)
virtual

Reimplemented for full width support.

Reimplemented from Q3ListView.

Definition at line 1972 of file k3listview.cpp.

const QColor& K3ListView::alternateBackground ( ) const
Returns
the alternate background color
See also
setAlternateBackground()
bool K3ListView::ascendingSort ( void  ) const
Returns
whether the current sort is ascending (or descending)

Definition at line 2117 of file k3listview.cpp.

bool K3ListView::automaticSelection ( ) const
protected

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 explicitly, e.g. using the mouse.

Definition at line 1489 of file k3listview.cpp.

bool K3ListView::autoOpen ( ) const
Returns
true if AutoOpen is enabled (not implemented currently).
See also
setAutoOpen()
bool K3ListView::below ( const QRect &  rect,
const QPoint &  p 
)
protected

Determine whether a drop on position p would count as being above or below the QRect rect.

Parameters
rectis the rectangle we examine.
pis the point located in the rectangle, p is assumed to be in viewport coordinates.

Definition at line 1454 of file k3listview.cpp.

bool K3ListView::below ( Q3ListViewItem *  i,
const QPoint &  p 
)
protected

An overloaded version of below(const QRect&, const QPoint&).

It differs from the above only in what arguments it takes.

Parameters
ithe item whose rect() is passed to the above function.
pis translated from contents coordinates to viewport coordinates before being passed to the above function.

Definition at line 1459 of file k3listview.cpp.

void K3ListView::cleanDropVisualizer ( )
protectedslot

Repaint the rect where I was drawing the drop line.

Definition at line 1035 of file k3listview.cpp.

void K3ListView::cleanItemHighlighter ( )
protectedslot

Repaint the rect where I was drawing the drop rectangle.

Definition at line 1370 of file k3listview.cpp.

int K3ListView::columnSorted ( void  ) const
Returns
the currently sorted column, or -1 if none is sorted

Definition at line 2112 of file k3listview.cpp.

void K3ListView::contentsContextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 1287 of file k3listview.cpp.

void K3ListView::contentsDragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Reimplemented in K3FileTreeView.

Definition at line 1282 of file k3listview.cpp.

void K3ListView::contentsDragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Reimplemented in K3FileTreeView.

Definition at line 1028 of file k3listview.cpp.

void K3ListView::contentsDragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Reimplemented in K3FileTreeView.

Definition at line 976 of file k3listview.cpp.

void K3ListView::contentsDropEvent ( QDropEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Reimplemented in K3FileTreeView.

Definition at line 900 of file k3listview.cpp.

void K3ListView::contentsMouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 872 of file k3listview.cpp.

void K3ListView::contentsMouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 799 of file k3listview.cpp.

void K3ListView::contentsMousePressEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 752 of file k3listview.cpp.

void K3ListView::contentsMouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 839 of file k3listview.cpp.

void K3ListView::contextMenu ( K3ListView *  l,
Q3ListViewItem *  i,
const QPoint &  p 
)
signal

This signal is emitted whenever a context-menu should be shown for item i.

It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).

Parameters
lis this listview.
iis the item for which the menu should be shown. May be 0L.
pis the point at which the menu should be shown.
void K3ListView::deactivateAutomaticSelection ( )
protected

In FileManager selection mode: explicitly deactivate the mode in which the current item is automatically selected.

Definition at line 1484 of file k3listview.cpp.

int K3ListView::depthToPixels ( int  depth)
protected

Convert the depth of an item into its indentation in pixels.

Definition at line 1045 of file k3listview.cpp.

void K3ListView::disableAutoSelection ( )
protected

Disable AutoSelection.

This overrides the system wide setting for AutoSelection. Please don't call this unless you have good reasons to override the system wide setting for AutoSelection.

See also
resetAutoSelection()

Definition at line 2130 of file k3listview.cpp.

void K3ListView::doneEditing ( Q3ListViewItem *  item,
int  row 
)
protectedslot

Definition at line 1403 of file k3listview.cpp.

void K3ListView::doubleClicked ( Q3ListViewItem *  item,
const QPoint &  pos,
int  c 
)
protected
Deprecated:
This is just here for binary compatibility. Use the signal in Q3ListView instead.

Definition at line 2149 of file k3listview.cpp.

bool K3ListView::dragEnabled ( ) const
Returns
whether dragging is enabled. False by default.
See also
setDragEnabled()
Q3DragObject * K3ListView::dragObject ( )
protectedvirtual
Returns
a dragobject encoding the current selection.
See also
setDragEnabled()

Reimplemented from Q3ListView.

Reimplemented in K3FileTreeView.

Definition at line 1155 of file k3listview.cpp.

QRect K3ListView::drawDropVisualizer ( QPainter *  p,
Q3ListViewItem *  parent,
Q3ListViewItem *  after 
)
protectedvirtual

Paint the drag line.

If painter is null, don't try to :)

If after == 0 then the marker should be drawn at the top.

Returns
the rectangle that you painted to.

Definition at line 1301 of file k3listview.cpp.

QRect K3ListView::drawItemHighlighter ( QPainter *  painter,
Q3ListViewItem *  item 
)
protectedvirtual

Paint the drag rectangle.

If painter is null, don't try to :)

Returns
the rectangle that you painted to.

Definition at line 1348 of file k3listview.cpp.

bool K3ListView::dropHighlighter ( ) const
Returns
true if drawing of the drop-highlighter has been enabled. False by default.
See also
setDropHighlighter()

Definition at line 1429 of file k3listview.cpp.

void K3ListView::dropped ( QDropEvent *  e,
Q3ListViewItem *  after 
)
signal

This signal gets emitted whenever something acceptable is dropped onto the listview.

Parameters
eis the drop event itself (it has already been accepted)
afteris the item after which the drop occurred (or 0L, if the drop was above all items)
See also
acceptDrop()
void K3ListView::dropped ( K3ListView *  list,
QDropEvent *  e,
Q3ListViewItem *  after 
)
signal

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).

Parameters
listis the listview
eis the drop event itself (it has already been accepted)
afteris the item after which the drop occurred (or 0L, if the drop was above all items
void K3ListView::dropped ( K3ListView *  list,
QDropEvent *  e,
Q3ListViewItem *  parent,
Q3ListViewItem *  after 
)
signal

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

Parameters
listis the listview
eis the drop event itself (it has already been accepted)
parentthe item that is to be the parent of the new item
afteris the item after which the drop occurred (or 0L, if the drop was above all items
void K3ListView::dropped ( QDropEvent *  e,
Q3ListViewItem *  parent,
Q3ListViewItem *  after 
)
signal

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

Parameters
eis the drop event itself (it has already been accepted)
parentthe item that is to be the parent of the new item
afteris the item after which the drop occurred (or 0L, if the drop was above all items
bool K3ListView::dropVisualizer ( ) const
Returns
true if drawing of the drop-visualizer has been enabled. True by default.
See also
setDropVisualizer()
int K3ListView::dropVisualizerWidth ( ) const

The dropVisualizerWidth defaults to 4.

See also
setDropVisualizerWidth()
Returns
the current width of the drop-visualizer.
void K3ListView::emitContextMenu ( Q3ListViewItem *  i,
const QPoint &  p,
int   
)
protectedslot

Emit the contextMenu signal.

This slot is for mouse actions.

Definition at line 1899 of file k3listview.cpp.

void K3ListView::emitContextMenu ( K3ListView *  ,
Q3ListViewItem *  i 
)
protectedslot

Emit the contextMenu signal.

This slot is for key presses.

Definition at line 1887 of file k3listview.cpp.

void K3ListView::emitExecute ( Q3ListViewItem *  item,
const QPoint &  pos,
int  c 
)
protected

Emit signal executed.

Definition at line 671 of file k3listview.cpp.

bool K3ListView::event ( QEvent *  e)
protectedvirtual

Reimplemented to reload the alternate background in palette changes.

Reimplemented from QFrame.

Definition at line 744 of file k3listview.cpp.

void K3ListView::executed ( Q3ListViewItem *  item)
signal

This signal is emitted whenever the user executes an listview item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters
itemis the pointer to the executed listview item.

Note that you may not delete any Q3ListViewItem objects in slots connected to this signal.

void K3ListView::executed ( Q3ListViewItem *  item,
const QPoint &  pos,
int  c 
)
signal

This signal is emitted whenever the user executes an listview item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters
itemis the pointer to the executed listview item.
posis the position where the user has clicked
cis the column into which the user clicked.

Note that you may not delete any Q3ListViewItem objects in slots connected to this signal.

void K3ListView::fileManagerKeyPressEvent ( QKeyEvent *  e)
protected

A special keyPressEvent (for FileManager selection mode).

Definition at line 1494 of file k3listview.cpp.

void K3ListView::findDrop ( const QPoint &  pos,
Q3ListViewItem *&  parent,
Q3ListViewItem *&  after 
)
protectedvirtual

Where is the nearest Q3ListViewItem that I'm going to drop?

FIXME KDE 4.0: Make this method const so it can be called from an acceptDrag method without ugly casts

Definition at line 1050 of file k3listview.cpp.

void K3ListView::focusInEvent ( QFocusEvent *  fe)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 699 of file k3listview.cpp.

void K3ListView::focusOutEvent ( QFocusEvent *  fe)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 715 of file k3listview.cpp.

bool K3ListView::fullWidth ( ) const

Returns whether the last column is set to fit the available width.

See also
setFullWidth()
bool K3ListView::isExecuteArea ( const QPoint &  point)
virtual

This function determines whether the given coordinates are within the execute area.

The execute area is the part of a Q3ListViewItem where mouse clicks or double clicks respectively generate a executed() signal. Depending on Q3ListView::allColumnsShowFocus() this is either the whole item or only the first column.

Returns
true if point is inside execute area of an item, false in all other cases including the case that it is over the viewport.

Definition at line 467 of file k3listview.cpp.

bool K3ListView::isExecuteArea ( int  x)

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 477 of file k3listview.cpp.

bool K3ListView::isRenameable ( int  column) const
Returns
true if column is renamable.
See also
setRenameable()

Definition at line 1389 of file k3listview.cpp.

void K3ListView::itemAdded ( Q3ListViewItem *  item)
signal
Q3ListViewItem * K3ListView::itemAtIndex ( int  index)

Returns the item of index within the item tree or 0 if index doesn't exist in this list view.

This function takes all items into account not only the visible ones.

Definition at line 1871 of file k3listview.cpp.

int K3ListView::itemIndex ( const Q3ListViewItem *  item) const

Returns the index of item within the item tree or -1 if item doesn't exist in this list view.

This function takes all items into account not only the visible ones.

Definition at line 1852 of file k3listview.cpp.

void K3ListView::itemRemoved ( Q3ListViewItem *  item)
signal
void K3ListView::itemRenamed ( Q3ListViewItem *  item,
const QString &  str,
int  col 
)
signal

This signal gets emitted when an item is renamed via in-place renaming.

Parameters
itemis the renamed item.
stris the new value of column col.
colis the renamed column.
void K3ListView::itemRenamed ( Q3ListViewItem *  item)
signal

Same as above, but without the extra information.

bool K3ListView::itemsMovable ( ) const
Returns
if it is legal to move items in the list view. True by default.
See also
setDragEnabled()
setItemsMovable()
bool K3ListView::itemsRenameable ( ) const
Returns
whether inplace-renaming has been enabled. False by default.
See also
setItemsRenameable()
void K3ListView::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ListView.

Definition at line 1464 of file k3listview.cpp.

Q3ListViewItem * K3ListView::lastChild ( ) const
Returns
the last child of this listview.
See also
lastItem()

Definition at line 1119 of file k3listview.cpp.

Q3ListViewItem * K3ListView::lastItem ( ) const
Returns
the last item (not child!) of this listview.
See also
lastChild()

Definition at line 1129 of file k3listview.cpp.

void K3ListView::leaveEvent ( QEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from QWidget.

Definition at line 737 of file k3listview.cpp.

void K3ListView::menuShortCutPressed ( K3ListView *  list,
Q3ListViewItem *  item 
)
signal

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 contextMenu (K3ListView*, Q3ListViewItem*, const QPoint&) to correctly handle showing context menus regardless of settings.

Parameters
listis this listview.
itemis the currentItem() at the time the key was pressed. May be 0L.
void K3ListView::movableDropEvent ( Q3ListViewItem *  parent,
Q3ListViewItem *  afterme 
)
protectedvirtual

Handle dropEvent when itemsMovable() is set to true.

Definition at line 926 of file k3listview.cpp.

void K3ListView::moved ( )
signal

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.

void K3ListView::moved ( Q3ListViewItem *  item,
Q3ListViewItem *  afterFirst,
Q3ListViewItem *  afterNow 
)
signal

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, afterFirst and afterNow will reflect what was true before the move. This differs from moved(), so be careful. All the items will have been moved before moved() is emitted, which is not true in this method. // FIXME

Parameters
itemthe item that was moved
afterFirstthe item that parameter item was in before the move, in the list
afterNowthe item it's currently after.
void K3ListView::moved ( Q3PtrList< Q3ListViewItem > &  items,
Q3PtrList< Q3ListViewItem > &  afterFirst,
Q3PtrList< Q3ListViewItem > &  afterNow 
)
signal

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 items associates with the first of afterFirst and afterNow.

void K3ListView::moveItem ( Q3ListViewItem *  item,
Q3ListViewItem *  parent,
Q3ListViewItem *  after 
)

Arbitrarily move item to parent, positioned immediately after item after.

If after is 0, item is made the first child of parent.

(Un-deprecated in kde-3.4)

Definition at line 1252 of file k3listview.cpp.

void K3ListView::removeColumn ( int  index)
virtual

Reimplemented for full width support.

See also
addColumn()

Reimplemented from Q3ListView.

Definition at line 1982 of file k3listview.cpp.

void K3ListView::rename ( Q3ListViewItem *  item,
int  c 
)
virtualslot

Rename column c of item.

Definition at line 1380 of file k3listview.cpp.

KLineEdit * K3ListView::renameLineEdit ( ) const
Returns
the lineedit used for inline renaming. Use that to setup a KCompletion or QValidator for the lineedit

Definition at line 1139 of file k3listview.cpp.

void K3ListView::resetAutoSelection ( )
protected

Reset AutoSelection to the system wide setting.

See also
disableAutoSelection()

Definition at line 2140 of file k3listview.cpp.

void K3ListView::restoreLayout ( KConfig *  config,
const QString &  group 
)

Reads the list view's layout from a KConfig group as stored with saveLayout.

Parameters
configthe KConfig object to read from
groupthe config group to use

Definition at line 2039 of file k3listview.cpp.

void K3ListView::restoreLayout ( KConfigGroup &  cg)

Definition at line 2045 of file k3listview.cpp.

void K3ListView::saveLayout ( KConfig *  config,
const QString &  group 
) const

Saves the list view's layout (column widtsh, column order, sort column) to a KConfig group.

Parameters
configthe KConfig object to write to
groupthe config group to use

Definition at line 2016 of file k3listview.cpp.

void K3ListView::saveLayout ( KConfigGroup &  cg) const

Definition at line 2022 of file k3listview.cpp.

QList< Q3ListViewItem * > K3ListView::selectedItems ( bool  includeHiddenItems = true) const
Returns
a list containing the currently selected items.
Parameters
includeHiddenItemsSet to true to return all items regardless of visibility. Set to false to only return items that are isVisible().
Returns
a list of all selected listview items

Definition at line 1215 of file k3listview.cpp.

K3ListView::SelectionModeExt K3ListView::selectionModeExt ( ) const
Returns
the "extended" selection mode of this listview.
See also
SelectionModeExt
setSelectionModeExt

Definition at line 1847 of file k3listview.cpp.

void K3ListView::setAcceptDrops ( bool  val)
virtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Definition at line 1904 of file k3listview.cpp.

void K3ListView::setAlternateBackground ( const QColor &  c)

sets the alternate background background color.

This only has an effect if the items are K3ListViewItems

Parameters
cthe color to use for every other item. Set to an invalid color to disable alternate colors.
See also
alternateBackground()

Definition at line 1998 of file k3listview.cpp.

void K3ListView::setAutoOpen ( bool  b)
virtualslot

Enable/Disable AutoOpen (not implemented currently).

Definition at line 1195 of file k3listview.cpp.

void K3ListView::setDragEnabled ( bool  b)
virtualslot

Enable/Disable the dragging of items.

It is disabled by default.

Definition at line 1185 of file k3listview.cpp.

void K3ListView::setDropHighlighter ( bool  b)
virtualslot

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 1424 of file k3listview.cpp.

void K3ListView::setDropVisualizer ( bool  b)
virtualslot

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 1210 of file k3listview.cpp.

void K3ListView::setDropVisualizerWidth ( int  w)
slot

Set the width of the (default) drop-visualizer.

If you don't call this method, the width is set to 4.

Definition at line 1296 of file k3listview.cpp.

void K3ListView::setFullWidth ( )
Deprecated:
See also
setFullWidth()

Definition at line 1946 of file k3listview.cpp.

void K3ListView::setFullWidth ( bool  fullWidth)

Let the last column fit exactly all the available width.

See also
fullWidth()

Definition at line 1951 of file k3listview.cpp.

void K3ListView::setItemsMovable ( bool  b)
virtualslot

Set whether items in the list view can be moved.

It is enabled by default.

See also
itemsMovable()

Definition at line 1164 of file k3listview.cpp.

void K3ListView::setItemsRenameable ( bool  b)
virtualslot

Enables inplace-renaming of items.

It is disabled by default.

See also
itemsRenameable()
setRenameable()

Definition at line 1174 of file k3listview.cpp.

void K3ListView::setRenameable ( int  column,
bool  yesno = true 
)
slot

By default, if you called setItemsRenameable(true), only the first column is renameable.

Use this function to enable the feature on other columns.

If you want more intelligent (dynamic) selection, you'll have to derive from K3ListView, and override rename() and call only call it if you want the item to be renamed.

Definition at line 1394 of file k3listview.cpp.

void K3ListView::setSelectionModeExt ( SelectionModeExt  mode)
slot

Set the selection mode.

A different name was chosen to avoid API-clashes with Q3ListView::setSelectionMode().

Definition at line 1824 of file k3listview.cpp.

void K3ListView::setShadeSortColumn ( bool  shadeSortColumn)

Set to true if the currently sorted column should be drawn shaded.

Defaults to true

Parameters
shadeSortColumnTrue if sort column should be shaded.

Definition at line 2004 of file k3listview.cpp.

void K3ListView::setSorting ( int  column,
bool  ascending = true 
)
virtual

Reimplemented to remember the current sort column and order.

Parameters
columnis the column to be sorted, or -1 to sort in order of insertion
ascendingwhether to sort ascending (or descending)

Reimplemented from Q3ListView.

Definition at line 2079 of file k3listview.cpp.

void K3ListView::setTabOrderedRenaming ( bool  b)
slot

Enable/disable tabbing between editable cells.

Definition at line 1444 of file k3listview.cpp.

void K3ListView::setTooltipColumn ( int  column)
virtualslot

Set which column should be used for automatic tooltips.

Parameters
columnis the column for which tooltips will be shown. Set -1 to disable this feature.

Definition at line 1419 of file k3listview.cpp.

bool K3ListView::shadeSortColumn ( void  ) const

See if the sort column should be drawn shaded.

Returns
true if the sort column should be shaded
bool K3ListView::showTooltip ( Q3ListViewItem *  item,
const QPoint &  pos,
int  column 
) const
protectedvirtual
Returns
whether the tooltip for column of item shall be shown at point pos.

Definition at line 1434 of file k3listview.cpp.

void K3ListView::slotAutoSelect ( )
protectedslot

Process AutoSelection.

Definition at line 582 of file k3listview.cpp.

void K3ListView::slotDragExpand ( )
protectedslot

Definition at line 1022 of file k3listview.cpp.

void K3ListView::slotHeaderChanged ( )
protectedslot

Reacts to header changes in full width mode.

Definition at line 658 of file k3listview.cpp.

void K3ListView::slotMouseButtonClicked ( int  btn,
Q3ListViewItem *  item,
const QPoint &  pos,
int  c 
)
protectedslot

Definition at line 894 of file k3listview.cpp.

void K3ListView::slotOnItem ( Q3ListViewItem *  item)
protectedslot

Accessory slot for AutoSelect.

Definition at line 516 of file k3listview.cpp.

void K3ListView::slotOnViewport ( )
protectedslot

Accessory slot for AutoSelect/ChangeCursorOverItem.

Definition at line 525 of file k3listview.cpp.

void K3ListView::slotSettingsChanged ( int  category)
protectedslot

Update internal settings whenever the global ones change.

Definition at line 534 of file k3listview.cpp.

void K3ListView::startDrag ( )
protectedvirtual

This method calls dragObject() and starts the drag.

Reimplement it to do fancy stuff like setting a pixmap or using a non-default DragMode

Reimplemented from Q3ListView.

Definition at line 1144 of file k3listview.cpp.

bool K3ListView::tabOrderedRenaming ( ) const
slot

Returns whether tab ordered renaming is enabled.

Definition at line 1449 of file k3listview.cpp.

void K3ListView::takeItem ( Q3ListViewItem *  i)
virtual

Reimplemented for internal reasons.

Reimplemented from Q3ListView.

Definition at line 2122 of file k3listview.cpp.

QString K3ListView::tooltip ( Q3ListViewItem *  item,
int  column 
) const
protectedvirtual
Returns
the tooltip for column of item.

Definition at line 1439 of file k3listview.cpp.

int K3ListView::tooltipColumn ( ) const
Returns
the column for which tooltips are displayed (or -1 if none set).
See also
setTooltipColumn()
void K3ListView::viewportPaintEvent ( QPaintEvent *  e)
protectedvirtual

Reimplemented for internal reasons.

Further reimplementations should call this function or else some features may not work correctly.

The API is unaffected.

Reimplemented from Q3ScrollView.

Definition at line 1916 of file k3listview.cpp.

void K3ListView::viewportResizeEvent ( QResizeEvent *  e)
protectedvirtual

Reimplemented for setFullWidth()

Reimplemented from Q3ListView.

Definition at line 1988 of file k3listview.cpp.

Property Documentation

const QColor & K3ListView::alternateBackground
readwrite

Definition at line 71 of file k3listview.h.

bool K3ListView::autoOpen
readwrite

Definition at line 67 of file k3listview.h.

bool K3ListView::dragEnabled
readwrite

Definition at line 66 of file k3listview.h.

bool K3ListView::dropVisualizer
readwrite

Definition at line 68 of file k3listview.h.

int K3ListView::dropVisualizerWidth
readwrite

Definition at line 70 of file k3listview.h.

bool K3ListView::fullWidth
readwrite

Definition at line 63 of file k3listview.h.

bool K3ListView::itemsMovable
readwrite

Definition at line 64 of file k3listview.h.

bool K3ListView::itemsRenameable
readwrite

Definition at line 65 of file k3listview.h.

bool K3ListView::shadeSortColumn
readwrite

Definition at line 72 of file k3listview.h.

int K3ListView::tooltipColumn
readwrite

Definition at line 69 of file k3listview.h.


The documentation for this class was generated from the following files:
  • k3listview.h
  • k3listview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal