diff options
author | Michele Calgaro <[email protected]> | 2023-11-05 11:54:26 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-16 23:37:57 +0900 |
commit | ef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch) | |
tree | 03df826633e4ba084d133ca977c4fc37c74f21ac /filters | |
parent | 895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff) | |
download | koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'filters')
22 files changed, 92 insertions, 92 deletions
diff --git a/filters/chalk/raw/dcraw.c b/filters/chalk/raw/dcraw.c index b937e1da..ac9fe911 100644 --- a/filters/chalk/raw/dcraw.c +++ b/filters/chalk/raw/dcraw.c @@ -3514,7 +3514,7 @@ int CLASS parse_tiff_ifd (int base, int level) case 0x111: /* StripOffset */ data_offset = get4(); break; - case 0x112: /* Qt::Orientation */ + case 0x112: /* Orientation */ flip = flip_map[(get2()-1) & 7]; break; case 0x115: /* SamplesPerPixel */ diff --git a/filters/karbon/eps/epsexport.cpp b/filters/karbon/eps/epsexport.cpp index 023074da..6d062104 100644 --- a/filters/karbon/eps/epsexport.cpp +++ b/filters/karbon/eps/epsexport.cpp @@ -197,7 +197,7 @@ EpsExport::visitVDocument( VDocument& document ) TQDateTime now( TQDateTime::currentDateTime() ); *m_stream << - "%%CreationDate: (" << now.toString( Qt::LocalDate ) << ")\n" + "%%CreationDate: (" << now.toString( TQt::LocalDate ) << ")\n" "%%For: (" << authorPage->fullName() << ") (" << authorPage->company() << ")\n" "%%Title: (" << docInfo.title() << ")" << endl; diff --git a/filters/karbon/eps/epsexportdlg.cpp b/filters/karbon/eps/epsexportdlg.cpp index 4bf4aec7..6ceb99e0 100644 --- a/filters/karbon/eps/epsexportdlg.cpp +++ b/filters/karbon/eps/epsexportdlg.cpp @@ -34,7 +34,7 @@ EpsExportDlg::EpsExportDlg( TQWidget* parent, const char* name ) { TQVBox* page = makeVBoxMainWidget(); - m_psLevelButtons = new TQButtonGroup( 1, Qt::Horizontal, + m_psLevelButtons = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Options" ), page ); TQRadioButton* radio; diff --git a/filters/karbon/wmf/wmfexport.cpp b/filters/karbon/wmf/wmfexport.cpp index de929ca8..6236aa57 100644 --- a/filters/karbon/wmf/wmfexport.cpp +++ b/filters/karbon/wmf/wmfexport.cpp @@ -225,15 +225,15 @@ void WmfExport::getBrush( TQBrush& brush, const VFill *fill ) { if( (fill->type() == VFill::solid) || (fill->type() == VFill::grad) || (fill->type() == VFill::patt) ) { if ( fill->color().opacity() < 0.1 ) { - brush.setStyle( Qt::NoBrush ); + brush.setStyle( TQt::NoBrush ); } else { - brush.setStyle( Qt::SolidPattern ); + brush.setStyle( TQt::SolidPattern ); brush.setColor( fill->color() ); } } else { - brush.setStyle( Qt::NoBrush ); + brush.setStyle( TQt::NoBrush ); } } @@ -244,17 +244,17 @@ void WmfExport::getPen( TQPen& pen, const VStroke *stroke ) { // TODO : Dash pattern. if ( stroke->lineCap() == VStroke::capRound ) { - pen.setCapStyle( Qt::RoundCap ); + pen.setCapStyle( TQt::RoundCap ); } else { - pen.setCapStyle( Qt::SquareCap ); + pen.setCapStyle( TQt::SquareCap ); } - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setColor( stroke->color() ); pen.setWidth( coordX( stroke->lineWidth() ) ); } else { - pen.setStyle( Qt::NoPen ); + pen.setStyle( TQt::NoPen ); } } diff --git a/filters/karbon/wmf/wmfimportparser.cpp b/filters/karbon/wmf/wmfimportparser.cpp index 275490fe..58be2e08 100644 --- a/filters/karbon/wmf/wmfimportparser.cpp +++ b/filters/karbon/wmf/wmfimportparser.cpp @@ -49,7 +49,7 @@ bool WMFImportParser::play( VDocument& doc ) bool WMFImportParser::begin() { TQRect bounding = boundingRect(); - mBackgroundMode = Qt::TransparentMode; + mBackgroundMode = TQt::TransparentMode; mCurrentOrg.setX( bounding.left() ); mCurrentOrg.setY( bounding.top() ); @@ -111,7 +111,7 @@ void WMFImportParser::setBackgroundColor( const TQColor &c ) { } -void WMFImportParser::setBackgroundMode( Qt::BGMode mode ) { +void WMFImportParser::setBackgroundMode( TQt::BGMode mode ) { mBackgroundMode = mode; } diff --git a/filters/karbon/wmf/wmfimportparser.h b/filters/karbon/wmf/wmfimportparser.h index 4e904d7f..a297c996 100644 --- a/filters/karbon/wmf/wmfimportparser.h +++ b/filters/karbon/wmf/wmfimportparser.h @@ -60,7 +60,7 @@ private: // Drawing attributes/modes void setBackgroundColor( const TQColor &c ); - void setBackgroundMode( Qt::BGMode mode ); + void setBackgroundMode( TQt::BGMode mode ); void setRasterOp( TQt::RasterOp op ); /** @@ -128,7 +128,7 @@ private: TQRegion mClippingRegion; TQPen mPen; TQBrush mBrush; - Qt::BGMode mBackgroundMode; + TQt::BGMode mBackgroundMode; TQColor mBackgroundColor; // current origin of WMF logical coordinate TQPoint mCurrentOrg; diff --git a/filters/kpresenter/ooimpress/ooimpressimport.cpp b/filters/kpresenter/ooimpress/ooimpressimport.cpp index 5d6c9da4..8223e284 100644 --- a/filters/kpresenter/ooimpress/ooimpressimport.cpp +++ b/filters/kpresenter/ooimpress/ooimpressimport.cpp @@ -2155,7 +2155,7 @@ void OoImpressImport::appendField(TQDomDocument& doc, TQDomElement& e, const TQD if (isTextNS && tag == "date") { - 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"); @@ -2190,7 +2190,7 @@ void OoImpressImport::appendField(TQDomDocument& doc, TQDomElement& e, const TQD else if (isTextNS && tag == "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/kpresenter/powerpoint/libppt/powerpoint.h b/filters/kpresenter/powerpoint/libppt/powerpoint.h index b2a0f649..2f3b5ee9 100644 --- a/filters/kpresenter/powerpoint/libppt/powerpoint.h +++ b/filters/kpresenter/powerpoint/libppt/powerpoint.h @@ -2095,8 +2095,8 @@ public: NotesBody, CenteredTitle, Subtitle, - Qt::VerticalTextTitle, - Qt::VerticalTextBody, + TQt::VerticalTextTitle, + TQt::VerticalTextBody, NotesSlideImage, Object, Graph, diff --git a/filters/kspread/csv/csvexportdialog.cpp b/filters/kspread/csv/csvexportdialog.cpp index ebf1523e..fe1a7c80 100644 --- a/filters/kspread/csv/csvexportdialog.cpp +++ b/filters/kspread/csv/csvexportdialog.cpp @@ -68,7 +68,7 @@ CSVExportDialog::CSVExportDialog( TQWidget * parent ) m_dialog->comboBoxEncoding->insertStringList(encodings); - setButtonBoxOrientation (Qt::Vertical ); + setButtonBoxOrientation (TQt::Vertical ); setMainWidget(m_dialog); diff --git a/filters/kspread/excel/sidewinder/excel.cpp b/filters/kspread/excel/sidewinder/excel.cpp index b956384e..3f7240f3 100644 --- a/filters/kspread/excel/sidewinder/excel.cpp +++ b/filters/kspread/excel/sidewinder/excel.cpp @@ -4662,8 +4662,8 @@ void XFRecord::dump( std::ostream& out ) const out << " Format Index : " << formatIndex() << std::endl; out << " Locked : " << (locked()?"Yes":"No") << std::endl; out << " Formula Visibility : " << (formulaHidden()?"Hidden":"Visible") << std::endl; - out << " Qt::Horizontal Align : " << horizontalAlignmentAsString() << std::endl; - out << " Qt::Vertical Align : " << verticalAlignmentAsString() << std::endl; + out << " Horizontal Align : " << horizontalAlignmentAsString() << std::endl; + out << " Vertical Align : " << verticalAlignmentAsString() << std::endl; out << " Text Wrap : " << ( textWrap() ? "yes" : "no" ) << std::endl; out << " Rotation : " << rotationAngle() << std::endl; out << " Stacked Letters : " << ( stackedLetters() ? "yes" : "no" ) << std::endl; diff --git a/filters/kspread/gnumeric/gnumericimport.cpp b/filters/kspread/gnumeric/gnumericimport.cpp index f437aad0..4b037ad1 100644 --- a/filters/kspread/gnumeric/gnumericimport.cpp +++ b/filters/kspread/gnumeric/gnumericimport.cpp @@ -488,63 +488,63 @@ void convertToPen( TQPen & pen, int style ) case 0: break; case 1: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setWidth( 1 ); break; case 2: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setWidth( 2 ); break; case 3: - pen.setStyle( Qt::DashLine ); + pen.setStyle( TQt::DashLine ); pen.setWidth( 1 ); break; case 4: // width should be 1 but otherwise it would be the same as 7 - pen.setStyle( Qt::DotLine ); + pen.setStyle( TQt::DotLine ); pen.setWidth( 2 ); break; case 5: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setWidth( 3 ); break; case 6: // TODO should be double - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setWidth( 1 ); break; case 7: // very thin dots => no match in KSpread - pen.setStyle( Qt::DotLine ); + pen.setStyle( TQt::DotLine ); pen.setWidth( 1 ); break; case 8: - pen.setStyle( Qt::DashLine ); + pen.setStyle( TQt::DashLine ); pen.setWidth( 2 ); break; case 9: - pen.setStyle( Qt::DashDotLine ); + pen.setStyle( TQt::DashDotLine ); pen.setWidth( 1 ); break; case 10: - pen.setStyle( Qt::DashDotLine ); + pen.setStyle( TQt::DashDotLine ); pen.setWidth( 2 ); break; case 11: - pen.setStyle( Qt::DashDotDotLine ); + pen.setStyle( TQt::DashDotDotLine ); pen.setWidth( 1 ); break; case 12: - pen.setStyle( Qt::DashDotDotLine ); + pen.setStyle( TQt::DashDotDotLine ); pen.setWidth( 2 ); break; case 13: // TODO: long dash, short dash, long dash,... - pen.setStyle( Qt::DashDotLine ); + pen.setStyle( TQt::DashDotLine ); pen.setWidth( 3 ); break; default: - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); pen.setWidth( 1 ); } } @@ -1178,7 +1178,7 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table) else if (shade == "1") { /* 1 Solid */ - //kspread_cell->format()->setBackGroundBrushStyle(Qt::SolidPattern); + //kspread_cell->format()->setBackGroundBrushStyle(TQt::SolidPattern); //This is as empty /* What should this be? */ @@ -1186,86 +1186,86 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table) else if (shade == "2") { /* 2 75% */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense2Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense2Pattern); } else if (shade == "3") { /* 3 50% */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense4Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense4Pattern); } else if (shade == "4") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense5Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense5Pattern); /* This should be 25%... All qt has is 37% */ /* 4 25% */ } else if (shade == "5") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense6Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense6Pattern); /* 5 12.5% */ } else if (shade == "6") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense7Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense7Pattern); /* 6 6.25% */ } else if (shade == "7") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::HorPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::HorPattern); /* 7 Horizontal Stripe */ } else if (shade == "8") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::VerPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::VerPattern); /* 8 Vertical Stripe */ } else if (shade == "9") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::BDiagPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::BDiagPattern); /* 9 Reverse Diagonal Stripe */ } else if (shade == "10") { /* 10 Diagonal Stripe */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::FDiagPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::FDiagPattern); } else if (shade == "11") { /* 11 Diagonal Crosshatch */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern); } else if (shade == "12") { /* 12 Thick Diagonal Crosshatch TODO!*/ - kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern); } else if (shade == "13") { /* 13 Thin Horizontal Stripe TODO: wrong: this is thick!*/ - kspread_cell->format()->setBackGroundBrushStyle(Qt::HorPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::HorPattern); } else if (shade == "14") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::VerPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::VerPattern); } else if (shade == "15") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::FDiagPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::FDiagPattern); } else if (shade == "16") { /* 16 Thick Reverse Stripe TODO:*/ - kspread_cell->format()->setBackGroundBrushStyle(Qt::BDiagPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::BDiagPattern); } else if (shade == "17") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern); } else if (shade == "18") { - kspread_cell->format()->setBackGroundBrushStyle(Qt::DiagCrossPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::DiagCrossPattern); } else if (shade == "19") { @@ -1290,12 +1290,12 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table) else if (shade == "24") { /* 24 100% */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::SolidPattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::SolidPattern); } else if (shade == "25") { /* 25 87.5% */ - kspread_cell->format()->setBackGroundBrushStyle(Qt::Dense2Pattern); + kspread_cell->format()->setBackGroundBrushStyle(TQt::Dense2Pattern); } } diff --git a/filters/kspread/gnumeric/status.html b/filters/kspread/gnumeric/status.html index a25cdf4b..c6c9ef89 100644 --- a/filters/kspread/gnumeric/status.html +++ b/filters/kspread/gnumeric/status.html @@ -39,7 +39,7 @@ KOffice filters status: GNUmeric (GNOME spreadsheet)</h1></center> <tr BGCOLOR="#CCCCFF"> <td VALIGN=TOP><b><font size="+1">Features</font></b></td> -<td>Vertical &Qt::Horizontal Alignment, text wrapping, indention +<td>Vertical & Horizontal Alignment, text wrapping, indention <br>Background, Patter & Foreground color <br>Fonts: <br> @@ -61,7 +61,7 @@ Family <br>Page: size, orientation, borders, header and footer <br>Border: color, style, width for all 6 types <br>Background pattern: style, color -<br>Cell Size:Qt::Horizontal &Qt::Vertical +<br>Cell Size: horizontal & vertical <br>Hidden Columns <br>Default row heights and column widths <br>Area name @@ -81,7 +81,7 @@ Family <tr BGCOLOR="#EEEEFF"> <td VALIGN=TOP><b><font size="+1">Todo</font></b></td> -<td>Cell Size:Qt::Horizontal &Qt::Vertical (Export) (kspread doesn't +<td>Cell Size: horizontal & vertical (Export) (kspread doesn't support retriving the first "rowFormat" and colFormat".) <br> <br> @@ -194,7 +194,7 @@ Faure</a> <a href="mailto:[email protected]">Werner Trobin</a></td> <tr BGCOLOR="#CCCCFF"> <td VALIGN=TOP><b><font size="+1">Features</font></b></td> -<td>Vertical &Qt::Horizontal Alignment +<td>Vertical & Horizontal Alignment <br>Background & Foreground color <br>Fonts: <br> @@ -208,7 +208,7 @@ Bold <br>Multiple Sheets (Tables) <br>Formulas!!! (ExprID) <br>Selections -<br>Cell Size:Qt::Horizontal &Qt::Vertical +<br>Cell Size: horizontal & vertical <br>Hidden columns/rows <br>Selected Tab <br>Paper layout diff --git a/filters/kspread/opencalc/opencalcexport.cpp b/filters/kspread/opencalc/opencalcexport.cpp index 2db60420..8f8018c5 100644 --- a/filters/kspread/opencalc/opencalcexport.cpp +++ b/filters/kspread/opencalc/opencalcexport.cpp @@ -231,7 +231,7 @@ bool OpenCalcExport::exportDocInfo( KoStore * store, const Doc* ksdoc ) if ( dt.isValid() ) { data = meta.createElement( "dc:date" ); - data.appendChild( meta.createTextNode( dt.toString( Qt::ISODate ) ) ); + data.appendChild( meta.createTextNode( dt.toString( TQt::ISODate ) ) ); officeMeta.appendChild( data ); } diff --git a/filters/kspread/opencalc/opencalcimport.cpp b/filters/kspread/opencalc/opencalcimport.cpp index 6dc3216e..2ccf3173 100644 --- a/filters/kspread/opencalc/opencalcimport.cpp +++ b/filters/kspread/opencalc/opencalcimport.cpp @@ -2017,17 +2017,17 @@ void OpenCalcImport::loadBorder( Format * layout, TQString const & borderDef, bP kdDebug(30518) << "Borderstyle: " << s << endl; if ( s == "solid" || s == "double" ) - pen.setStyle( Qt::SolidLine ); + pen.setStyle( TQt::SolidLine ); else { #if 0 // TODO: not supported by oocalc - pen.setStyle( Qt::DashLine ); - pen.setStyle( Qt::DotLine ); - pen.setStyle( Qt::DashDotLine ); - pen.setStyle( Qt::DashDotDotLine ); + pen.setStyle( TQt::DashLine ); + pen.setStyle( TQt::DotLine ); + pen.setStyle( TQt::DashDotLine ); + pen.setStyle( TQt::DashDotDotLine ); #endif - pen.setStyle( Qt::SolidLine ); //default. + pen.setStyle( TQt::SolidLine ); //default. } ++p2; 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 { |