klistbox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KLISTBOX_H
00019 #define KLISTBOX_H
00020
00021 #include <qlistbox.h>
00022
00038 class KListBox : public QListBox
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 KListBox( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
00044
00045 signals:
00046
00057 void executed( QListBoxItem *item );
00058
00070 void executed( QListBoxItem *item, const QPoint &pos );
00071
00086 void doubleClicked( QListBoxItem *item, const QPoint &pos );
00087
00088 protected slots:
00089 void slotOnItem( QListBoxItem *item );
00090 void slotOnViewport();
00091
00092 void slotSettingsChanged(int);
00093
00097 void slotAutoSelect();
00098
00099 protected:
00100 void emitExecute( QListBoxItem *item, const QPoint &pos );
00101
00105 virtual void keyPressEvent(QKeyEvent *e);
00109 virtual void focusOutEvent( QFocusEvent *fe );
00113 virtual void leaveEvent( QEvent *e );
00117 virtual void contentsMousePressEvent( QMouseEvent *e );
00121 virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e );
00122
00123 bool m_bUseSingle;
00124 bool m_bChangeCursorOverItem;
00125
00126 QListBoxItem* m_pCurrentItem;
00127
00128 QTimer* m_pAutoSelect;
00129 int m_autoSelectDelay;
00130
00131 private slots:
00132 void slotMouseButtonClicked( int btn, QListBoxItem *item, const QPoint &pos );
00133
00134 protected:
00135 virtual void virtual_hook( int id, void* data );
00136 private:
00137 class KListBoxPrivate;
00138 KListBoxPrivate *d;
00139 };
00140
00141 #endif
This file is part of the documentation for kdelibs Version 3.1.5.