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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdeui
k3listbox.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Reginald Stadlbauer <reggie@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef K3LISTBOX_H
19 #define K3LISTBOX_H
20 
21 #include <kde3support_export.h>
22 #include <Qt3Support/Q3ListBox>
23 
39 class KDE3SUPPORT_EXPORT K3ListBox : public Q3ListBox
40 {
41  Q_OBJECT
42 
43 public:
44  explicit K3ListBox( QWidget *parent = 0, const char *name = 0, Qt::WindowFlags f = 0 );
45 
46 Q_SIGNALS:
47 
58  void executed( Q3ListBoxItem *item );
59 
71  void executed( Q3ListBoxItem *item, const QPoint &pos );
72 
87  void doubleClicked( Q3ListBoxItem *item, const QPoint &pos );
88 
89 protected Q_SLOTS:
90  void slotOnItem( Q3ListBoxItem *item );
91  void slotOnViewport();
92 
93  void slotSettingsChanged(int);
94 
98  void slotAutoSelect();
99 
100 protected:
101  void emitExecute( Q3ListBoxItem *item, const QPoint &pos );
102 
103  virtual void keyPressEvent(QKeyEvent *e);
104  virtual void focusOutEvent( QFocusEvent *fe );
105  virtual void leaveEvent( QEvent *e );
106  virtual void contentsMousePressEvent( QMouseEvent *e );
107  virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e );
108 
109  bool m_bUseSingle;
110  bool m_bChangeCursorOverItem;
111 
112  Q3ListBoxItem* m_pCurrentItem;
113 
114  QTimer* m_pAutoSelect;
115  int m_autoSelectDelay;
116 
117 private Q_SLOTS:
118  void slotMouseButtonClicked( int btn, Q3ListBoxItem *item, const QPoint &pos );
119 
120 private:
121  class K3ListBoxPrivate;
122  K3ListBoxPrivate* const d;
123 };
124 
125 #endif
K3ListBox
A variant of QListBox that honors KDE's system-wide settings.
Definition: k3listbox.h:39
Q3ListBox::doubleClicked
void doubleClicked(Q3ListBoxItem *item)
Q3ListBoxItem
QEvent
QWidget
Q3ListBox::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
K3ListBox::m_autoSelectDelay
int m_autoSelectDelay
Definition: k3listbox.h:115
name
const char * name(StandardAction id)
QPoint
QMouseEvent
Q3ListBox
QTimer
kde3support_export.h
Q3ListBox::focusOutEvent
virtual void focusOutEvent(QFocusEvent *e)
Q3ScrollView::contentsMousePressEvent
virtual void contentsMousePressEvent(QMouseEvent *e)
K3ListBox::m_bChangeCursorOverItem
bool m_bChangeCursorOverItem
Definition: k3listbox.h:110
QKeyEvent
Q3ScrollView::contentsMouseDoubleClickEvent
virtual void contentsMouseDoubleClickEvent(QMouseEvent *e)
K3ListBox::m_pCurrentItem
Q3ListBoxItem * m_pCurrentItem
Definition: k3listbox.h:112
Qt::WindowFlags
typedef WindowFlags
K3ListBox::m_pAutoSelect
QTimer * m_pAutoSelect
Definition: k3listbox.h:114
QWidget::leaveEvent
virtual void leaveEvent(QEvent *event)
K3ListBox::m_bUseSingle
bool m_bUseSingle
Definition: k3listbox.h:109
QFocusEvent
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 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