summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_palette_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_palette_widget.cc')
-rw-r--r--krita/ui/kis_palette_widget.cc72
1 files changed, 36 insertions, 36 deletions
diff --git a/krita/ui/kis_palette_widget.cc b/krita/ui/kis_palette_widget.cc
index 507ccc15..a8305337 100644
--- a/krita/ui/kis_palette_widget.cc
+++ b/krita/ui/kis_palette_widget.cc
@@ -19,20 +19,20 @@
#include <stdio.h>
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qdrawutil.h>
-#include <qevent.h>
-#include <qfile.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qvalidator.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qtimer.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqdrawutil.h>
+#include <tqevent.h>
+#include <tqfile.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqvalidator.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -60,39 +60,39 @@
#include "kis_palette.h"
#include "kis_palette_view.h"
-KisPaletteWidget::KisPaletteWidget( QWidget *parent, int minWidth, int cols)
- : QWidget( parent ), mMinWidth(minWidth), mCols(cols)
+KisPaletteWidget::KisPaletteWidget( TQWidget *tqparent, int minWidth, int cols)
+ : TQWidget( tqparent ), mMinWidth(minWidth), mCols(cols)
{
init = false;
m_currentPalette = 0;
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
- combo = new QComboBox( false, this );
- combo->setFocusPolicy( QWidget::ClickFocus );
- layout->addWidget(combo);
+ combo = new TQComboBox( false, this );
+ combo->setFocusPolicy( TQ_ClickFocus );
+ tqlayout->addWidget(combo);
m_view = new KisPaletteView(this, 0, minWidth, cols);
- layout->addWidget( m_view );
-
- //setFixedSize(sizeHint());
-
- connect(combo, SIGNAL(activated(const QString &)),
- this, SLOT(slotSetPalette(const QString &)));
- connect(m_view, SIGNAL(colorSelected(const KisColor &)),
- this, SIGNAL(colorSelected(const KisColor &)));
- connect(m_view, SIGNAL(colorSelected(const QColor &)),
- this, SIGNAL(colorSelected(const QColor &)));
- connect(m_view, SIGNAL(colorDoubleClicked(const KisColor &, const QString &)),
- this, SIGNAL(colorDoubleClicked(const KisColor &, const QString &)));
+ tqlayout->addWidget( m_view );
+
+ //setFixedSize(tqsizeHint());
+
+ connect(combo, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(slotSetPalette(const TQString &)));
+ connect(m_view, TQT_SIGNAL(colorSelected(const KisColor &)),
+ this, TQT_SIGNAL(colorSelected(const KisColor &)));
+ connect(m_view, TQT_SIGNAL(colorSelected(const TQColor &)),
+ this, TQT_SIGNAL(colorSelected(const TQColor &)));
+ connect(m_view, TQT_SIGNAL(colorDoubleClicked(const KisColor &, const TQString &)),
+ this, TQT_SIGNAL(colorDoubleClicked(const KisColor &, const TQString &)));
}
KisPaletteWidget::~KisPaletteWidget()
{
}
-QString KisPaletteWidget::palette() const
+TQString KisPaletteWidget::palette() const
{
return combo->currentText();
}
@@ -107,16 +107,16 @@ QString KisPaletteWidget::palette() const
// set the palette and then use the information to emit a signal with the
// new color setting. It is only used by the combobox widget.
//
-void KisPaletteWidget::slotSetPalette( const QString &_paletteName )
+void KisPaletteWidget::slotSetPalette( const TQString &_paletteName )
{
setPalette( _paletteName );
m_view->slotColorCellSelected(0); // FIXME: We need to save the current value!!
}
-void KisPaletteWidget::setPalette( const QString &_paletteName )
+void KisPaletteWidget::setPalette( const TQString &_paletteName )
{
- QString paletteName( _paletteName);
+ TQString paletteName( _paletteName);
m_currentPalette = m_namedPaletteMap[paletteName];