From bef21d00a3039705191f369fdb78d1b3680dc881 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 3 Oct 2011 12:42:04 +0200 Subject: [PATCH] Minor change --- attachmentview.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/attachmentview.h b/attachmentview.h index 24122ca3d..f5dadb2dd 100644 --- a/attachmentview.h +++ b/attachmentview.h @@ -40,16 +40,9 @@ class AttachmentView : public QTreeView public: /// can't change model afterwards. - AttachmentView( Message::AttachmentModel *model, QWidget *parent = 0 ); + explicit AttachmentView( Message::AttachmentModel *model, QWidget *parent = 0 ); ~AttachmentView(); - /* reimpl */ - virtual void contextMenuEvent( QContextMenuEvent *event ); - /* reimpl */ - virtual void keyPressEvent( QKeyEvent *event ); - /** reimpl to avoid drags from ourselves */ - virtual void dragEnterEvent( QDragEnterEvent *event ); - public slots: /// model sets these void setEncryptEnabled( bool enabled ); @@ -60,6 +53,12 @@ class AttachmentView : public QTreeView protected: /** reimpl to avoid default drag cursor */ virtual void startDrag( Qt::DropActions supportedActions ); + /* reimpl */ + virtual void contextMenuEvent( QContextMenuEvent *event ); + /* reimpl */ + virtual void keyPressEvent( QKeyEvent *event ); + /** reimpl to avoid drags from ourselves */ + virtual void dragEnterEvent( QDragEnterEvent *event ); private: void saveHeaderState();