summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/histogram/histogram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/histogram/histogram.cc')
-rw-r--r--krita/plugins/viewplugins/histogram/histogram.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/krita/plugins/viewplugins/histogram/histogram.cc b/krita/plugins/viewplugins/histogram/histogram.cc
index 7db92dee..59ea0fff 100644
--- a/krita/plugins/viewplugins/histogram/histogram.cc
+++ b/krita/plugins/viewplugins/histogram/histogram.cc
@@ -23,8 +23,8 @@
#include <stdlib.h>
-#include <qslider.h>
-#include <qpoint.h>
+#include <tqslider.h>
+#include <tqpoint.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -52,27 +52,27 @@
typedef KGenericFactory<Histogram> HistogramFactory;
K_EXPORT_COMPONENT_FACTORY( kritahistogram, HistogramFactory( "krita" ) )
-Histogram::Histogram(QObject *parent, const char *name, const QStringList &)
- : KParts::Plugin(parent, name)
+Histogram::Histogram(TQObject *tqparent, const char *name, const TQStringList &)
+ : KParts::Plugin(tqparent, name)
{
- if ( parent->inherits("KisView") ) {
+ if ( tqparent->inherits("KisView") ) {
setInstance(HistogramFactory::instance());
setXMLFile(locate("data","kritaplugins/histogram.rc"), true);
- m_action = new KAction(i18n("&Histogram"), 0, 0, this, SLOT(slotActivated()), actionCollection(), "histogram");
+ m_action = new KAction(i18n("&Histogram"), 0, 0, this, TQT_SLOT(slotActivated()), actionCollection(), "histogram");
- m_view = (KisView*) parent;
+ m_view = (KisView*) tqparent;
if (KisImageSP img = m_view->canvasSubject()->currentImg()) {
- connect(img, SIGNAL(sigLayersChanged(KisGroupLayerSP)), this, SLOT(slotLayersChanged()));
- connect(img, SIGNAL(sigLayerAdded(KisLayerSP)), this, SLOT(slotLayersChanged()));
- connect(img, SIGNAL(sigLayerActivated(KisLayerSP)), this, SLOT(slotLayersChanged()));
- connect(img, SIGNAL(sigLayerPropertiesChanged(KisLayerSP)), this, SLOT(slotLayersChanged()));
- connect(img, SIGNAL(sigLayerRemoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
- this, SLOT(slotLayersChanged()));
- connect(img, SIGNAL(sigLayerMoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
- this, SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayersChanged(KisGroupLayerSP)), this, TQT_SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayerAdded(KisLayerSP)), this, TQT_SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayerActivated(KisLayerSP)), this, TQT_SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayerPropertiesChanged(KisLayerSP)), this, TQT_SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayerRemoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
+ this, TQT_SLOT(slotLayersChanged()));
+ connect(img, TQT_SIGNAL(sigLayerMoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
+ this, TQT_SLOT(slotLayersChanged()));
m_img = img;
}
}
@@ -95,7 +95,7 @@ void Histogram::slotActivated()
if (dev)
dlgHistogram->setPaintDevice(dev);
- if (dlgHistogram->exec() == QDialog::Accepted) {
+ if (dlgHistogram->exec() == TQDialog::Accepted) {
// Do nothing; this is an informational dialog
}
delete dlgHistogram;