summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_custom_palette.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_custom_palette.cc')
-rw-r--r--krita/ui/kis_custom_palette.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/krita/ui/kis_custom_palette.cc b/krita/ui/kis_custom_palette.cc
index 16631116..2a6c1489 100644
--- a/krita/ui/kis_custom_palette.cc
+++ b/krita/ui/kis_custom_palette.cc
@@ -18,11 +18,11 @@
#include <KoImageResource.h>
#include <kdebug.h>
-#include <qlineedit.h>
-#include <qimage.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qvalidator.h>
+#include <tqlineedit.h>
+#include <tqimage.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqvalidator.h>
#include <kglobal.h>
#include <kstandarddirs.h>
@@ -39,8 +39,8 @@
#include "kis_resource_mediator.h"
#include "kis_resourceserver.h"
-KisCustomPalette::KisCustomPalette(QWidget *parent, const char* name, const QString& caption, KisView* view)
- : KisWdgCustomPalette(parent, name), m_view(view)
+KisCustomPalette::KisCustomPalette(TQWidget *tqparent, const char* name, const TQString& caption, KisView* view)
+ : KisWdgCustomPalette(tqparent, name), m_view(view)
{
Q_ASSERT(m_view);
m_mediator = 0;
@@ -52,9 +52,9 @@ KisCustomPalette::KisCustomPalette(QWidget *parent, const char* name, const QStr
m_ownPalette = true;
this->view->setPalette(m_palette);
- connect(addColor, SIGNAL(pressed()), this, SLOT(slotAddNew()));
- connect(removeColor, SIGNAL(pressed()), this, SLOT(slotRemoveCurrent()));
- connect(addPalette, SIGNAL(pressed()), this, SLOT(slotAddPredefined()));
+ connect(addColor, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotAddNew()));
+ connect(removeColor, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotRemoveCurrent()));
+ connect(addPalette, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotAddPredefined()));
}
KisCustomPalette::~KisCustomPalette() {
@@ -85,16 +85,16 @@ void KisCustomPalette::slotAddNew() {
// FIXME also let him add the current paint color to the palette
// or even better, let the color picker have an option 'Add to palette'!
- QColor color;
+ TQColor color;
int result = KColorDialog::getColor(color);
if (result != KColorDialog::Accepted)
return;
bool ok;
- QRegExpValidator validator(QRegExp(".*"), this);
- QString name = KInputDialog::getText(i18n("Add Color to Palette"),
+ TQRegExpValidator validator(TQRegExp(".*"), this);
+ TQString name = KInputDialog::getText(i18n("Add Color to Palette"),
i18n("Color name (optional):"),
- QString::null, &ok,
+ TQString(), &ok,
0, 0, &validator);
if (!ok)
return;
@@ -121,8 +121,8 @@ void KisCustomPalette::slotAddPredefined() {
if (!m_editMode) {
// Save in the directory that is likely to be: ~/.kde/share/apps/krita/palettes
// a unique file with this palettename
- QString dir = KGlobal::dirs()->saveLocation("data", "krita/palettes");
- QString extension;
+ TQString dir = KGlobal::dirs()->saveLocation("data", "krita/palettes");
+ TQString extension;
extension = ".gpl";
KTempFile file(dir, extension);
@@ -136,7 +136,7 @@ void KisCustomPalette::slotAddPredefined() {
if (!m_palette->save()) {
KMessageBox::error(0, i18n("Cannot write to palette file %1. Maybe it is read-only.")
- .arg(m_palette->filename()), i18n("Palette"));
+ .tqarg(m_palette->filename()), i18n("Palette"));
return;
}