• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

collectionstatisticsdelegate.h

00001 /*
00002     Copyright (c) 2008 Thomas McGuire <thomas.mcguire@gmx.net>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 #ifndef AKONADI_COLLECTIONSTATISTICSDELEGATE_H
00020 #define AKONADI_COLLECTIONSTATISTICSDELEGATE_H
00021 
00022 #include "akonadi_export.h"
00023 
00024 #include <QtGui/QStyledItemDelegate>
00025 
00026 class QTreeView;
00027 
00028 namespace Akonadi {
00029 
00030 class CollectionStatisticsDelegatePrivate;
00031 
00059 class AKONADI_EXPORT CollectionStatisticsDelegate : public QStyledItemDelegate
00060 {
00061   Q_OBJECT
00062 
00063   public:
00064 
00070     explicit CollectionStatisticsDelegate( QTreeView *parent );
00071 
00075     ~CollectionStatisticsDelegate();
00076 
00077   public Q_SLOTS:
00087     void setUnreadCountShown( bool enable );
00088 
00092     bool unreadCountShown() const;
00093 
00094   protected:
00095     virtual void paint( QPainter *painter, const QStyleOptionViewItem &option,
00096                         const QModelIndex &index ) const;
00097 
00098     virtual void initStyleOption( QStyleOptionViewItem *option,
00099                                   const QModelIndex &index ) const;
00100 
00101   private:
00102     //@cond PRIVATE
00103     CollectionStatisticsDelegatePrivate* const d_ptr;
00104     //@endcond
00105 
00106     Q_DECLARE_PRIVATE( CollectionStatisticsDelegate )
00107 };
00108 
00109 }
00110 
00111 #endif

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal