summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/UserSearch/UserSearchDelegate.h')
-rw-r--r--Swift/QtUI/UserSearch/UserSearchDelegate.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Swift/QtUI/UserSearch/UserSearchDelegate.h b/Swift/QtUI/UserSearch/UserSearchDelegate.h
index 41c20dc..92fa0e8 100644
--- a/Swift/QtUI/UserSearch/UserSearchDelegate.h
+++ b/Swift/QtUI/UserSearch/UserSearchDelegate.h
@@ -1,24 +1,27 @@
1/* 1/*
2 * Copyright (c) 2010 Isode Limited. 2 * Copyright (c) 2010-2015 Isode Limited.
3 * All rights reserved. 3 * All rights reserved.
4 * See the COPYING file for more information. 4 * See the COPYING file for more information.
5 */ 5 */
6 6
7#pragma once 7#pragma once
8 8
9#include <QStyledItemDelegate>
10#include <QPainter> 9#include <QPainter>
11#include <QStyleOptionViewItem> 10#include <QStyleOptionViewItem>
11#include <QStyledItemDelegate>
12 12
13#include <Swift/QtUI/Roster/DelegateCommons.h> 13#include <Swift/QtUI/Roster/DelegateCommons.h>
14 14
15namespace Swift { 15namespace Swift {
16 class UserSearchDelegate : public QStyledItemDelegate { 16 class UserSearchDelegate : public QStyledItemDelegate {
17 Q_OBJECT
18
17 public: 19 public:
18 UserSearchDelegate(); 20 UserSearchDelegate(QObject* parent = 0);
19 ~UserSearchDelegate(); 21 virtual ~UserSearchDelegate();
22
20 void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; 23 void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
21 QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index ) const; 24 QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index ) const;
22 private: 25 private:
23 DelegateCommons common_; 26 DelegateCommons common_;
24 }; 27 };