summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_custom_brush.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_custom_brush.cc')
-rw-r--r--krita/ui/kis_custom_brush.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/krita/ui/kis_custom_brush.cc b/krita/ui/kis_custom_brush.cc
index 3e6046e7..492d2003 100644
--- a/krita/ui/kis_custom_brush.cc
+++ b/krita/ui/kis_custom_brush.cc
@@ -18,11 +18,11 @@
#include <KoImageResource.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qimage.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
+#include <tqlabel.h>
+#include <tqimage.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <ktempfile.h>
@@ -39,8 +39,8 @@
#include "kis_paint_layer.h"
#include "kis_group_layer.h"
-KisCustomBrush::KisCustomBrush(QWidget *parent, const char* name, const QString& caption, KisView* view)
- : KisWdgCustomBrush(parent, name), m_view(view)
+KisCustomBrush::KisCustomBrush(TQWidget *tqparent, const char* name, const TQString& caption, KisView* view)
+ : KisWdgCustomBrush(tqparent, name), m_view(view)
{
Q_ASSERT(m_view);
m_mediator = 0;
@@ -50,18 +50,18 @@ KisCustomBrush::KisCustomBrush(QWidget *parent, const char* name, const QString&
preview->setScaledContents(true);
- connect(addButton, SIGNAL(pressed()), this, SLOT(slotAddPredefined()));
- connect(brushButton, SIGNAL(pressed()), this, SLOT(slotUseBrush()));
-// connect(exportButton, SIGNAL(pressed()), this, SLOT(slotExport()));
- connect(style, SIGNAL(activated(int)), this, SLOT(slotUpdateCurrentBrush(int)));
- connect(colorAsMask, SIGNAL(stateChanged(int)), this, SLOT(slotUpdateCurrentBrush(int)));
+ connect(addButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotAddPredefined()));
+ connect(brushButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUseBrush()));
+// connect(exportButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotExport()));
+ connect(style, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateCurrentBrush(int)));
+ connect(colorAsMask, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotUpdateCurrentBrush(int)));
}
KisCustomBrush::~KisCustomBrush() {
delete m_brush;
}
-void KisCustomBrush::showEvent(QShowEvent *) {
+void KisCustomBrush::showEvent(TQShowEvent *) {
slotUpdateCurrentBrush(0);
}
@@ -69,7 +69,7 @@ void KisCustomBrush::slotUpdateCurrentBrush(int) {
delete m_brush;
if (m_view->canvasSubject() && m_view->canvasSubject()->currentImg()) {
createBrush();
- preview->setPixmap(QPixmap(m_brush->img()));
+ preview->setPixmap(TQPixmap(m_brush->img()));
} else {
m_brush = 0;
}
@@ -82,8 +82,8 @@ void KisCustomBrush::slotExport() {
void KisCustomBrush::slotAddPredefined() {
// Save in the directory that is likely to be: ~/.kde/share/apps/krita/brushes
// a unique file with this brushname
- QString dir = KGlobal::dirs()->saveLocation("data", "krita/brushes");
- QString extension;
+ TQString dir = KGlobal::dirs()->saveLocation("data", "krita/brushes");
+ TQString extension;
if (style->currentItem() == 0) {
extension = ".gbr";
@@ -124,8 +124,8 @@ void KisCustomBrush::createBrush() {
}
// For each layer in the current image, create a new image, and add it to the list
- QValueVector< QValueVector<KisPaintDevice*> > devices;
- devices.push_back(QValueVector<KisPaintDevice*>());
+ TQValueVector< TQValueVector<KisPaintDevice*> > devices;
+ devices.push_back(TQValueVector<KisPaintDevice*>());
int w = img->width();
int h = img->height();
@@ -138,7 +138,7 @@ void KisCustomBrush::createBrush() {
devices.at(0).push_back(paint->paintDevice());
layer = layer->nextSibling();
}
- QValueVector<KisPipeBrushParasite::SelectionMode> modes;
+ TQValueVector<KisPipeBrushParasite::SelectionMode> modes;
switch(comboBox2->currentItem()) {
case 0: modes.push_back(KisPipeBrushParasite::Constant); break;