KDEUI
klistwidget.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 Reginald Stadlbauer <reggie@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef KLISTWIDGET_H 00019 #define KLISTWIDGET_H 00020 00021 #include <kdeui_export.h> 00022 00023 #include <QtGui/QListWidget> 00024 00040 class KDEUI_EXPORT KListWidget : public QListWidget 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 explicit KListWidget( QWidget *parent = 0 ); 00046 00047 ~KListWidget(); 00048 00049 Q_SIGNALS: 00050 00061 void executed( QListWidgetItem *item ); 00062 00074 void executed( QListWidgetItem *item, const QPoint &pos ); 00075 00090 void doubleClicked( QListWidgetItem *item, const QPoint &pos ); 00091 00092 protected: 00093 virtual void keyPressEvent(QKeyEvent *e); 00094 virtual void focusOutEvent(QFocusEvent *e); 00095 virtual void leaveEvent(QEvent *e); 00096 virtual void mousePressEvent(QMouseEvent *e); 00097 virtual void mouseDoubleClickEvent (QMouseEvent *e); 00098 00099 private: 00100 class KListWidgetPrivate; 00101 KListWidgetPrivate* const d; 00102 00103 Q_PRIVATE_SLOT(d, void _k_slotItemEntered(QListWidgetItem*)) 00104 Q_PRIVATE_SLOT(d, void _k_slotOnViewport()) 00105 Q_PRIVATE_SLOT(d, void _k_slotSettingsChanged(int)) 00106 Q_PRIVATE_SLOT(d, void _k_slotAutoSelect()) 00107 }; 00108 00109 #endif // KLISTWIDGET_H
KDE 4.6 API Reference