• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • kabc
addresslineedit.h
1/*
2 This file is part of libkabc.
3 Copyright (c) 2002 Helge Deller <deller@gmx.de>
4 2002 Lubos Lunak <llunak@suse.cz>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public 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
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KABC_ADDRESSLINEEDIT_H
23#define KABC_ADDRESSLINEEDIT_H
24
25#include "kabc_export.h"
26#include <kcompletion.h>
27#include <klineedit.h>
28#include <QtCore/QObject>
29
30namespace KABC {
31
43class KABC_DEPRECATED_EXPORT AddressLineEdit : public KLineEdit
44{
45 Q_OBJECT
46
47 public:
55 explicit AddressLineEdit( QWidget *parent, bool useCompletion = true );
56
60 virtual ~AddressLineEdit();
61
67 virtual void setFont( const QFont &font );
68
69 public Q_SLOTS:
73 void cursorAtEnd();
74
81 void enableCompletion( bool enable );
82
83 protected:
88 virtual void loadAddresses();
89
99 void addAddress( const QString &addr );
100
109 virtual void keyPressEvent( QKeyEvent *e );
110
123 virtual void dropEvent( QDropEvent *e );
124
133 virtual void paste();
134
144 virtual void insert( const QString &addr );
145
156 virtual void mouseReleaseEvent( QMouseEvent *e );
157
162 void doCompletion( bool );
163
164 private:
165 class Private;
166 Private *const d;
167
168 Q_PRIVATE_SLOT( d, void slotCompletion() )
169 Q_PRIVATE_SLOT( d, void slotPopupCompletion( const QString &completion ) )
170};
171
172}
173
174#endif
KABC::AddressLineEdit
A lineedit with kabc completion.
Definition: addresslineedit.h:44
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition: address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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