summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/files/pykde4-kcategorydrawer.patch
blob: 25a6711b75825fec2c957d9fb3edf9703e95907f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- pykde4-4.3.72/python/pykde4/sip/kdeui/kcategorydrawer.sip.def	2008-07-08 13:27:45.000000000 +0400
+++ pykde4-4.3.72/python/pykde4/sip/kdeui/kcategorydrawer.sip	2009-10-25 00:39:24.573756918 +0400
@@ -29,6 +29,28 @@
                             KCategoryDrawer ();
     virtual void            drawCategory (const QModelIndex& index, int sortRole, const QStyleOption& option, QPainter* painter) const;
     virtual int             categoryHeight (const QModelIndex& index, const QStyleOption& option) const;
+    int                     leftMargin () const;
+    void                    setLeftMargin (int leftMargin);
+    int                     rightMargin () const;
+    void                    setRightMargin (int rightMargin);
+
+private:
+                            KCategoryDrawer (const KCategoryDrawer&);
 };   // KCategoryDrawer
 
+class KCategoryDrawerV2 : QObject, KCategoryDrawer
+{
+%TypeHeaderCode
+#include <kcategorydrawer.h>
+%End
+
+public:
+                            KCategoryDrawerV2 (QObject *parent = 0);
+    virtual void            mouseButtonPressed (const QModelIndex &index, QMouseEvent *event);
+    virtual void            mouseButtonReleased (const QModelIndex &index, QMouseEvent *event);
+    virtual void            mouseButtonMoved(const QModelIndex &index, QMouseEvent *event);
+    virtual void            mouseButtonDoubleClicked(const QModelIndex &index, QMouseEvent *event);
 
+signals:
+    void                    collapseOrExpandClicked(const QModelIndex &index);
+};   // KCategoryDrawerV2