Classified ads
Main Page
Classes
Files
File List
File Members
ui
profilecommentitemdelegate.h
Go to the documentation of this file.
1
/* -*-C++-*- -*-coding: utf-8-unix;-*-
2
Classified Ads is Copyright (c) Antti Järvinen 2013.
3
4
This file is part of Classified Ads.
5
6
Classified Ads is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
Classified Ads 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
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef PROFILECOMMENTITEM_DELEGATE_H
21
#define PROFILECOMMENTITEM_DELEGATE_H
22
23
#include <QStyledItemDelegate>
24
25
class
ProfileCommentListingModel
;
26
30
class
ProfileCommentItemDelegate
:
public
QStyledItemDelegate
31
{
32
public
:
36
ProfileCommentItemDelegate
(
ProfileCommentListingModel
& aListingModel) ;
38
~ProfileCommentItemDelegate
() ;
39
protected
:
43
void
paint
( QPainter * painter,
const
QStyleOptionViewItem & option,
const
QModelIndex & index )
const
;
47
QSize
sizeHint
(
const
QStyleOptionViewItem & option,
const
QModelIndex & index )
const
;
48
private
:
49
ProfileCommentListingModel
&
iListingModel
;
50
};
51
52
53
#endif
/* PROFILECOMMENTITEM_DELEGATE_H */
ProfileCommentItemDelegate::sizeHint
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
ProfileCommentItemDelegate::iListingModel
ProfileCommentListingModel & iListingModel
Definition:
profilecommentitemdelegate.h:49
ProfileCommentItemDelegate::paint
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
ProfileCommentItemDelegate
class for displaying single profile comment in a list view
Definition:
profilecommentitemdelegate.h:30
ProfileCommentItemDelegate::ProfileCommentItemDelegate
ProfileCommentItemDelegate(ProfileCommentListingModel &aListingModel)
ProfileCommentListingModel
Model-class for performing search on comments about a profile. This is supposed to act as an underlyi...
Definition:
profilecommentlistingmodel.h:35
ProfileCommentItemDelegate::~ProfileCommentItemDelegate
~ProfileCommentItemDelegate()
Generated on Mon Jan 5 2015 23:02:08 for Classified ads by
1.8.8