summaryrefslogtreecommitdiffstats
path: root/filters/kword
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 11:54:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-16 23:37:57 +0900
commitef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch)
tree03df826633e4ba084d133ca977c4fc37c74f21ac /filters/kword
parent895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff)
downloadkoffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz
koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'filters/kword')
-rw-r--r--filters/kword/abiword/abiwordexport.cpp2
-rw-r--r--filters/kword/abiword/abiwordimport.cpp2
-rw-r--r--filters/kword/kword1.3/import/kword13document.cpp6
-rw-r--r--filters/kword/kword1.3/import/kword13oasisgenerator.cpp8
-rw-r--r--filters/kword/libexport/KWEFKWordLeader.cpp12
-rw-r--r--filters/kword/oowriter/ExportFilter.cpp10
-rw-r--r--filters/kword/oowriter/oowriterimport.cpp8
-rw-r--r--filters/kword/wordperfect/import/parser.h2
8 files changed, 25 insertions, 25 deletions
diff --git a/filters/kword/abiword/abiwordexport.cpp b/filters/kword/abiword/abiwordexport.cpp
index d1b5a98a..ffc04016 100644
--- a/filters/kword/abiword/abiwordexport.cpp
+++ b/filters/kword/abiword/abiwordexport.cpp
@@ -1208,7 +1208,7 @@ bool AbiWordWorker::doFullDocumentInfo(const KWEFDocumentInfo& docInfo)
*m_streamOut << "</m>\n";
- TQDateTime now (TQDateTime::currentDateTime(Qt::UTC)); // current time in UTC
+ TQDateTime now (TQDateTime::currentDateTime(TQt::UTC)); // current time in UTC
*m_streamOut << "<m key=\"abiword.date_last_changed\">"
<< escapeAbiWordText(transformToTextDate(now))
<< "</m>\n";
diff --git a/filters/kword/abiword/abiwordimport.cpp b/filters/kword/abiword/abiwordimport.cpp
index bd6ea1e3..e443ada1 100644
--- a/filters/kword/abiword/abiwordimport.cpp
+++ b/filters/kword/abiword/abiwordimport.cpp
@@ -72,7 +72,7 @@ class StructureParser : public TQXmlDefaultHandler
public:
StructureParser(KoFilterChain* chain)
: m_chain(chain), m_pictureNumber(0), m_pictureFrameNumber(0), m_tableGroupNumber(0),
- m_timepoint(TQDateTime::currentDateTime(Qt::UTC)), m_fatalerror(false)
+ m_timepoint(TQDateTime::currentDateTime(TQt::UTC)), m_fatalerror(false)
{
createDocument();
structureStack.setAutoDelete(true);
diff --git a/filters/kword/kword1.3/import/kword13document.cpp b/filters/kword/kword1.3/import/kword13document.cpp
index 747d88a4..af9899d4 100644
--- a/filters/kword/kword1.3/import/kword13document.cpp
+++ b/filters/kword/kword1.3/import/kword13document.cpp
@@ -201,7 +201,7 @@ TQDateTime KWord13Document::lastPrintingDate( void ) const
}
else
{
- dt = TQDateTime::fromString( strDate, Qt::ISODate );
+ dt = TQDateTime::fromString( strDate, TQt::ISODate );
}
return dt;
}
@@ -230,7 +230,7 @@ TQDateTime KWord13Document::creationDate( void ) const
}
else
{
- dt = TQDateTime::fromString( strDate, Qt::ISODate );
+ dt = TQDateTime::fromString( strDate, TQt::ISODate );
}
return dt;
}
@@ -258,7 +258,7 @@ TQDateTime KWord13Document::modificationDate( void ) const
}
else
{
- dt = TQDateTime::fromString( strDate, Qt::ISODate );
+ dt = TQDateTime::fromString( strDate, TQt::ISODate );
}
return dt;
}
diff --git a/filters/kword/kword1.3/import/kword13oasisgenerator.cpp b/filters/kword/kword1.3/import/kword13oasisgenerator.cpp
index cc28136a..bf2ca8a5 100644
--- a/filters/kword/kword1.3/import/kword13oasisgenerator.cpp
+++ b/filters/kword/kword1.3/import/kword13oasisgenerator.cpp
@@ -760,7 +760,7 @@ void KWord13OasisGenerator::writeMetaXml(void)
if ( dt.isValid() )
{
writer->startElement( "meta:creation-date");
- writer->addTextNode( dt.toString( Qt::ISODate) );
+ writer->addTextNode( dt.toString( TQt::ISODate) );
writer->endElement();
}
@@ -768,7 +768,7 @@ void KWord13OasisGenerator::writeMetaXml(void)
if ( dt.isValid() )
{
writer->startElement( "dc:date");
- writer->addTextNode( dt.toString( Qt::ISODate) );
+ writer->addTextNode( dt.toString( TQt::ISODate) );
writer->endElement();
}
@@ -776,7 +776,7 @@ void KWord13OasisGenerator::writeMetaXml(void)
if ( dt.isValid() )
{
writer->startElement( "meta:print-date");
- writer->addTextNode( dt.toString( Qt::ISODate) );
+ writer->addTextNode( dt.toString( TQt::ISODate) );
writer->endElement();
}
@@ -839,7 +839,7 @@ void KWord13OasisGenerator::writePreviewFile(void)
}
// We have a 256x256x8 preview and we need a 128x128x32 preview with alpha channel
- TQImage preview( image.convertDepth( 32, Qt::ColorOnly ).smoothScale( 128, 128 ) );
+ TQImage preview( image.convertDepth( 32, TQt::ColorOnly ).smoothScale( 128, 128 ) );
if ( preview.isNull() )
{
kdWarning(30520) << "Could not create preview!" << endl;
diff --git a/filters/kword/libexport/KWEFKWordLeader.cpp b/filters/kword/libexport/KWEFKWordLeader.cpp
index 05e4024a..17e1d517 100644
--- a/filters/kword/libexport/KWEFKWordLeader.cpp
+++ b/filters/kword/libexport/KWEFKWordLeader.cpp
@@ -767,8 +767,8 @@ static void ProcessVariableSettingsTag (TQDomNode myNode, void *, KWEFKWordLeade
}
}
else
- vs.creationTime=TQDateTime::fromString(creation, Qt::ISODate);
- //kdDebug(30508) << "Creation time: " << vs.creationTime.toString( Qt::ISODate ) << endl;
+ vs.creationTime=TQDateTime::fromString(creation, TQt::ISODate);
+ //kdDebug(30508) << "Creation time: " << vs.creationTime.toString( TQt::ISODate ) << endl;
if ( modification.isEmpty() )
{
@@ -778,12 +778,12 @@ static void ProcessVariableSettingsTag (TQDomNode myNode, void *, KWEFKWordLeade
}
}
else
- vs.modificationTime=TQDateTime::fromString(modification, Qt::ISODate);
- //kdDebug(30508) << "Modification time: " << vs.modificationTime.toString( Qt::ISODate ) << endl;
+ vs.modificationTime=TQDateTime::fromString(modification, TQt::ISODate);
+ //kdDebug(30508) << "Modification time: " << vs.modificationTime.toString( TQt::ISODate ) << endl;
if (!print.isEmpty())
- vs.printTime=TQDateTime::fromString(print, Qt::ISODate);
- //kdDebug(30508) << "Print time: " << vs.printTime.toString( Qt::ISODate ) << endl;
+ vs.printTime=TQDateTime::fromString(print, TQt::ISODate);
+ //kdDebug(30508) << "Print time: " << vs.printTime.toString( TQt::ISODate ) << endl;
leader->doVariableSettings (vs);
}
diff --git a/filters/kword/oowriter/ExportFilter.cpp b/filters/kword/oowriter/ExportFilter.cpp
index 0894d044..d96b451a 100644
--- a/filters/kword/oowriter/ExportFilter.cpp
+++ b/filters/kword/oowriter/ExportFilter.cpp
@@ -519,21 +519,21 @@ void OOWriterWorker::writeMetaXml(void)
if (m_varSet.creationTime.isValid())
{
zipWriteData(" <meta:creation-date>");
- zipWriteData(escapeOOText(m_varSet.creationTime.toString(Qt::ISODate)));
+ zipWriteData(escapeOOText(m_varSet.creationTime.toString(TQt::ISODate)));
zipWriteData("</meta:creation-date>\n");
}
if (m_varSet.modificationTime.isValid())
{
zipWriteData(" <dc:date>");
- zipWriteData(escapeOOText(m_varSet.modificationTime.toString(Qt::ISODate)));
+ zipWriteData(escapeOOText(m_varSet.modificationTime.toString(TQt::ISODate)));
zipWriteData("</dc:date>\n");
}
if (m_varSet.printTime.isValid())
{
zipWriteData(" <meta:print-date>");
- zipWriteData(escapeOOText(m_varSet.printTime.toString(Qt::ISODate)));
+ zipWriteData(escapeOOText(m_varSet.printTime.toString(TQt::ISODate)));
zipWriteData("</meta:print-date>\n");
}
@@ -1577,7 +1577,7 @@ void OOWriterWorker::processNote( const VariableData& variable )
// We use the document creation date as creation date for the annotation
// (OOWriter uses only the date part, there is no time part)
if ( m_varSet.creationTime.isValid() )
- *m_streamOut << escapeOOText( m_varSet.creationTime.date().toString( Qt::ISODate ) );
+ *m_streamOut << escapeOOText( m_varSet.creationTime.date().toString( TQt::ISODate ) );
else
*m_streamOut << "1970-01-01";
@@ -2217,7 +2217,7 @@ TQString OOWriterWorker::makeAutomaticStyleName(const TQString& prefix, ulong& c
return str2;
// If it is still not unique, try a time stamp.
- const TQDateTime dt(TQDateTime::currentDateTime(Qt::UTC));
+ const TQDateTime dt(TQDateTime::currentDateTime(TQt::UTC));
str2 = str + "_" + TQString::number(dt.toTime_t(),16);
if (m_styleMap.find(str2)==m_styleMap.end())
diff --git a/filters/kword/oowriter/oowriterimport.cpp b/filters/kword/oowriter/oowriterimport.cpp
index 5e54ce06..19449823 100644
--- a/filters/kword/oowriter/oowriterimport.cpp
+++ b/filters/kword/oowriter/oowriterimport.cpp
@@ -175,7 +175,7 @@ KoFilter::ConversionStatus OoWriterImport::convert( TQCString const & from, TQCS
{
// ### TODO: thumbnail.setAlphaBuffer( false ); // legacy KOffice previews have no alpha channel
// Legacy KOffice previews are 256x256x8 instead of 128x128x32
- TQImage preview( thumbnail.smoothScale( 256, 256 ).convertDepth(8, Qt::AvoidDither | Qt::DiffuseDither) );
+ TQImage preview( thumbnail.smoothScale( 256, 256 ).convertDepth(8, TQt::AvoidDither | TQt::DiffuseDither) );
// Not to be able to generate a preview is not an error
if ( !preview.isNull() )
{
@@ -1817,7 +1817,7 @@ TQString OoWriterImport::appendPicture(TQDomDocument& doc, const TQDomElement& o
strExtension=href.mid(result+1); // As we are using KoPicture, the extension should be without the dot.
}
TQString filename(href.mid(1));
- KoPictureKey key(filename, TQDateTime::currentDateTime(Qt::UTC));
+ KoPictureKey key(filename, TQDateTime::currentDateTime(TQt::UTC));
picture.setKey(key);
if (!m_zip)
@@ -1961,7 +1961,7 @@ void OoWriterImport::appendField(TQDomDocument& doc, TQDomElement& outputFormats
{
subtype = 1; // current (or fixed) date
// Standard form of the date is in date-value. Example: 2004-01-21T10:57:05
- TQDateTime dt(TQDate::fromString(object.attributeNS( ooNS::text, "date-value", TQString()), Qt::ISODate));
+ TQDateTime dt(TQDate::fromString(object.attributeNS( ooNS::text, "date-value", TQString()), TQt::ISODate));
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
if (!dt.isValid())
@@ -1990,7 +1990,7 @@ void OoWriterImport::appendField(TQDomDocument& doc, TQDomElement& outputFormats
else if (localName == "time")
{
// Use TQDateTime to work around a possible problem of TQTime::FromString in TQt 3.2.2
- TQDateTime dt(TQDateTime::fromString(object.attributeNS( ooNS::text, "time-value", TQString()), Qt::ISODate));
+ TQDateTime dt(TQDateTime::fromString(object.attributeNS( ooNS::text, "time-value", TQString()), TQt::ISODate));
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
diff --git a/filters/kword/wordperfect/import/parser.h b/filters/kword/wordperfect/import/parser.h
index 2a69ad27..9fa88052 100644
--- a/filters/kword/wordperfect/import/parser.h
+++ b/filters/kword/wordperfect/import/parser.h
@@ -64,7 +64,7 @@ namespace WP
{ Left, Right, Center, Full, All };
enum TabType
- { LeftTab, CenterTab, RightTab, DecimalTab,Qt::VerticalTab };
+ { LeftTab, CenterTab, RightTab, DecimalTab,TQt::VerticalTab };
class Tab
{