summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/UserSearch/UserSearchDelegate.h')
-rw-r--r--Swift/QtUI/UserSearch/UserSearchDelegate.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Swift/QtUI/UserSearch/UserSearchDelegate.h b/Swift/QtUI/UserSearch/UserSearchDelegate.h
index d046d62..69848a8 100644
--- a/Swift/QtUI/UserSearch/UserSearchDelegate.h
+++ b/Swift/QtUI/UserSearch/UserSearchDelegate.h
@@ -7,14 +7,20 @@
#pragma once
#include <QStyledItemDelegate>
+#include <QPainter>
+#include <QStyleOptionViewItem>
-#include "Swift/QtUI/Roster/DelegateCommons.h"
+#include <Swift/QtUI/Roster/DelegateCommons.h>
namespace Swift {
class UserSearchDelegate : public QStyledItemDelegate {
public:
UserSearchDelegate();
~UserSearchDelegate();
+ void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
+ QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index ) const;
+ private:
+ DelegateCommons common_;
};
}