diff options
Diffstat (limited to 'krita/ui/kis_custom_pattern.cc')
-rw-r--r-- | krita/ui/kis_custom_pattern.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krita/ui/kis_custom_pattern.cc b/krita/ui/kis_custom_pattern.cc index 41ba73a7..275bfa57 100644 --- a/krita/ui/kis_custom_pattern.cc +++ b/krita/ui/kis_custom_pattern.cc @@ -18,10 +18,10 @@ #include <KoImageResource.h> #include <kdebug.h> -#include <qlabel.h> -#include <qimage.h> -#include <qpushbutton.h> -#include <qcombobox.h> +#include <tqlabel.h> +#include <tqimage.h> +#include <tqpushbutton.h> +#include <tqcombobox.h> #include <kglobal.h> #include <kstandarddirs.h> #include <ktempfile.h> @@ -36,8 +36,8 @@ #include "kis_resourceserver.h" #include "kis_paint_layer.h" -KisCustomPattern::KisCustomPattern(QWidget *parent, const char* name, const QString& caption, KisView* view) - : KisWdgCustomPattern(parent, name), m_view(view) +KisCustomPattern::KisCustomPattern(TQWidget *tqparent, const char* name, const TQString& caption, KisView* view) + : KisWdgCustomPattern(tqparent, name), m_view(view) { Q_ASSERT(m_view); m_mediator = 0; @@ -47,16 +47,16 @@ KisCustomPattern::KisCustomPattern(QWidget *parent, const char* name, const QStr preview->setScaledContents(true); - connect(addButton, SIGNAL(pressed()), this, SLOT(slotAddPredefined())); - connect(patternButton, SIGNAL(pressed()), this, SLOT(slotUsePattern())); - connect(exportButton, SIGNAL(pressed()), this, SLOT(slotExport())); + connect(addButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotAddPredefined())); + connect(patternButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUsePattern())); + connect(exportButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotExport())); } KisCustomPattern::~KisCustomPattern() { delete m_pattern; } -void KisCustomPattern::showEvent(QShowEvent *) { +void KisCustomPattern::showEvent(TQShowEvent *) { slotUpdateCurrentPattern(0); } @@ -64,7 +64,7 @@ void KisCustomPattern::slotUpdateCurrentPattern(int) { delete m_pattern; if (m_view->canvasSubject() && m_view->canvasSubject()->currentImg()) { createPattern(); - preview->setPixmap(QPixmap(m_pattern->img())); + preview->setPixmap(TQPixmap(m_pattern->img())); } else { m_pattern = 0; } @@ -80,8 +80,8 @@ void KisCustomPattern::slotAddPredefined() { // Save in the directory that is likely to be: ~/.kde/share/apps/krita/patterns // a unique file with this pattern name - QString dir = KGlobal::dirs()->saveLocation("data", "krita/patterns"); - QString extension; + TQString dir = KGlobal::dirs()->saveLocation("data", "krita/patterns"); + TQString extension; KTempFile file(dir, ".pat"); file.close(); // If we don't, and pattern->save first, it might get truncated! |