• Skip to content
  • Skip to link menu
KDE 4.5 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 
00063 class AKONADI_EXPORT CollectionStatisticsDelegate : public QStyledItemDelegate
00064 {
00065   Q_OBJECT
00066 
00067   public:
00068 
00074     explicit CollectionStatisticsDelegate( QTreeView *parent );
00075 
00079     ~CollectionStatisticsDelegate();
00080 
00081   public Q_SLOTS:
00091     void setUnreadCountShown( bool enable );
00092 
00096     bool unreadCountShown() const;
00097 
00098     void setProgressAnimationEnabled( bool enable );
00099 
00100     bool progressAnimationEnabled() const;
00101 
00102   protected:
00103     virtual void paint( QPainter *painter, const QStyleOptionViewItem &option,
00104                         const QModelIndex &index ) const;
00105 
00106     virtual void initStyleOption( QStyleOptionViewItem *option,
00107                                   const QModelIndex &index ) const;
00108 
00109   private:
00110     //@cond PRIVATE
00111     CollectionStatisticsDelegatePrivate* const d_ptr;
00112     //@endcond
00113 
00114     Q_DECLARE_PRIVATE( CollectionStatisticsDelegate )
00115 };
00116 
00117 }
00118 
00119 #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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.1
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