diff options
Diffstat (limited to 'krita/kritacolor/kis_profile.cc')
-rw-r--r-- | krita/kritacolor/kis_profile.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krita/kritacolor/kis_profile.cc b/krita/kritacolor/kis_profile.cc index 83880398..b59eeadb 100644 --- a/krita/kritacolor/kis_profile.cc +++ b/krita/kritacolor/kis_profile.cc @@ -24,9 +24,9 @@ #include <config.h> #include LCMS_HEADER -#include <qimage.h> -#include <qtextstream.h> -#include <qfile.h> +#include <tqimage.h> +#include <tqtextstream.h> +#include <tqfile.h> #include <kdebug.h> @@ -39,9 +39,9 @@ #include <X11/Xatom.h> #include <fixx11h.h> -KisProfile::KisProfile(QByteArray rawData) +KisProfile::KisProfile(TQByteArray rawData) : m_rawData(rawData), - m_filename( QString() ), + m_filename( TQString() ), m_valid( false ), m_suitableForOutput(false) { @@ -49,7 +49,7 @@ KisProfile::KisProfile(QByteArray rawData) init(); } -KisProfile::KisProfile(const QString& file) +KisProfile::KisProfile(const TQString& file) : m_filename(file), m_valid( false ), m_suitableForOutput( false ) @@ -58,7 +58,7 @@ KisProfile::KisProfile(const QString& file) KisProfile::KisProfile(const cmsHPROFILE profile) : m_profile(profile), - m_filename( QString() ), + m_filename( TQString() ), m_valid( true ) { size_t bytesNeeded=0; @@ -86,7 +86,7 @@ KisProfile::~KisProfile() bool KisProfile::load() { - QFile file(m_filename); + TQFile file(m_filename); file.open(IO_ReadOnly); m_rawData = file.readAll(); m_profile = cmsOpenProfileFromMem(m_rawData.data(), (DWORD)m_rawData.size()); @@ -140,7 +140,7 @@ cmsHPROFILE KisProfile::profile() { #if 0 if (m_profile = 0) { - QFile file(m_filename); + TQFile file(m_filename); file.open(IO_ReadOnly); m_rawData = file.readAll(); m_profile = cmsOpenProfileFromMem(m_rawData.data(), (DWORD)m_rawData.size()); @@ -168,13 +168,13 @@ KisAnnotationSP KisProfile::annotation() const KisProfile * KisProfile::getScreenProfile (int screen) { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 Atom type; int format; unsigned long nitems; unsigned long bytes_after; - Q_UINT8 * str; + TQ_UINT8 * str; static Atom icc_atom = XInternAtom( qt_xdisplay(), "_ICC_PROFILE", False ); @@ -192,8 +192,8 @@ KisProfile * KisProfile::getScreenProfile (int screen) (unsigned char **) &str) ) { - QByteArray bytes (nitems); - bytes.assign((char*)str, (Q_UINT32)nitems); + TQByteArray bytes (nitems); + bytes.assign((char*)str, (TQ_UINT32)nitems); return new KisProfile(bytes); } else { |