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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • configuredialog
configagentdelegate.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Casey Link <unnamedrambler@gmail.com>
3  Copyright (c) 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4  Copyright (c) 2006-2008 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 CONFIGAGENTDELEGATE_H
23 #define CONFIGAGENTDELEGATE_H
24 
25 #include <QStyledItemDelegate>
26 
27 class QTextDocument;
28 
35 class ConfigAgentDelegate : public QStyledItemDelegate
36 {
37  Q_OBJECT
38 public:
39  explicit ConfigAgentDelegate ( QObject *parent = 0 );
40 
41  void paint ( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
42  QSize sizeHint ( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
43  bool editorEvent ( QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index );
44  QWidget *createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
45 
46 signals:
47  void optionsClicked ( const QString &, const QPoint & );
48 
49 private:
50  void drawFocus ( QPainter*, const QStyleOptionViewItem&, const QRect& ) const;
51  QTextDocument* document ( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
52 
53  QStyleOptionButton buttonOption ( const QStyleOptionViewItem &option ) const;
54 };
55 
56 #endif // CONFIGAGENTDELEGATE_H
QModelIndex
QEvent
QWidget
ConfigAgentDelegate::sizeHint
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: configagentdelegate.cpp:158
ConfigAgentDelegate::createEditor
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: configagentdelegate.cpp:166
QPoint
QStyleOptionButton
ConfigAgentDelegate
A delegate for listing the accounts in the account list with kmail specific options.
Definition: configagentdelegate.h:35
QObject::event
virtual bool event(QEvent *e)
QRect
ConfigAgentDelegate::editorEvent
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition: configagentdelegate.cpp:171
ConfigAgentDelegate::paint
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: configagentdelegate.cpp:121
ConfigAgentDelegate::ConfigAgentDelegate
ConfigAgentDelegate(QObject *parent=0)
Definition: configagentdelegate.cpp:57
QStyleOptionViewItem
QObject
QPainter
QString
ConfigAgentDelegate::optionsClicked
void optionsClicked(const QString &, const QPoint &)
QSize
QTextDocument
QAbstractItemModel
QObject::parent
QObject * parent() const
QStyledItemDelegate
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • 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