~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to kmail/attachmentview.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * This file is part of KMail.
 
3
 * Copyright (c) 2012 Laurent Montel <montel@kde.org>
3
4
 * Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
4
5
 *
5
6
 * Parts based on KMail code by:
24
25
#ifndef KMAIL_ATTACHMENTVIEW_H
25
26
#define KMAIL_ATTACHMENTVIEW_H
26
27
 
27
 
#include <QtGui/QTreeView>
 
28
#include <QTreeView>
28
29
 
29
30
class QContextMenuEvent;
 
31
class QToolButton;
30
32
 
31
33
namespace Message {
32
34
class AttachmentModel;
43
45
    explicit AttachmentView( Message::AttachmentModel *model, QWidget *parent = 0 );
44
46
    ~AttachmentView();
45
47
 
 
48
    QWidget *widget();
 
49
 
46
50
  public slots:
47
51
    /// model sets these
48
52
    void setEncryptEnabled( bool enabled );
50
54
    void hideIfEmpty();
51
55
    void selectNewAttachment();
52
56
 
 
57
    void updateAttachmentLabel();
53
58
  protected:
54
59
    /** reimpl to avoid default drag cursor */
55
60
    virtual void startDrag( Qt::DropActions supportedActions );
60
65
    /** reimpl to avoid drags from ourselves */
61
66
    virtual void dragEnterEvent( QDragEnterEvent *event );
62
67
 
 
68
  private Q_SLOTS:
 
69
    void slotShowHideAttchementList(bool);
63
70
  private:
64
71
    void saveHeaderState();
65
72
    void restoreHeaderState();
66
73
 
67
74
  signals:
68
75
    void contextMenuRequested();
 
76
    void modified(bool);
69
77
 
70
78
  private:
71
79
    class Private;