summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_custom_image_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_custom_image_widget.cc')
-rw-r--r--krita/ui/kis_custom_image_widget.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/krita/ui/kis_custom_image_widget.cc b/krita/ui/kis_custom_image_widget.cc
index 79b9389f..0b77da9f 100644
--- a/krita/ui/kis_custom_image_widget.cc
+++ b/krita/ui/kis_custom_image_widget.cc
@@ -33,14 +33,14 @@
#include <kcolorcombo.h>
#include <kdebug.h>
-#include <qpushbutton.h>
-#include <qslider.h>
-#include <qtextedit.h>
+#include <tqpushbutton.h>
+#include <tqslider.h>
+#include <tqtextedit.h>
#include <KoUnitWidgets.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-KisCustomImageWidget::KisCustomImageWidget(QWidget *parent, KisDoc *doc, Q_INT32 defWidth, Q_INT32 defHeight, double resolution, QString defColorSpaceName, QString imageName)
- : WdgNewImage(parent) {
+KisCustomImageWidget::KisCustomImageWidget(TQWidget *tqparent, KisDoc *doc, TQ_INT32 defWidth, TQ_INT32 defHeight, double resolution, TQString defColorSpaceName, TQString imageName)
+ : WdgNewImage(tqparent) {
m_doc = doc;
txtName->setText(imageName);
@@ -52,9 +52,9 @@ KisCustomImageWidget::KisCustomImageWidget(QWidget *parent, KisDoc *doc, Q_INT32
cmbColorSpaces->setIDList(KisMetaRegistry::instance()->csRegistry()->listKeys());
cmbColorSpaces->setCurrentText(defColorSpaceName);
- connect(cmbColorSpaces, SIGNAL(activated(const KisID &)),
- this, SLOT(fillCmbProfiles(const KisID &)));
- connect (m_createButton, SIGNAL( clicked() ), this, SLOT (buttonClicked()) );
+ connect(cmbColorSpaces, TQT_SIGNAL(activated(const KisID &)),
+ this, TQT_SLOT(fillCmbProfiles(const KisID &)));
+ connect (m_createButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT (buttonClicked()) );
m_createButton -> setDefault(true);
fillCmbProfiles(cmbColorSpaces->currentItem());
@@ -65,9 +65,9 @@ KisCustomImageWidget::KisCustomImageWidget(QWidget *parent, KisDoc *doc, Q_INT32
void KisCustomImageWidget::buttonClicked() {
KisColorSpace * cs = KisMetaRegistry::instance()->csRegistry()->getColorSpace(cmbColorSpaces->currentItem(), cmbProfile->currentText());
- QColor qc(cmbColor->color());
+ TQColor qc(cmbColor->color());
- m_doc->newImage(txtName->text(), (Q_INT32)intWidth->value(), (Q_INT32)intHeight->value(), cs, KisColor(qc, cs), txtDescription->text(), doubleResolution->value());
+ m_doc->newImage(txtName->text(), (TQ_INT32)intWidth->value(), (TQ_INT32)intHeight->value(), cs, KisColor(qc, cs), txtDescription->text(), doubleResolution->value());
KisImageSP img = m_doc->currentImage();
if (img) {
KisLayerSP layer = img->activeLayer();
@@ -78,9 +78,9 @@ void KisCustomImageWidget::buttonClicked() {
emit documentSelected();
}
-Q_UINT8 KisCustomImageWidget::backgroundOpacity() const
+TQ_UINT8 KisCustomImageWidget::backgroundOpacity() const
{
- Q_INT32 opacity = sliderOpacity->value();
+ TQ_INT32 opacity = sliderOpacity->value();
if (!opacity)
return 0;
@@ -99,8 +99,8 @@ void KisCustomImageWidget::fillCmbProfiles(const KisID & s)
KisColorSpaceFactory * csf = KisMetaRegistry::instance()->csRegistry()->get(s);
if (csf == 0) return;
- QValueVector<KisProfile *> profileList = KisMetaRegistry::instance()->csRegistry()->profilesFor( csf );
- QValueVector<KisProfile *> ::iterator it;
+ TQValueVector<KisProfile *> profileList = KisMetaRegistry::instance()->csRegistry()->profilesFor( csf );
+ TQValueVector<KisProfile *> ::iterator it;
for ( it = profileList.begin(); it != profileList.end(); ++it ) {
cmbProfile->insertItem((*it)->productName());
}