1
/***************************************************************************
2
* Copyright (C) 2013 Savoir-Faire Linux *
3
* @author: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
5
* This library is free software; you can redistribute it and/or *
6
* modify it under the terms of the GNU Library General Public *
7
* License version 2 as published by the Free Software Foundation. *
9
* This library is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12
* Library General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
16
**************************************************************************/
20
#include "categorizedtreeview.h"
22
class ContactView : public CategorizedTreeView
26
explicit ContactView(QWidget* parent = nullptr);
27
virtual QRect visualRect(const QModelIndex& index) const;
30
virtual bool viewportEvent ( QEvent * event );
31
// virtual void drawRow( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
33
QRect phoneRect(const QModelIndex & index) const;