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