summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc')
-rw-r--r--krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc b/krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc
index 75622312..3747f485 100644
--- a/krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc
+++ b/krita/plugins/viewplugins/separate_channels/kis_channel_separator.cc
@@ -83,9 +83,9 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
KisColorSpace * dstCs = 0;
- Q_UINT32 numberOfChannels = src->nChannels();
+ TQ_UINT32 numberOfChannels = src->nChannels();
KisColorSpace * srcCs = src->colorSpace();
- QValueVector<KisChannelInfo *> channels = srcCs->channels();
+ TQValueVector<KisChannelInfo *> channels = srcCs->channels();
// Use the flattened image, if required
switch(sourceOps) {
@@ -99,15 +99,15 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
vKisPaintDeviceSP layers;
- QValueVector<KisChannelInfo *>::const_iterator begin = channels.begin();
- QValueVector<KisChannelInfo *>::const_iterator end = channels.end();
+ TQValueVector<KisChannelInfo *>::const_iterator begin = channels.begin();
+ TQValueVector<KisChannelInfo *>::const_iterator end = channels.end();
- QRect rect = src->exactBounds();
+ TQRect rect = src->exactBounds();
int i = 0;
- Q_UINT32 channelIndex = 0;
- for (QValueVector<KisChannelInfo *>::const_iterator it = begin; it != end; ++it, ++channelIndex)
+ TQ_UINT32 channelIndex = 0;
+ for (TQValueVector<KisChannelInfo *>::const_iterator it = begin; it != end; ++it, ++channelIndex)
{
KisChannelInfo * ch = (*it);
@@ -116,9 +116,9 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
continue;
}
- Q_INT32 channelSize = ch->size();
- Q_INT32 channelPos = ch->pos();
- Q_INT32 destSize = 1;
+ TQ_INT32 channelSize = ch->size();
+ TQ_INT32 channelPos = ch->pos();
+ TQ_INT32 destSize = 1;
KisPaintDeviceSP dev;
if (toColor) {
@@ -139,7 +139,7 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
layers.push_back(dev);
- for (Q_INT32 row = 0; row < rect.height(); ++row) {
+ for (TQ_INT32 row = 0; row < rect.height(); ++row) {
KisHLineIteratorPixel srcIt = src->createHLineIterator(rect.x(), rect.y() + row, rect.width(), false);
KisHLineIteratorPixel dstIt = dev->createHLineIterator(rect.x(), rect.y() + row, rect.width(), true);
@@ -238,7 +238,7 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
break;
}
- for (QValueVector<KisChannelInfo *>::const_iterator it = begin; it != end; ++it)
+ for (TQValueVector<KisChannelInfo *>::const_iterator it = begin; it != end; ++it)
{
KisChannelInfo * ch = (*it);
@@ -253,10 +253,10 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
image->addLayer( dynamic_cast<KisLayer*>(l.data()), image->rootLayer(), 0);
}
else {
- QStringList listMimeFilter = KoFilterManager::mimeFilter("application/x-krita", KoFilterManager::Export);
- QString mimelist = listMimeFilter.join(" ");
+ TQStringList listMimeFilter = KoFilterManager::mimeFilter("application/x-krita", KoFilterManager::Export);
+ TQString mimelist = listMimeFilter.join(" ");
- KFileDialog fd (QString::null, mimelist, m_view, "Export Layer", true);
+ KFileDialog fd (TQString(), mimelist, m_view, "Export Layer", true);
fd.setCaption(i18n("Export Layer") + "(" + ch->name() + ")");
fd.setMimeFilter(listMimeFilter);
fd.setOperationMode(KFileDialog::Saving);
@@ -264,13 +264,13 @@ void KisChannelSeparator::separate(KisProgressDisplayInterface * progress, enumS
if (!fd.exec()) return;
KURL url = fd.selectedURL();
- QString mimefilter = fd.currentMimeFilter();
+ TQString mimefilter = fd.currentMimeFilter();
if (url.isEmpty())
return;
KisPaintLayerSP l = new KisPaintLayer( image, ch->name(), OPACITY_OPAQUE, *deviceIt);
- QRect r = l->exactBounds();
+ TQRect r = l->exactBounds();
KisDoc d;
d.prepareForImport();