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

messagelist

  • sources
  • kde-4.14
  • kdepim
  • messagelist
  • core
delegate.cpp
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright 2008 Szymon Tomasz Stefanek <pragma@kvirc.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  *******************************************************************************/
20 
21 #include "core/delegate.h"
22 #include "core/groupheaderitem.h"
23 #include "core/messageitem.h"
24 #include "core/view.h"
25 
26 using namespace MessageList::Core;
27 
28 Delegate::Delegate( View *pParent )
29  : ThemeDelegate( pParent )
30 {
31 }
32 
33 Delegate::~Delegate()
34 {
35 }
36 
37 Item * Delegate::itemFromIndex( const QModelIndex &index ) const
38 {
39  return static_cast< Item * >( index.internalPointer() );
40 }
41 
QModelIndex
delegate.h
MessageList::Core::Delegate::~Delegate
~Delegate()
Definition: delegate.cpp:33
MessageList::Core::View
The MessageList::View is the real display of the message list.
Definition: view.h:65
messageitem.h
view.h
QModelIndex::internalPointer
void * internalPointer() const
MessageList::Core::Delegate::itemFromIndex
virtual Item * itemFromIndex(const QModelIndex &index) const
Returns the Item for the specified model index.
Definition: delegate.cpp:37
groupheaderitem.h
MessageList::Core::Item
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:52
MessageList::Core::Delegate::Delegate
Delegate(View *pParent)
Definition: delegate.cpp:28
MessageList::Core::ThemeDelegate
The ThemeDelegate paints the message list view message and group items by using the supplied Theme...
Definition: themedelegate.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

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