diff options
Diffstat (limited to 'krita/ui/kis_autobrush.cc')
-rw-r--r-- | krita/ui/kis_autobrush.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/krita/ui/kis_autobrush.cc b/krita/ui/kis_autobrush.cc index d1f6dce2..3d081188 100644 --- a/krita/ui/kis_autobrush.cc +++ b/krita/ui/kis_autobrush.cc @@ -19,14 +19,14 @@ #include "kis_autobrush.h" #include <KoImageResource.h> #include <kdebug.h> -#include <qspinbox.h> -#include <qtoolbutton.h> -#include <qimage.h> -#include <qcombobox.h> -#include <qlabel.h> +#include <tqspinbox.h> +#include <tqtoolbutton.h> +#include <tqimage.h> +#include <tqcombobox.h> +#include <tqlabel.h> -KisAutobrush::KisAutobrush(QWidget *parent, const char* name, const QString& caption) : KisWdgAutobrush(parent, name) +KisAutobrush::KisAutobrush(TQWidget *tqparent, const char* name, const TQString& caption) : KisWdgAutobrush(tqparent, name) { setCaption(caption); @@ -36,30 +36,30 @@ KisAutobrush::KisAutobrush(QWidget *parent, const char* name, const QString& cap linkFadeToggled(m_linkSize); linkSizeToggled(m_linkFade); - connect(bnLinkSize, SIGNAL(toggled(bool)), this, SLOT(linkSizeToggled( bool ))); - connect(bnLinkFade, SIGNAL(toggled(bool)), this, SLOT(linkFadeToggled( bool ))); + connect(bnLinkSize, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(linkSizeToggled( bool ))); + connect(bnLinkFade, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(linkFadeToggled( bool ))); - connect((QObject*)comboBoxShape, SIGNAL(activated(int)), this, SLOT(paramChanged())); + connect((TQObject*)comboBoxShape, TQT_SIGNAL(activated(int)), this, TQT_SLOT(paramChanged())); spinBoxWidth->setMinValue(1); - connect(spinBoxWidth,SIGNAL(valueChanged(int)),this,SLOT(spinBoxWidthChanged(int))); + connect(spinBoxWidth,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(spinBoxWidthChanged(int))); spinBoxHeigth->setMinValue(1); - connect(spinBoxHeigth,SIGNAL(valueChanged(int)),this,SLOT(spinBoxHeigthChanged(int))); + connect(spinBoxHeigth,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(spinBoxHeigthChanged(int))); spinBoxHorizontal->setMinValue(0); - connect(spinBoxHorizontal,SIGNAL(valueChanged(int)),this,SLOT(spinBoxHorizontalChanged(int))); + connect(spinBoxHorizontal,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(spinBoxHorizontalChanged(int))); spinBoxVertical->setMinValue(0); - connect(spinBoxVertical,SIGNAL(valueChanged(int)),this,SLOT(spinBoxVerticalChanged(int))); + connect(spinBoxVertical,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(spinBoxVerticalChanged(int))); - m_brsh = new QImage(1,1,32); + m_brsh = new TQImage(1,1,32); Q_CHECK_PTR(m_brsh); paramChanged(); - connect(brushPreview, SIGNAL(clicked()), SLOT(paramChanged())); + connect(brushPreview, TQT_SIGNAL(clicked()), TQT_SLOT(paramChanged())); } -void KisAutobrush::resizeEvent ( QResizeEvent * ) +void KisAutobrush::resizeEvent ( TQResizeEvent * ) { brushPreview->setMinimumHeight(brushPreview->width()); // dirty hack ! brushPreview->setMaximumHeight(brushPreview->width()); // dirty hack ! @@ -72,8 +72,8 @@ void KisAutobrush::activate() void KisAutobrush::paramChanged() { - Q_INT32 fh = QMIN( spinBoxWidth->value()/2, spinBoxHorizontal->value() ) ; - Q_INT32 fv = QMIN( spinBoxHeigth->value()/2, spinBoxVertical->value() ); + TQ_INT32 fh = TQMIN( spinBoxWidth->value()/2, spinBoxHorizontal->value() ) ; + TQ_INT32 fv = TQMIN( spinBoxHeigth->value()/2, spinBoxVertical->value() ); KisAutobrushShape* kas; if(comboBoxShape->currentItem() == 0) // use index compare instead of comparing a translatable string @@ -88,8 +88,8 @@ void KisAutobrush::paramChanged() } kas->createBrush(m_brsh); - QPixmap p; - QImage pi(*m_brsh); + TQPixmap p; + TQImage pi(*m_brsh); double coeff = 1.0; int bPw = brushPreview->width()-3; if(pi.width() > bPw) |