From 89e56629992980215e68deb56b00f7aa6ca1d769 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 13 Mar 2015 23:08:51 +0100 Subject: [PATCH] const'ify --- editor/attachmentview.cpp | 2 +- editor/attachmentview.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/attachmentview.cpp b/editor/attachmentview.cpp index 7236300d2..0869f6172 100644 --- a/editor/attachmentview.cpp +++ b/editor/attachmentview.cpp @@ -214,7 +214,7 @@ void AttachmentView::startDrag( Qt::DropActions supportedActions ) } } -QWidget *AttachmentView::widget() +QWidget *AttachmentView::widget() const { return d->widget; } diff --git a/editor/attachmentview.h b/editor/attachmentview.h index 11a5e3c46..05a3b6624 100644 --- a/editor/attachmentview.h +++ b/editor/attachmentview.h @@ -44,7 +44,7 @@ public: explicit AttachmentView( MessageComposer::AttachmentModel *model, QWidget *parent = 0 ); ~AttachmentView(); - QWidget *widget(); + QWidget *widget() const; public slots: /// model sets these