summaryrefslogtreecommitdiffstats
path: root/kugar/kudesigner_lib/field.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/kudesigner_lib/field.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/kudesigner_lib/field.cpp')
-rw-r--r--kugar/kudesigner_lib/field.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kugar/kudesigner_lib/field.cpp b/kugar/kudesigner_lib/field.cpp
index c029f8e4..c9a5b480 100644
--- a/kugar/kudesigner_lib/field.cpp
+++ b/kugar/kudesigner_lib/field.cpp
@@ -31,7 +31,7 @@ namespace Kudesigner
Field::Field( int x, int y, int width, int height, Canvas *canvas, bool reg )
: Label( x, y, width, height, canvas )
{
- QMap<QString, QString> m;
+ TQMap<TQString, TQString> m;
props.setGroupDescription( "Field", i18n( "Field" ) );
@@ -67,7 +67,7 @@ Field::Field( int x, int y, int width, int height, Canvas *canvas, bool reg )
//TODO: make currency locale-aware
props.addProperty( new Property( "Currency", 32, i18n( "Currency" ), i18n( "Currency Symbol" ), KoProperty::Symbol ), "Field" );
- props.addProperty( new Property( "NegValueColor", QColor( 0, 0, 0 ), i18n( "Negative Value Color" ), i18n( "Negative Value Color" ), KoProperty::Color ), "Field" );
+ props.addProperty( new Property( "NegValueColor", TQColor( 0, 0, 0 ), i18n( "Negative Value Color" ), i18n( "Negative Value Color" ), KoProperty::Color ), "Field" );
props.addProperty( new Property( "CommaSeparator", 44, i18n( "Comma Separator" ), i18n( "Comma Separator" ), KoProperty::Symbol ), "Field" );
@@ -77,14 +77,14 @@ Field::Field( int x, int y, int width, int height, Canvas *canvas, bool reg )
registerAs( Rtti_Field );
}
-void Field::draw( QPainter &painter )
+void Field::draw( TQPainter &painter )
{
props[ "Text" ].setValue( "[" + props[ "Field" ].value().toString() + "]" );
Label::draw( painter );
props[ "Text" ].setValue( "" );
}
-QString Field::getXml()
+TQString Field::getXml()
{
return "\t\t<Field" + ReportItem::getXml() + " />\n";
}
@@ -92,8 +92,8 @@ QString Field::getXml()
void Field::fastProperty()
{
bool accepted;
- QString sValue = props[ "Field" ].value().toString();
- QString sText = KLineEditDlg::getText( i18n( "Change Field" ),
+ TQString sValue = props[ "Field" ].value().toString();
+ TQString sText = KLineEditDlg::getText( i18n( "Change Field" ),
"Enter field name:", sValue , &accepted );
if ( accepted )