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

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
quicksearchwidget.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3 
4  Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef QUICKSEARCHWIDGET_H
23 #define QUICKSEARCHWIDGET_H
24 
25 #include <QWidget>
26 
27 class KLineEdit;
28 
39 class QuickSearchWidget : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
49  explicit QuickSearchWidget( QWidget *parent = 0 );
50 
54  virtual ~QuickSearchWidget();
55 
59  virtual QSize sizeHint() const;
60 
61  void updateQuickSearchText(const QString &text);
62 
63 public slots:
64  void slotFocusQuickSearch();
65 
66 Q_SIGNALS:
73  void filterStringChanged( const QString &filterString );
74 
81  void arrowDownKeyPressed();
82 
83 private Q_SLOTS:
84  void resetTimer();
85  void delayedTextChanged();
86 
87 protected:
88  void keyPressEvent( QKeyEvent * );
89 
90 private:
91  KLineEdit *mEdit;
92  QTimer *mTimer;
93 };
94 
95 #endif
QWidget
QuickSearchWidget::slotFocusQuickSearch
void slotFocusQuickSearch()
Definition: quicksearchwidget.cpp:67
QuickSearchWidget::sizeHint
virtual QSize sizeHint() const
Returns the size hint of the quick search widget.
Definition: quicksearchwidget.cpp:61
QuickSearchWidget::filterStringChanged
void filterStringChanged(const QString &filterString)
This signal is emitted whenever the user has changed the filter string in the line edit...
QuickSearchWidget::~QuickSearchWidget
virtual ~QuickSearchWidget()
Destroys the quick search widget.
Definition: quicksearchwidget.cpp:57
QTimer
QString
QuickSearchWidget::arrowDownKeyPressed
void arrowDownKeyPressed()
This signal is emitted whenever the user pressed the arrow down key.
QSize
QKeyEvent
QuickSearchWidget::updateQuickSearchText
void updateQuickSearchText(const QString &text)
Definition: quicksearchwidget.cpp:96
QuickSearchWidget::QuickSearchWidget
QuickSearchWidget(QWidget *parent=0)
Creates the quick search widget.
Definition: quicksearchwidget.cpp:31
QuickSearchWidget
The quick search widget from the toolbar.
Definition: quicksearchwidget.h:39
QObject::parent
QObject * parent() const
QuickSearchWidget::keyPressEvent
void keyPressEvent(QKeyEvent *)
Definition: quicksearchwidget.cpp:84
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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