[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] krita/plugins/extensions/dockers/defaultdockers: Make KisDropButton inherit KisToolButton
From:       José_Luis_Vergara <pentalis () gmail ! com>
Date:       2012-01-23 1:28:10
Message-ID: 20120123012810.08D6DA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 08ed29e3e19de7eaef4b2fe3f374a8140f1c067e by José Luis Vergara.
Committed on 23/01/2012 at 02:27.
Pushed by jlvergara into branch 'master'.

Make KisDropButton inherit KisToolButton instead of QToolButton

o This returns our add layer button its compatibility with tablets
o Also increase the width of the button by 9 pixels, now it looks the right size
o Celebrate with champagne coming back to contribute in Krita  :)
o Couldn't find if there was a bug reported for this so I didn't close any

M  +1    -1    krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.cpp
M  +3    -2    krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.h
M  +2    -2    krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui

http://commits.kde.org/calligra/08ed29e3e19de7eaef4b2fe3f374a8140f1c067e

diff --git a/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.cpp \
b/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.cpp index \
                2e2d2a9..2827c1b 100644
--- a/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.cpp
+++ b/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.cpp
@@ -37,7 +37,7 @@
 #include <kis_mimedata.h>
 
 KisDropButton::KisDropButton(QWidget *parent)
-  : QToolButton(parent)
+  : KisToolButton(parent)
 {
     setAcceptDrops(true);
 }
diff --git a/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.h \
b/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.h index \
                e806f40..6d75441 100644
--- a/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.h
+++ b/krita/plugins/extensions/dockers/defaultdockers/kis_drop_button.h
@@ -20,7 +20,8 @@
 #ifndef KIS_DROP_BUTTON_H
 #define KIS_DROP_BUTTON_H
 
-#include <QToolButton>
+#include <kis_tool_button.h>
+
 
 class KisView2;
 
@@ -29,7 +30,7 @@ class KisView2;
 /**
  * A toolbutton that implements a drop target.
  */
-class KisDropButton : public QToolButton
+class KisDropButton : public KisToolButton
 {
     Q_OBJECT
 public:
diff --git a/krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui \
b/krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui index \
                431b36b..ecfd983 100644
--- a/krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui
+++ b/krita/plugins/extensions/dockers/defaultdockers/wdglayerbox.ui
@@ -85,13 +85,13 @@
       <widget class="KisDropButton" name="bnAdd">
        <property name="minimumSize">
         <size>
-         <width>28</width>
+         <width>37</width>
          <height>28</height>
         </size>
        </property>
        <property name="maximumSize">
         <size>
-         <width>28</width>
+         <width>37</width>
          <height>28</height>
         </size>
        </property>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic