diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-04 02:22:38 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-04 02:22:38 +0000 |
commit | 98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch) | |
tree | a711801e47696fb0cf162abd7330e0b5b480ba39 /kig/filters | |
parent | 421a1845137c7c396b5d03bce53237fcb149d602 (diff) | |
download | tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/filters')
-rw-r--r-- | kig/filters/cabri-filter.cc | 2 | ||||
-rw-r--r-- | kig/filters/drgeo-filter-chooserbase.ui | 10 | ||||
-rw-r--r-- | kig/filters/drgeo-filter.cc | 34 | ||||
-rw-r--r-- | kig/filters/drgeo-filter.h | 2 | ||||
-rw-r--r-- | kig/filters/filters-common.cc | 2 | ||||
-rw-r--r-- | kig/filters/imageexporteroptionsbase.ui | 4 | ||||
-rw-r--r-- | kig/filters/kgeo-filter.cc | 4 | ||||
-rw-r--r-- | kig/filters/kgeo-filter.h | 4 | ||||
-rw-r--r-- | kig/filters/kgeo-resource.h | 2 | ||||
-rw-r--r-- | kig/filters/kseg-filter.cc | 10 | ||||
-rw-r--r-- | kig/filters/latexexporter.cc | 2 | ||||
-rw-r--r-- | kig/filters/latexexporteroptions.ui | 4 | ||||
-rw-r--r-- | kig/filters/native-filter.cc | 4 | ||||
-rw-r--r-- | kig/filters/svgexporteroptions.ui | 4 |
14 files changed, 44 insertions, 44 deletions
diff --git a/kig/filters/cabri-filter.cc b/kig/filters/cabri-filter.cc index 3cadf522..1413d56a 100644 --- a/kig/filters/cabri-filter.cc +++ b/kig/filters/cabri-filter.cc @@ -548,7 +548,7 @@ KigDocument* KigFilterCabri::load( const TQString& file ) } else { - notSupported( file, i18n( "This Cabri file contains a \"%1\" object, " + notSupported( file, i18n( "This Cabri file tqcontains a \"%1\" object, " "which Kig does not currently support." ).arg( obj.type ) ); return 0; } diff --git a/kig/filters/drgeo-filter-chooserbase.ui b/kig/filters/drgeo-filter-chooserbase.ui index 829d84cc..c842721f 100644 --- a/kig/filters/drgeo-filter-chooserbase.ui +++ b/kig/filters/drgeo-filter-chooserbase.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>KigFilterDrgeoChooserBase</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -30,10 +30,10 @@ <cstring>ExplanationTextLabel</cstring> </property> <property name="text"> - <string>The current Dr. Geo file contains more than one figure. + <string>The current Dr. Geo file tqcontains more than one figure. Please select which to import:</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter</set> </property> </widget> @@ -96,7 +96,7 @@ Please select which to import:</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -131,7 +131,7 @@ Please select which to import:</string> </widget> </vbox> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>klistbox.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/kig/filters/drgeo-filter.cc b/kig/filters/drgeo-filter.cc index 82438a57..d43c4729 100644 --- a/kig/filters/drgeo-filter.cc +++ b/kig/filters/drgeo-filter.cc @@ -105,7 +105,7 @@ KigDocument* KigFilterDrgeo::load( const TQString& file ) } if ( figures.isEmpty() ) { if( nmacros > 0 ) - warning( i18n( "The Dr. Geo file \"%1\" is a macro file so it contains no " + warning( i18n( "The Dr. Geo file \"%1\" is a macro file so it tqcontains no " "figures." ).arg( file ) ); else warning( i18n( "There are no figures in Dr. Geo file \"%1\"." ).arg( file ) ); @@ -332,7 +332,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co else { // oc = fact->constrainedPointCalcer( parents[0], value ); - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -369,7 +369,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co type = ArcLineIntersectionType::instance(); else { - notSupported( file, i18n( "This Dr. Geo file contains an intersection type, " + notSupported( file, i18n( "This Dr. Geo file tqcontains an intersection type, " "which Kig does not currently support." ) ); return false; } @@ -386,7 +386,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co oc = new ObjectTypeCalcer( RotationType::instance(), parents ); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -418,7 +418,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co type = CircleBCPType::instance(); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -431,7 +431,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co type = ArcBTPType::instance(); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -452,7 +452,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co } else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -468,7 +468,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co } else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -489,7 +489,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co oc = new ObjectTypeCalcer( RotationType::instance(), parents ); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -617,7 +617,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co } else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -635,7 +635,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co } else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -676,7 +676,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co oc = fact->labelCalcer( text, Coordinate( x, y ), false, std::vector<ObjectCalcer*>(), *ret ); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -688,7 +688,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co oc = fact->locusCalcer( parents[0], parents[1] ); else { - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -708,7 +708,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co #ifdef DRGEO_DEBUG kdDebug() << ">>>>>>>>> UNKNOWN OBJECT" << endl; #endif - notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, " + notSupported( file, i18n( "This Dr. Geo file tqcontains a \"%1 %2\" object, " "which Kig does not currently support." ).arg( domelem.tagName() ).arg( domelem.attribute( "type" ) ) ); return false; @@ -747,8 +747,8 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co TQString ps = domelem.attribute( "style" ); int pointstyle = ObjectDrawer::pointStyleFromString( ps ); // show this object? - bool show = ( ( domelem.attribute( "masked" ) != "True" ) && - ( domelem.attribute( "masked" ) != "Alway" ) ); + bool show = ( ( domelem.attribute( "tqmasked" ) != "True" ) && + ( domelem.attribute( "tqmasked" ) != "Alway" ) ); // costructing the ObjectDrawer* ObjectDrawer* d = new ObjectDrawer( co, w, show, s, pointstyle ); // reading object name @@ -770,7 +770,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co { std::vector<ObjectCalcer*> args2; args2.push_back( o->nameCalcer() ); - oc2 = fact->attachedLabelCalcer( TQString::fromLatin1( "%1" ), oc, + oc2 = fact->attachedLabelCalcer( TQString::tqfromLatin1( "%1" ), oc, static_cast<const PointImp*>( oc->imp() )->coordinate(), false, args2, *ret ); co = Qt::black; diff --git a/kig/filters/drgeo-filter.h b/kig/filters/drgeo-filter.h index 9b0ef369..ddd2359e 100644 --- a/kig/filters/drgeo-filter.h +++ b/kig/filters/drgeo-filter.h @@ -26,7 +26,7 @@ class KigDocument; class TQString; /** - * This is an import filter for the GNOME geometry program DrGeo. + * This is an import filter for the GNOME tqgeometry program DrGeo. */ class KigFilterDrgeo : public KigFilter diff --git a/kig/filters/filters-common.cc b/kig/filters/filters-common.cc index 4ba24e9f..6ae6cef9 100644 --- a/kig/filters/filters-common.cc +++ b/kig/filters/filters-common.cc @@ -34,6 +34,6 @@ ObjectTypeCalcer* filtersConstructTextObject( propo->calc( doc ); std::vector<ObjectCalcer*> args; args.push_back( propo ); - return fact->labelCalcer( TQString::fromLatin1( "%1" ), c, needframe, + return fact->labelCalcer( TQString::tqfromLatin1( "%1" ), c, needframe, args, doc ); } diff --git a/kig/filters/imageexporteroptionsbase.ui b/kig/filters/imageexporteroptionsbase.ui index 03145dec..ec126c96 100644 --- a/kig/filters/imageexporteroptionsbase.ui +++ b/kig/filters/imageexporteroptionsbase.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>ImageExporterOptionsBase</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -144,7 +144,7 @@ </widget> </vbox> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint> diff --git a/kig/filters/kgeo-filter.cc b/kig/filters/kgeo-filter.cc index 02c1efde..1ce9a27e 100644 --- a/kig/filters/kgeo-filter.cc +++ b/kig/filters/kgeo-filter.cc @@ -130,7 +130,7 @@ KigDocument* KigFilterKGeo::loadObjects( const TQString& file, KSimpleConfig* c elems.push_back( elem ); for ( const char* parent = parents.first(); parent; parent = parents.next() ) { - int parentIndex = TQString::fromLatin1( parent ).toInt( &ok ); + int parentIndex = TQString::tqfromLatin1( parent ).toInt( &ok ); if ( ! ok ) KIG_FILTER_PARSE_ERROR; if ( parentIndex != 0 ) elems[i].parents.push_back( parentIndex - 1 ); @@ -310,7 +310,7 @@ KigDocument* KigFilterKGeo::loadObjects( const TQString& file, KSimpleConfig* c } case ID_slope: { - // if parents contains a segment, line, vector or whatever, we + // if parents tqcontains a segment, line, vector or whatever, we // take its parents cause we want points.. if ( parents.size() == 1 ) parents = parents[0]->parents(); if ( parents.size() != 2 ) KIG_FILTER_PARSE_ERROR; diff --git a/kig/filters/kgeo-filter.h b/kig/filters/kgeo-filter.h index f8accd91..0eb8d462 100644 --- a/kig/filters/kgeo-filter.h +++ b/kig/filters/kgeo-filter.h @@ -25,11 +25,11 @@ class KSimpleConfig; /** * This is an import filter for files generated by the program KGeo, - * which was an interactive geometry program in kdeedu. Kig is + * which was an interactive tqgeometry program in kdeedu. Kig is * supposed to be its successor, and this import filter is part of my * attempt to achieve that :) * - * Status: a significant part of KGeo's format is supported, not all + * tqStatus: a significant part of KGeo's format is supported, not all * yet, though.. */ class KigFilterKGeo diff --git a/kig/filters/kgeo-resource.h b/kig/filters/kgeo-resource.h index f7af0f64..ce149605 100644 --- a/kig/filters/kgeo-resource.h +++ b/kig/filters/kgeo-resource.h @@ -51,7 +51,7 @@ #include <klocale.h> /////////////////////////////////////////////////////////////////// -// resource.h -- contains macros used for commands +// resource.h -- tqcontains macros used for commands /////////////////////////////////////////////////////////////////// diff --git a/kig/filters/kseg-filter.cc b/kig/filters/kseg-filter.cc index fb96c25c..5ad746b7 100644 --- a/kig/filters/kseg-filter.cc +++ b/kig/filters/kseg-filter.cc @@ -67,7 +67,7 @@ bool KigFilterKSeg::supportMime( const TQString& mime ) struct drawstyle { - Q_INT8 pointstyle; + TQ_INT8 pointstyle; TQFont font; TQPen pen; TQBrush brush; @@ -556,19 +556,19 @@ KigDocument* KigFilterKSeg::load( const TQString& file ) }; case G_CIRCLEINTERIOR: { - notSupported( file, i18n( "This KSeg file contains a filled circle, " + notSupported( file, i18n( "This KSeg file tqcontains a filled circle, " "which Kig does not currently support." ) ); return false; }; case G_ARCSECTOR: { - notSupported( file, i18n( "This KSeg file contains an arc sector, " + notSupported( file, i18n( "This KSeg file tqcontains an arc sector, " "which Kig does not currently support." ) ); return false; }; case G_ARCSEGMENT: { - notSupported( file, i18n( "This KSeg file contains an arc segment, " + notSupported( file, i18n( "This KSeg file tqcontains an arc segment, " "which Kig does not currently support." ) ); return false; }; @@ -636,7 +636,7 @@ KigDocument* KigFilterKSeg::load( const TQString& file ) std::vector<ObjectCalcer*> args2; args2.push_back( object->nameCalcer() ); ObjectCalcer* oc2 = fact->attachedLabelCalcer( - TQString::fromLatin1( "%1" ), object->calcer(), + TQString::tqfromLatin1( "%1" ), object->calcer(), static_cast<const PointImp*>( object->imp() )->coordinate(), false, args2, *retdoc ); oc2->calc( *retdoc ); diff --git a/kig/filters/latexexporter.cc b/kig/filters/latexexporter.cc index 98d3fc2e..ce713771 100644 --- a/kig/filters/latexexporter.cc +++ b/kig/filters/latexexporter.cc @@ -194,7 +194,7 @@ void LatexExportImpVisitor::mapColor( TQColor color ) ColorMap newcolor; newcolor.color = color; TQString tmpname = color.name(); - tmpname.replace( "#", "" ); + tmpname.tqreplace( "#", "" ); newcolor.name = tmpname; mcolors.push_back( newcolor ); mstream << "\\newrgbcolor{" << tmpname << "}{" diff --git a/kig/filters/latexexporteroptions.ui b/kig/filters/latexexporteroptions.ui index d2e60c5b..e60614cd 100644 --- a/kig/filters/latexexporteroptions.ui +++ b/kig/filters/latexexporteroptions.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>LatexExporterOptions</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -63,7 +63,7 @@ </widget> <customwidgets> </customwidgets> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> </includehints> </UI> diff --git a/kig/filters/native-filter.cc b/kig/filters/native-filter.cc index a5378263..2466d536 100644 --- a/kig/filters/native-filter.cc +++ b/kig/filters/native-filter.cc @@ -140,7 +140,7 @@ KigDocument* KigFilterNative::load( const TQString& file ) TQStringList kigfiles = entries.grep( TQRegExp( "\\.kig$" ) ); if ( kigfiles.count() != 1 ) // I throw a generic parse error here, but I should warn the user that - // this kig archive file doesn't contain one kig file (it contains no + // this kig archive file doesn't contain one kig file (it tqcontains no // kig files or more than one). KIG_FILTER_PARSE_ERROR; const KArchiveEntry* kigz = dir->entry( kigfiles[0] ); @@ -642,7 +642,7 @@ bool KigFilterNative::save07( const KigDocument& kdoc, TQTextStream& stream ) TQDomElement drawelem = doc.createElement( "Draw" ); drawelem.setAttribute( "object", id ); drawelem.setAttribute( "color", d->color().name() ); - drawelem.setAttribute( "shown", TQString::fromLatin1( d->shown() ? "true" : "false" ) ); + drawelem.setAttribute( "shown", TQString::tqfromLatin1( d->shown() ? "true" : "false" ) ); drawelem.setAttribute( "width", TQString::number( d->width() ) ); drawelem.setAttribute( "style", d->styleToString() ); drawelem.setAttribute( "point-style", d->pointStyleToString() ); diff --git a/kig/filters/svgexporteroptions.ui b/kig/filters/svgexporteroptions.ui index 2de679cb..7b346459 100644 --- a/kig/filters/svgexporteroptions.ui +++ b/kig/filters/svgexporteroptions.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>SVGExporterOptions</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -55,7 +55,7 @@ </widget> <customwidgets> </customwidgets> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> </includehints> </UI> |