[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:05:01 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=011cb1a
The following commit has been merged in the master branch:
commit 011cb1a910e0fc1cb41c8310b104d5fc664bd452
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Thu Feb 9 18:27:36 2012 +0100
Move delegate declaration in .cpp
---
KTp/Widgets/contact-grid-widget.cpp | 23 +++++++++++++++++++++++
KTp/Widgets/contact-grid-widget.h | 18 ------------------
2 files changed, 23 insertions(+), 18 deletions(-)
diff --git a/KTp/Widgets/contact-grid-widget.cpp b/KTp/Widgets/contact-grid-widget.cpp
index b0f4624..8aa2ab9 100644
--- a/KTp/Widgets/contact-grid-widget.cpp
+++ b/KTp/Widgets/contact-grid-widget.cpp
@@ -35,6 +35,28 @@
#include <KTp/Models/contact-model-item.h>
#include <KTp/Models/flat-model-proxy.h>
+namespace KTp {
+
+class ContactGridDelegate : public QAbstractItemDelegate
+{
+ Q_OBJECT
+ Q_DISABLE_COPY(ContactGridDelegate)
+
+public:
+ ContactGridDelegate(QObject *parent);
+ virtual ~ContactGridDelegate();
+
+ virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+ virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
+
+private:
+ class Private;
+ Private * const d;
+
+}; // class ContactGridDelegate
+
+} // namespace KTp
+
class KTp::ContactGridDelegate::Private
{
@@ -273,3 +295,4 @@ AccountsFilterModel* KTp::ContactGridWidget::filter() const
#include "contact-grid-widget.moc"
+#include "moc_contact-grid-widget.cpp"
diff --git a/KTp/Widgets/contact-grid-widget.h b/KTp/Widgets/contact-grid-widget.h
index 3add939..62291cd 100644
--- a/KTp/Widgets/contact-grid-widget.h
+++ b/KTp/Widgets/contact-grid-widget.h
@@ -31,24 +31,6 @@ class AccountsFilterModel;
namespace KTp
{
-class ContactGridDelegate : public QAbstractItemDelegate
-{
- Q_OBJECT
- Q_DISABLE_COPY(ContactGridDelegate)
-
-public:
- ContactGridDelegate(QObject *parent);
- virtual ~ContactGridDelegate();
-
- virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
- virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
-
-private:
- class Private;
- Private * const d;
-
-}; // class ContactGridDelegate
-
class KTP_EXPORT ContactGridWidget : public QWidget
{
Q_OBJECT
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list