diff options
Diffstat (limited to 'chalk/chalkcolor')
-rw-r--r-- | chalk/chalkcolor/kis_basic_histogram_producers.cc | 12 | ||||
-rw-r--r-- | chalk/chalkcolor/kis_profile.cc | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chalk/chalkcolor/kis_basic_histogram_producers.cc b/chalk/chalkcolor/kis_basic_histogram_producers.cc index b769a3d3..a67652f7 100644 --- a/chalk/chalkcolor/kis_basic_histogram_producers.cc +++ b/chalk/chalkcolor/kis_basic_histogram_producers.cc @@ -89,7 +89,7 @@ KisBasicU8HistogramProducer::KisBasicU8HistogramProducer(const KisID& id, KisCol } TQString KisBasicU8HistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); + return TQString("%1").arg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); } void KisBasicU8HistogramProducer::addRegionToBin(TQ_UINT8 * pixels, TQ_UINT8 * selectionMask, TQ_UINT32 nPixels, KisColorSpace *cs) @@ -142,7 +142,7 @@ KisBasicU16HistogramProducer::KisBasicU16HistogramProducer(const KisID& id, KisC TQString KisBasicU16HistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); + return TQString("%1").arg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); } double KisBasicU16HistogramProducer::maximalZoom() const @@ -210,7 +210,7 @@ KisBasicF32HistogramProducer::KisBasicF32HistogramProducer(const KisID& id, KisC } TQString KisBasicF32HistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<float>(pos)); // XXX I doubt this is correct! + return TQString("%1").arg(static_cast<float>(pos)); // XXX I doubt this is correct! } double KisBasicF32HistogramProducer::maximalZoom() const { @@ -282,7 +282,7 @@ KisBasicF16HalfHistogramProducer::KisBasicF16HalfHistogramProducer(const KisID& } TQString KisBasicF16HalfHistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<float>(pos)); // XXX I doubt this is correct! + return TQString("%1").arg(static_cast<float>(pos)); // XXX I doubt this is correct! } double KisBasicF16HalfHistogramProducer::maximalZoom() const { @@ -356,7 +356,7 @@ TQValueVector<KisChannelInfo *> KisGenericRGBHistogramProducer::channels() { } TQString KisGenericRGBHistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); + return TQString("%1").arg(static_cast<TQ_UINT8>(pos * UINT8_MAX)); } double KisGenericRGBHistogramProducer::maximalZoom() const { @@ -433,7 +433,7 @@ TQValueVector<KisChannelInfo *> KisGenericLabHistogramProducer::channels() { } TQString KisGenericLabHistogramProducer::positionToString(double pos) const { - return TQString("%1").tqarg(static_cast<TQ_UINT16>(pos * UINT16_MAX)); + return TQString("%1").arg(static_cast<TQ_UINT16>(pos * UINT16_MAX)); } double KisGenericLabHistogramProducer::maximalZoom() const { diff --git a/chalk/chalkcolor/kis_profile.cc b/chalk/chalkcolor/kis_profile.cc index 2d0ad98f..3f5815ad 100644 --- a/chalk/chalkcolor/kis_profile.cc +++ b/chalk/chalkcolor/kis_profile.cc @@ -65,7 +65,7 @@ KisProfile::KisProfile(const cmsHPROFILE profile) // Make a raw data image ready for saving _cmsSaveProfileToMem(m_profile, 0, &bytesNeeded); // calc size - if(m_rawData.tqresize(bytesNeeded)) + if(m_rawData.resize(bytesNeeded)) { _cmsSaveProfileToMem(m_profile, m_rawData.data(), &bytesNeeded); // fill buffer cmsHPROFILE newprofile = cmsOpenProfileFromMem(m_rawData.data(), (DWORD) bytesNeeded); |