Classified ads
callbuttondelegate.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2015.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (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 GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef CALLBUTTON_DELEGATE_H
22 #define CALLBUTTON_DELEGATE_H
23 
24 #include <QItemDelegate>
25 #include <QApplication>
26 #include <QMouseEvent>
27 #include <QDialog>
28 
29 class VoiceCallEngine ;
30 
34 class CallButtonDelegate : public QItemDelegate {
35  Q_OBJECT
36 
37 public:
44  QObject* aParent = NULL ) ;
47 public:
51  void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
52  bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
53 private:
55 };
56 
57 
58 #endif
class for displaying button inside table view
Definition: callbuttondelegate.h:34
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
VoiceCallEngine & iCallEngine
Definition: callbuttondelegate.h:54
CallButtonDelegate(VoiceCallEngine &aCallEngine, QObject *aParent=NULL)
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Network-related logic for handling voice channel between nodes.
Definition: voicecallengine.h:53