From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcoloredit/kcoloreditdoc.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kcoloredit/kcoloreditdoc.cpp') diff --git a/kcoloredit/kcoloreditdoc.cpp b/kcoloredit/kcoloreditdoc.cpp index 536300a5..ea9a0433 100644 --- a/kcoloredit/kcoloreditdoc.cpp +++ b/kcoloredit/kcoloreditdoc.cpp @@ -16,10 +16,10 @@ ***************************************************************************/ // include files for Qt -#include -#include -#include -#include +#include +#include +#include +#include // include files for KDE #include @@ -31,9 +31,9 @@ #include "kcoloreditview.h" #include "resource.h" -KColorEditDoc::KColorEditDoc(QWidget *parent, const char *name) : QObject(parent, name), +KColorEditDoc::KColorEditDoc(TQWidget *parent, const char *name) : TQObject(parent, name), m_palette(), m_paletteHistory(&m_palette, 0) { - m_pViewList = new QPtrList(); + m_pViewList = new TQPtrList(); m_pViewList->setAutoDelete(true); } @@ -57,22 +57,22 @@ void KColorEditDoc::setModified(bool b) { emit modified( b ); } -void KColorEditDoc::setAbsFilePath(const QString &filename) +void KColorEditDoc::setAbsFilePath(const TQString &filename) { m_absFilePath=filename; } -const QString &KColorEditDoc::absFilePath() const +const TQString &KColorEditDoc::absFilePath() const { return m_absFilePath; } -void KColorEditDoc::setTitle(const QString &_t) +void KColorEditDoc::setTitle(const TQString &_t) { m_title=_t; } -const QString &KColorEditDoc::title() const +const TQString &KColorEditDoc::title() const { return m_title; } @@ -109,7 +109,7 @@ bool KColorEditDoc::saveModified() KColorEditApp *window=(KColorEditApp *) parent(); int want_save = KMessageBox::warningYesNoCancel(window, i18n("The current file has been modified.\n" - "Do you want to save it?"), QString::null, KStdGuiItem::save(), i18n("Do Not Save")); + "Do you want to save it?"), TQString::null, KStdGuiItem::save(), i18n("Do Not Save")); switch(want_save) { case KMessageBox::Yes: @@ -151,7 +151,7 @@ bool KColorEditDoc::newDocument() { deleteContents(); setModified(false); - setAbsFilePath( QDir::homeDirPath() ); + setAbsFilePath( TQDir::homeDirPath() ); setTitle( i18n("Untitled") ); setPaletteCursorPos(0); setPaletteSelection(0, 0); @@ -159,12 +159,12 @@ bool KColorEditDoc::newDocument() return true; } -bool KColorEditDoc::openDocument(const QString& filename) { +bool KColorEditDoc::openDocument(const TQString& filename) { if(filename.isEmpty()) return newDocument(); else { deleteContents(); - QFileInfo fileInfo(filename); + TQFileInfo fileInfo(filename); setAbsFilePath( fileInfo.absFilePath() ); if(!m_palette.load( absFilePath() )) { setErrorString(m_palette.errorString()); @@ -181,7 +181,7 @@ bool KColorEditDoc::openDocument(const QString& filename) { return true; } -bool KColorEditDoc::saveDocument(const QString& filename) { +bool KColorEditDoc::saveDocument(const TQString& filename) { if(!m_palette.save( filename )) { setErrorString(m_palette.errorString()); return false; @@ -194,11 +194,11 @@ void KColorEditDoc::deleteContents() { m_palette.deleteContents(); } -void KColorEditDoc::setErrorString(const QString& string) { +void KColorEditDoc::setErrorString(const TQString& string) { m_errorString = string; } -const QString& KColorEditDoc::errorString() const { +const TQString& KColorEditDoc::errorString() const { return m_errorString; } @@ -232,8 +232,8 @@ int KColorEditDoc::paletteSelectionEnd() const { } void KColorEditDoc::copyToClipboard(Palette& palette) { - QString text; - QTextOStream stream(&text); + TQString text; + TQTextOStream stream(&text); palette.save(stream, 0, false); KApplication::clipboard()->setText(text); @@ -258,8 +258,8 @@ void KColorEditDoc::cut() { void KColorEditDoc::paste() { Palette palettePaste; - QString text; - QTextIStream stream(&text); + TQString text; + TQTextIStream stream(&text); text = KApplication::clipboard()->text(); if(palettePaste.load( stream, false )) { m_paletteHistory.paste(paletteCursorPos(), palettePaste); -- cgit v1.2.1