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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
  • ui
kopetelistview.h
Go to the documentation of this file.
1 /*
2  kopetelistview.h - List View providing extra support for ListView::Items
3 
4  Copyright (c) 2005 by Engin AYDOGAN <engin@bzzzt.biz>
5  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
6 
7  Kopete (c) 2004 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #ifndef KOPETE_LISTVIEW_H
20 #define KOPETE_LISTVIEW_H
21 
22 #include <k3listview.h>
23 #include <kopete_export.h>
24 
25 class QKeyEvent;
26 class QTimerEvent;
27 class QEvent;
28 
29 namespace Kopete {
30 namespace UI {
31 namespace ListView {
32 
37 class KOPETE_EXPORT ListView : public K3ListView
38 {
39  Q_OBJECT
40 
41 public:
42  ListView( QWidget *parent = 0 );
43  ~ListView();
44 
51  void delayedSort();
52 
56  void setShowTreeLines( bool bShowAsTree );
57 
61  void setSmoothScrolling( bool );
62 
66  bool smoothScrolling() const;
67 
72  void setSmoothScrollingTimerInterval( double interval );
73 
77  double smoothScrollingTimerInterval() const;
78 
88  void setScrollAutoHide( bool b );
89 
93  bool scrollAutoHide() const;
94 
99  void setScrollAutoHideTimeout( int );
100 
104  int scrollAutoHideTimeout() const;
105 
112  void setScrollHide( bool b );
113 
117  bool scrollHide() const;
118 
125  void setMouseNavigation( bool b );
126 
130  bool mouseNavigation() const;
131 public slots:
135  void slotSort() { sort(); }
136 
137 protected:
138  virtual void keyPressEvent( QKeyEvent *e );
143  virtual void timerEvent( QTimerEvent *e );
144 
149  virtual bool eventFilter( QObject *o, QEvent *e );
150 
151 signals:
152  void visibleSizeChanged ();
153 
154 private slots:
155  void slotContextMenu(K3ListView*,Q3ListViewItem *item, const QPoint &point );
156  void slotDoubleClicked( Q3ListViewItem *item );
164  void slotCurrentChanged( Q3ListViewItem *item );
165 
166 private:
167  class Private;
168  Private * const d;
169 };
170 
171 } // END namespace ListView
172 } // END namespace UI
173 } // END namespace Kopete
174 
175 #endif
176 
177 // vim: set noet ts=4 sts=4 sw=4:
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QEvent
QWidget
Kopete::UI::ListView::ListView
Definition: kopetelistview.h:37
QPoint
Kopete::UI::ListView::ListView::slotSort
void slotSort()
Calls QListView::sort()
Definition: kopetelistview.h:135
QTimerEvent
Q3ListViewItem
QObject
kopete_export.h
K3ListView
QKeyEvent
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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