summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/imagesize/imagesize.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/imagesize/imagesize.cc')
-rw-r--r--krita/plugins/viewplugins/imagesize/imagesize.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/krita/plugins/viewplugins/imagesize/imagesize.cc b/krita/plugins/viewplugins/imagesize/imagesize.cc
index df400b5a..fff6cc27 100644
--- a/krita/plugins/viewplugins/imagesize/imagesize.cc
+++ b/krita/plugins/viewplugins/imagesize/imagesize.cc
@@ -23,9 +23,9 @@
#include <stdlib.h>
-#include <qslider.h>
-#include <qrect.h>
-#include <qpoint.h>
+#include <tqslider.h>
+#include <tqrect.h>
+#include <tqpoint.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -58,21 +58,21 @@
typedef KGenericFactory<ImageSize> ImageSizeFactory;
K_EXPORT_COMPONENT_FACTORY( kritaimagesize, ImageSizeFactory( "krita" ) )
-ImageSize::ImageSize(QObject *parent, const char *name, const QStringList &)
- : KParts::Plugin(parent, name)
+ImageSize::ImageSize(TQObject *tqparent, const char *name, const TQStringList &)
+ : KParts::Plugin(tqparent, name)
{
- if ( parent->inherits("KisView") )
+ if ( tqparent->inherits("KisView") )
{
setInstance(ImageSizeFactory::instance());
setXMLFile(locate("data","kritaplugins/imagesize.rc"), true);
- (void) new KAction(i18n("Change &Image Size..."), 0, "Shift-s", this, SLOT(slotImageSize()), actionCollection(), "imagesize");
- (void) new KAction(i18n("&Scale Layer..."), 0, 0, this, SLOT(slotLayerSize()), actionCollection(), "layerscale");
+ (void) new KAction(i18n("Change &Image Size..."), 0, "Shift-s", this, TQT_SLOT(slotImageSize()), actionCollection(), "imagesize");
+ (void) new KAction(i18n("&Scale Layer..."), 0, 0, this, TQT_SLOT(slotLayerSize()), actionCollection(), "layerscale");
- m_view = (KisView*) parent;
+ m_view = (KisView*) tqparent;
// Selection manager takes ownership?
- KAction * a = new KAction(i18n("&Scale Selection..."), 0, 0, this, SLOT(slotSelectionScale()), actionCollection(), "selectionscale");
+ KAction * a = new KAction(i18n("&Scale Selection..."), 0, 0, this, TQT_SLOT(slotSelectionScale()), actionCollection(), "selectionscale");
Q_CHECK_PTR(a);
m_view ->canvasSubject()-> selectionManager()->addSelectionAction(a);
}
@@ -99,9 +99,9 @@ void ImageSize::slotImageSize()
dlgImageSize->setWidth(image->width());
dlgImageSize->setHeight(image->height());
- if (dlgImageSize->exec() == QDialog::Accepted) {
- Q_INT32 w = dlgImageSize->width();
- Q_INT32 h = dlgImageSize->height();
+ if (dlgImageSize->exec() == TQDialog::Accepted) {
+ TQ_INT32 w = dlgImageSize->width();
+ TQ_INT32 h = dlgImageSize->height();
if (dlgImageSize->scale()) {
m_view->scaleCurrentImage((double)w / ((double)(image->width())),
@@ -130,14 +130,14 @@ void ImageSize::slotLayerSize()
KisConfig cfg;
KisPaintDeviceSP dev = image->activeDevice();
- QRect rc = dev->exactBounds();
+ TQRect rc = dev->exactBounds();
dlgLayerSize->setWidth(rc.width());
dlgLayerSize->setHeight(rc.height());
- if (dlgLayerSize->exec() == QDialog::Accepted) {
- Q_INT32 w = dlgLayerSize->width();
- Q_INT32 h = dlgLayerSize->height();
+ if (dlgLayerSize->exec() == TQDialog::Accepted) {
+ TQ_INT32 w = dlgLayerSize->width();
+ TQ_INT32 h = dlgLayerSize->height();
m_view->scaleLayer((double)w / ((double)(rc.width())),
(double)h / ((double)(rc.height())),
@@ -165,14 +165,14 @@ void ImageSize::slotSelectionScale()
dlgLayerSize->setCaption(i18n("Scale Selection"));
KisConfig cfg;
- QRect rc = layer->selection()->selectedRect();
+ TQRect rc = layer->selection()->selectedRect();
dlgLayerSize->setWidth(rc.width());
dlgLayerSize->setHeight(rc.height());
- if (dlgLayerSize->exec() == QDialog::Accepted) {
- Q_INT32 w = dlgLayerSize->width();
- Q_INT32 h = dlgLayerSize->height();
+ if (dlgLayerSize->exec() == TQDialog::Accepted) {
+ TQ_INT32 w = dlgLayerSize->width();
+ TQ_INT32 h = dlgLayerSize->height();
KisScaleWorker worker (layer->selection().data(),
(double)w / ((double)(rc.width())),