~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/plugins/generic/watcherplugin/delegate.h

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class IconDelegate : public QItemDelegate
31
31
{
32
 
    Q_OBJECT
33
 
 
34
 
    public:
35
 
            IconDelegate(IconFactoryAccessingHost *iconHost, QObject * parent = 0)  : QItemDelegate(parent), iconHost_(iconHost) {};
36
 
            virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
37
 
            virtual void drawDisplay(QPainter * /*painter*/, const QStyleOptionViewItem & /*option*/, const QRect & /*rect*/, const QString & /*text*/) const {};
38
 
            void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
39
 
 
40
 
    private:
41
 
            IconFactoryAccessingHost *iconHost_;
 
32
        Q_OBJECT
 
33
 
 
34
public:
 
35
        IconDelegate(IconFactoryAccessingHost *iconHost, QObject * parent = 0)  : QItemDelegate(parent), iconHost_(iconHost) {};
 
36
        virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
 
37
        virtual void drawDisplay(QPainter * /*painter*/, const QStyleOptionViewItem & /*option*/, const QRect & /*rect*/, const QString & /*text*/) const {};
 
38
        void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
 
39
 
 
40
private:
 
41
        IconFactoryAccessingHost *iconHost_;
42
42
 
43
43
};
44
44
 
45
45
class LineEditDelegate : public QItemDelegate
46
46
{
47
 
    Q_OBJECT
 
47
        Q_OBJECT
48
48
 
49
 
    public:
50
 
            LineEditDelegate(QObject * parent = 0)  : QItemDelegate(parent) {};
51
 
            QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
52
 
            void setEditorData(QWidget *editor, const QModelIndex &index) const;
53
 
            void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
54
 
           // void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
 
49
public:
 
50
        LineEditDelegate(QObject * parent = 0)  : QItemDelegate(parent) {};
 
51
        QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
 
52
        void setEditorData(QWidget *editor, const QModelIndex &index) const;
 
53
        void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
 
54
        // void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
55
55
};
56
56
 
57
57
#endif // DELEGATE_H