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

KDEUI

Signals | Public Member Functions | Protected Member Functions | List of all members
KListWidget Class Reference

#include <klistwidget.h>

Inheritance diagram for KListWidget:
Inheritance graph
[legend]

Signals

void doubleClicked (QListWidgetItem *item, const QPoint &pos)
 
void executed (QListWidgetItem *item)
 
void executed (QListWidgetItem *item, const QPoint &pos)
 

Public Member Functions

 KListWidget (QWidget *parent=0)
 
 ~KListWidget ()
 

Protected Member Functions

virtual void focusOutEvent (QFocusEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void leaveEvent (QEvent *e)
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 

Detailed Description

A variant of QListWidget that honors KDE's system-wide settings.

Extends the functionality of QListWidget to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link.

There is a new signal executed(). It gets connected to either QListWidget::itemClicked() or QListWidget::itemDoubleClicked() 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 QListWidget::itemSelectionChanged() signal.

Definition at line 40 of file klistwidget.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file klistwidget.cpp.

KListWidget::~KListWidget ( )

Definition at line 69 of file klistwidget.cpp.

Member Function Documentation

void KListWidget::doubleClicked ( QListWidgetItem *  item,
const QPoint &  pos 
)
signal

This signal gets emitted whenever the user double clicks into the listbox.

Parameters
itemThe pointer to the clicked listbox item.
posThe position where the user has clicked.

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

This signal is more or less here for the sake of completeness. You should normally not need to use this. In most cases it's better to use executed() instead.

void KListWidget::executed ( QListWidgetItem *  item)
signal

Emitted whenever the user executes an listbox 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 listbox item.

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

void KListWidget::executed ( QListWidgetItem *  item,
const QPoint &  pos 
)
signal

Emitted whenever the user executes an listbox 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 listbox item.
posis the position where the user has clicked

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

void KListWidget::focusOutEvent ( QFocusEvent *  e)
protectedvirtual

Definition at line 232 of file klistwidget.cpp.

void KListWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 216 of file klistwidget.cpp.

void KListWidget::leaveEvent ( QEvent *  e)
protectedvirtual

Definition at line 239 of file klistwidget.cpp.

void KListWidget::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 260 of file klistwidget.cpp.

void KListWidget::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 246 of file klistwidget.cpp.

void KListWidget::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 268 of file klistwidget.cpp.


The documentation for this class was generated from the following files:
  • klistwidget.h
  • klistwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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