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

KDE3Support

  • 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
39class KDE3SUPPORT_EXPORT K3ListBox : public Q3ListBox
40{
41 Q_OBJECT
42
43public:
44 explicit K3ListBox( QWidget *parent = 0, const char *name = 0, Qt::WindowFlags f = 0 );
45
46Q_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
89protected Q_SLOTS:
90 void slotOnItem( Q3ListBoxItem *item );
91 void slotOnViewport();
92
93 void slotSettingsChanged(int);
94
98 void slotAutoSelect();
99
100protected:
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
117private Q_SLOTS:
118 void slotMouseButtonClicked( int btn, Q3ListBoxItem *item, const QPoint &pos );
119
120private:
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:40
K3ListBox::executed
void executed(Q3ListBoxItem *item)
Emitted whenever the user executes an listbox item.
K3ListBox::m_bUseSingle
bool m_bUseSingle
Definition: k3listbox.h:109
K3ListBox::doubleClicked
void doubleClicked(Q3ListBoxItem *item, const QPoint &pos)
This signal gets emitted whenever the user double clicks into the listbox.
K3ListBox::m_bChangeCursorOverItem
bool m_bChangeCursorOverItem
Definition: k3listbox.h:110
K3ListBox::m_autoSelectDelay
int m_autoSelectDelay
Definition: k3listbox.h:115
K3ListBox::m_pCurrentItem
Q3ListBoxItem * m_pCurrentItem
Definition: k3listbox.h:112
K3ListBox::executed
void executed(Q3ListBoxItem *item, const QPoint &pos)
Emitted whenever the user executes an listbox item.
K3ListBox::m_pAutoSelect
QTimer * m_pAutoSelect
Definition: k3listbox.h:114
Q3ListBox
QEvent
QWidget
kde3support_export.h
name
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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