diff options
Diffstat (limited to 'src/modules/objects/class_multilineedit.cpp')
-rw-r--r-- | src/modules/objects/class_multilineedit.cpp | 194 |
1 files changed, 95 insertions, 99 deletions
diff --git a/src/modules/objects/class_multilineedit.cpp b/src/modules/objects/class_multilineedit.cpp index 6b2f8af9..fa9181e5 100644 --- a/src/modules/objects/class_multilineedit.cpp +++ b/src/modules/objects/class_multilineedit.cpp @@ -28,25 +28,25 @@ #include "kvi_debug.h" #include "kvi_locale.h" #include "kvi_malloc.h" -#include <qfile.h> +#include <tqfile.h> #ifdef COMPILE_USE_QT4 - #include <q3multilineedit.h> -#include <QTextStream> + #include <tq3multilineedit.h> +#include <TQTextStream> -#include <q3stylesheet.h> +#include <tq3stylesheet.h> #define KviTalMultiLineEdit Q3MultiLineEdit -#define QTEXTEDIT_AUTO_ALL Q3TextEdit::AutoAll -#define QTEXTEDIT_AUTO_NONE Q3TextEdit::AutoNone -#define QTEXTEDIT_AUTO_BULLET_LIST Q3TextEdit::AutoBulletList +#define TQTEXTEDIT_AUTO_ALL Q3TextEdit::AutoAll +#define TQTEXTEDIT_AUTO_NONE Q3TextEdit::AutoNone +#define TQTEXTEDIT_AUTO_BULLET_LIST Q3TextEdit::AutoBulletList #else - #include <qtextstream.h> + #include <tqtextstream.h> - #include <qmultilineedit.h> - #define KviTalMultiLineEdit QMultiLineEdit - #define QTEXTEDIT_AUTO_ALL QTextEdit::AutoAll - #define QTEXTEDIT_AUTO_NONE QTextEdit::AutoNone - #define QTEXTEDIT_AUTO_BULLET_LIST QTextEdit::AutoBulletList + #include <tqmultilineedit.h> + #define KviTalMultiLineEdit TQMultiLineEdit + #define TQTEXTEDIT_AUTO_ALL TQTextEdit::AutoAll + #define TQTEXTEDIT_AUTO_NONE TQTextEdit::AutoNone + #define TQTEXTEDIT_AUTO_BULLET_LIST TQTextEdit::AutoBulletList #endif @@ -63,10 +63,10 @@ static char * const mod_tbl[] = { }; static int mod_cod[] = { - Qt::PlainText, - Qt::RichText, - Qt::AutoText, - Qt::LogText + TQt::PlainText, + TQt::RichText, + TQt::AutoText, + TQt::LogText }; #define mod_num (sizeof(mod_tbl) / sizeof(mod_tbl[0])) @@ -226,15 +226,15 @@ static int mod_cod[] = { Returns 1(TRUE) if undo is available; otherwise returns 0(FALSE). !fn: <boolean> $isRedoAvailable () Returns 1(TRUE) if redo is available; otherwise returns 0(FALSE). - !fn: $setAlignment(<alignment:string>) - Sets the alignment of the current paragraph to <alignment>. Valid values are:[br] + !fn: $tqsetAlignment(<tqalignment:string>) + Sets the tqalignment of the current paragraph to <tqalignment>. Valid values are:[br] - AlignAuto - Aligns according to the language.[br] - - Qt::AlignLeft - Aligns with the left edge.[br] - - Qt::AlignRight - Aligns with the right edge.[br] - - Qt::AlignCenter - Centers in both dimensions. - !fn: $setVerticalAlignment(<vertical_alignment:string>) - Sets the vertical alignment of the current format to <Valignemnt>. Valid Values are:[br] - - AlignNormal - Normal alignment.[br] + - TQt::AlignLeft - Aligns with the left edge.[br] + - TQt::AlignRight - Aligns with the right edge.[br] + - TQt::AlignCenter - Centers in both dimensions. + !fn: $setVerticalAlignment(<vertical_tqalignment:string>) + Sets the vertical tqalignment of the current format to <Valignemnt>. Valid Values are:[br] + - AlignNormal - Normal tqalignment.[br] - AlignSuperScript - Superscript.[br] - AlignSubScript - Subscript. !fn: $setAutoFormatting(<afvalue:string>) @@ -323,7 +323,7 @@ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_mledit,"multilineedit","widget") KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"setParagraphBackgroundColor", functionsetParagraphBackgroundColor) KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"clearParagraphBackgroundColor", functionsetParagraphBackgroundColor) KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"loadFile" , functionloadFile); // let's fantasy - KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"setAlignment" , functionsetAlignment) + KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"tqsetAlignment" , functiontqsetAlignment) KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"setAutoFormatting" , functionsetAutoFormatting) KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"setVerticalAlignment" , functionsetVerticalAlignment) KVSO_REGISTER_HANDLER(KviKvsObject_mledit,"setWrapPolicy" , functionsetWrapPolicy) @@ -353,7 +353,7 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_mledit) bool KviKvsObject_mledit::init(KviKvsRunTimeContext * pContext,KviKvsVariantList * pParams) { - setObject(new KviTalMultiLineEdit(parentScriptWidget(),getName()),true); + setObject(TQT_TQOBJECT(new KviTalMultiLineEdit(tqparentScriptWidget(),getName())),true); return true; } @@ -389,7 +389,7 @@ bool KviKvsObject_mledit::functionInsertLine(KviKvsObjectFunctionCall *c) { kvs_int_t iLine; - QString szInsert; + TQString szInsert; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szInsert) KVSO_PARAMETER("line",KVS_PT_INT,KVS_PF_OPTIONAL,iLine) @@ -416,7 +416,7 @@ bool KviKvsObject_mledit::functionInsertAt(KviKvsObjectFunctionCall *c) { kvs_uint_t iLine,iCol; - QString szInsert; + TQString szInsert; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szInsert) KVSO_PARAMETER("line",KVS_PT_UNSIGNEDINTEGER,0,iLine) @@ -456,11 +456,7 @@ bool KviKvsObject_mledit::functionCursorPosition(KviKvsObjectFunctionCall *c) { if(!widget()) return true; int line, col; - #if QT_VERSION >= 300 - ((KviTalMultiLineEdit *)widget())->getCursorPosition(&line, &col); - #else - ((KviTalMultiLineEdit *)widget())->cursorPosition(&line, &col); - #endif + ((KviTalMultiLineEdit *)widget())->getCursorPosition(&line, &col); KviKvsArray * a = new KviKvsArray(); a->set(0,new KviKvsVariant((kvs_int_t)line)); a->set(1,new KviKvsVariant((kvs_int_t)col)); @@ -485,17 +481,17 @@ bool KviKvsObject_mledit::functionAtEnd(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionSetWordWrap(KviKvsObjectFunctionCall *c) { if(!widget())return true; - QString szWrap; + TQString szWrap; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("word_wrap",KVS_PT_STRING,0,szWrap) KVSO_PARAMETERS_END(c) - if(KviQString::equalCI(szWrap,"NoWrap")) + if(KviTQString::equalCI(szWrap,"NoWrap")) ((KviTalMultiLineEdit *)widget())->setWordWrap(KviTalMultiLineEdit::NoWrap); - else if(KviQString::equalCI(szWrap,"WidgetWidth")) + else if(KviTQString::equalCI(szWrap,"WidgetWidth")) ((KviTalMultiLineEdit *)widget())->setWordWrap(KviTalMultiLineEdit::WidgetWidth); - else if(KviQString::equalCI(szWrap,"FixedPixelWidth")) + else if(KviTQString::equalCI(szWrap,"FixedPixelWidth")) ((KviTalMultiLineEdit *)widget())->setWordWrap(KviTalMultiLineEdit::FixedPixelWidth); - else if(KviQString::equalCI(szWrap,"FixedColumnWidth")) + else if(KviTQString::equalCI(szWrap,"FixedColumnWidth")) ((KviTalMultiLineEdit *)widget())->setWordWrap(KviTalMultiLineEdit::FixedColumnWidth); else c->warning(__tr2qs("Unknown word wrap '%Q'"),&szWrap); return true; @@ -504,17 +500,17 @@ bool KviKvsObject_mledit::functionSetWordWrap(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionsetWrapPolicy(KviKvsObjectFunctionCall *c) { if(!widget())return true; - QString szPolicy; + TQString szPolicy; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("wrap_policy",KVS_PT_STRING,0,szPolicy) KVSO_PARAMETERS_END(c) - if(KviQString::equalCI(szPolicy,"AtWhiteSpace)")) + if(KviTQString::equalCI(szPolicy,"AtWhiteSpace)")) ((KviTalMultiLineEdit *)widget())->setWrapPolicy(KviTalMultiLineEdit::AtWhiteSpace); - else if(KviQString::equalCI(szPolicy,"Anywhere")) + else if(KviTQString::equalCI(szPolicy,"Anywhere")) ((KviTalMultiLineEdit *)widget())->setWrapPolicy(KviTalMultiLineEdit::Anywhere); - else if(KviQString::equalCI(szPolicy,"AtWordBoundary")) + else if(KviTQString::equalCI(szPolicy,"AtWordBoundary")) ((KviTalMultiLineEdit *)widget())->setWrapPolicy(KviTalMultiLineEdit::AtWordBoundary); - else if(KviQString::equalCI(szPolicy,"AtWordOrDocumentBoundary")) + else if(KviTQString::equalCI(szPolicy,"AtWordOrDocumentBoundary")) ((KviTalMultiLineEdit *)widget())->setWrapPolicy(KviTalMultiLineEdit::AtWordOrDocumentBoundary); else c->warning(__tr2qs("Unknown wrap policy'%Q'"),&szPolicy); return true; @@ -564,7 +560,7 @@ bool KviKvsObject_mledit::functionMaxLines(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionInsert(KviKvsObjectFunctionCall *c) { - QString szInsert; + TQString szInsert; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szInsert) KVSO_PARAMETERS_END(c) @@ -576,7 +572,7 @@ bool KviKvsObject_mledit::functionInsert(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionAppend(KviKvsObjectFunctionCall *c) { - QString szAppend; + TQString szAppend; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szAppend) KVSO_PARAMETERS_END(c) @@ -780,7 +776,7 @@ bool KviKvsObject_mledit::functionundoDepth(KviKvsObjectFunctionCall *c) // Findme bool KviKvsObject_mledit::functionsetText(KviKvsObjectFunctionCall *c) { - QString szText; + TQString szText; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szText) KVSO_PARAMETERS_END(c) @@ -823,7 +819,7 @@ bool KviKvsObject_mledit::functionsetColor(KviKvsObjectFunctionCall *c) if (c->params()->count()==1) { bool bOk,bOk1,bOk2; - QString value; + TQString value; pColArray->asString(value); int i=0; if (value.length()!=6) @@ -831,7 +827,7 @@ bool KviKvsObject_mledit::functionsetColor(KviKvsObjectFunctionCall *c) c->warning(__tr2qs("A string of 6 digits hex is required")); return true; } - QString buffer(value.mid(0,2)); + TQString buffer(value.mid(0,2)); iColR=buffer.toInt(&bOk,16); buffer=value.mid(2,2); iColG=buffer.toInt(&bOk1,16); @@ -842,7 +838,7 @@ bool KviKvsObject_mledit::functionsetColor(KviKvsObjectFunctionCall *c) c->warning(__tr2qs("Not an hex digits")); return true; } - if (widget()) ((KviTalMultiLineEdit *)widget())->setColor(QColor(iColR,iColG,iColB)); + if (widget()) ((KviTalMultiLineEdit *)widget())->setColor(TQColor(iColR,iColG,iColB)); return true; } if(c->params()->count() < 3) @@ -856,7 +852,7 @@ bool KviKvsObject_mledit::functionsetColor(KviKvsObjectFunctionCall *c) return false; } } - if (widget()) ((KviTalMultiLineEdit *)widget())->setColor(QColor(iColR,iColG,iColB)); + if (widget()) ((KviTalMultiLineEdit *)widget())->setColor(TQColor(iColR,iColG,iColB)); return true; } @@ -884,7 +880,7 @@ bool KviKvsObject_mledit::functionsetLinkUnderline(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionsetFamily(KviKvsObjectFunctionCall *c) { - QString szFamily; + TQString szFamily; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("family",KVS_PT_STRING,0,szFamily) KVSO_PARAMETERS_END(c) @@ -907,7 +903,7 @@ bool KviKvsObject_mledit::functionsetModified(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functioninsertParagraph(KviKvsObjectFunctionCall *c) { kvs_int_t iParagraph; - QString szText; + TQString szText; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szText) KVSO_PARAMETER("paragraph",KVS_PT_INT,0,iParagraph) @@ -944,7 +940,7 @@ bool KviKvsObject_mledit::functiontextFormat(KviKvsObjectFunctionCall *c) { if(!widget())return true; int fstyle = ((KviTalMultiLineEdit *)widget())->textFormat(); - QString format=""; + TQString format=""; for(unsigned int i = 0; i < mod_num; i++) { if(fstyle & mod_cod[i]) @@ -959,19 +955,19 @@ bool KviKvsObject_mledit::functiontextFormat(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionsetTextFormat(KviKvsObjectFunctionCall *c) { - QString szFormat; + TQString szFormat; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("textformat",KVS_PT_STRING,0,szFormat) KVSO_PARAMETERS_END(c) if(!widget()) return true; - if(KviQString::equalCI(szFormat,"PlainText")) - ((KviTalMultiLineEdit *)widget())->setTextFormat(Qt::PlainText); - else if(KviQString::equalCI(szFormat,"RichText")) - ((KviTalMultiLineEdit *)widget())->setTextFormat(Qt::RichText); - else if(KviQString::equalCI(szFormat,"LogText")) - ((KviTalMultiLineEdit *)widget())->setTextFormat(Qt::LogText); - else if(KviQString::equalCI(szFormat,"AutoText")) - ((KviTalMultiLineEdit *)widget())->setTextFormat(Qt::AutoText); + if(KviTQString::equalCI(szFormat,"PlainText")) + ((KviTalMultiLineEdit *)widget())->setTextFormat(TQt::PlainText); + else if(KviTQString::equalCI(szFormat,"RichText")) + ((KviTalMultiLineEdit *)widget())->setTextFormat(TQt::RichText); + else if(KviTQString::equalCI(szFormat,"LogText")) + ((KviTalMultiLineEdit *)widget())->setTextFormat(TQt::LogText); + else if(KviTQString::equalCI(szFormat,"AutoText")) + ((KviTalMultiLineEdit *)widget())->setTextFormat(TQt::AutoText); else c->warning(__tr2qs("Unknown text format '%Q'"),&szFormat); return true; } @@ -1012,7 +1008,7 @@ bool KviKvsObject_mledit::functionsetParagraphBackgroundColor(KviKvsObjectFuncti if (c->params()->count()==1) { bool bOk,bOk1,bOk2; - QString value; + TQString value; pColArray->asString(value); int i=0; if (value.length()!=6) @@ -1020,7 +1016,7 @@ bool KviKvsObject_mledit::functionsetParagraphBackgroundColor(KviKvsObjectFuncti c->warning(__tr2qs("A string of 6 digits hex is required")); return true; } - QString buffer(value.mid(0,2)); + TQString buffer(value.mid(0,2)); iColR=buffer.toInt(&bOk,16); buffer=value.mid(2,2); iColG=buffer.toInt(&bOk1,16); @@ -1031,7 +1027,7 @@ bool KviKvsObject_mledit::functionsetParagraphBackgroundColor(KviKvsObjectFuncti c->warning(__tr2qs("Not an hex digits")); return true; } - if (widget()) ((KviTalMultiLineEdit *)widget())->setParagraphBackgroundColor(iParagraph,QColor(iColR,iColG,iColB)); + if (widget()) ((KviTalMultiLineEdit *)widget())->setParagraphBackgroundColor(iParagraph,TQColor(iColR,iColG,iColB)); return true; } if(c->params()->count() < 3) @@ -1045,7 +1041,7 @@ bool KviKvsObject_mledit::functionsetParagraphBackgroundColor(KviKvsObjectFuncti return false; } } - if (widget()) ((KviTalMultiLineEdit *)widget())->setParagraphBackgroundColor(iParagraph,QColor(iColR,iColG,iColB)); + if (widget()) ((KviTalMultiLineEdit *)widget())->setParagraphBackgroundColor(iParagraph,TQColor(iColR,iColG,iColB)); return true; } @@ -1062,31 +1058,31 @@ bool KviKvsObject_mledit::functionclearParagraphBackground(KviKvsObjectFunctionC bool KviKvsObject_mledit::functionloadFile(KviKvsObjectFunctionCall *c) { - QString szFile; + TQString szFile; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("file_name",KVS_PT_STRING,0,szFile) KVSO_PARAMETERS_END(c) - if ( !QFile::exists(szFile)) + if ( !TQFile::exists(szFile)) { c->warning(__tr2qs(" I can't find the specified file '%Q'."),&szFile); return true; } - QFile file( szFile ); + TQFile file( szFile ); if ( !file.open( IO_ReadOnly ) ) { c->warning(__tr2qs(" I cannot read the file %Q'."),&szFile); return true; } - QTextStream ts( &file ); - QString txt = ts.read(); + TQTextStream ts( &file ); + TQString txt = ts.read(); #ifdef COMPILE_USE_QT4 if ( !Q3StyleSheet::mightBeRichText( txt ) ) txt = Q3StyleSheet::convertFromPlainText( txt, Q3StyleSheetItem::WhiteSpacePre ); #else - if ( !QStyleSheet::mightBeRichText( txt ) ) - txt = QStyleSheet::convertFromPlainText( txt, QStyleSheetItem::WhiteSpacePre ); + if ( !TQStyleSheet::mightBeRichText( txt ) ) + txt = TQStyleSheet::convertFromPlainText( txt, TQStyleSheetItem::WhiteSpacePre ); #endif ((KviTalMultiLineEdit *)widget())->setText( txt ); @@ -1094,40 +1090,40 @@ bool KviKvsObject_mledit::functionloadFile(KviKvsObjectFunctionCall *c) return true; } -bool KviKvsObject_mledit::functionsetAlignment(KviKvsObjectFunctionCall *c) +bool KviKvsObject_mledit::functiontqsetAlignment(KviKvsObjectFunctionCall *c) { - QString szAlignment; + TQString szAlignment; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("alignment",KVS_PT_STRING,0,szAlignment) + KVSO_PARAMETER("tqalignment",KVS_PT_STRING,0,szAlignment) KVSO_PARAMETERS_END(c) if(!widget()) return true; - if(KviQString::equalCI(szAlignment,"Left")) - ((KviTalMultiLineEdit *)widget())->setAlignment(Qt::AlignLeft); - else if(KviQString::equalCI(szAlignment,"Right")) - ((KviTalMultiLineEdit *)widget())->setAlignment(Qt::AlignRight); - else if(KviQString::equalCI(szAlignment,"Center")) - ((KviTalMultiLineEdit *)widget())->setAlignment(Qt::AlignCenter); - else if(KviQString::equalCI(szAlignment,"Justify")) - ((KviTalMultiLineEdit *)widget())->setAlignment(Qt::AlignJustify); - else c->warning(__tr2qs("Unknown alignment '%Q'"),&szAlignment); + if(KviTQString::equalCI(szAlignment,"Left")) + ((KviTalMultiLineEdit *)widget())->tqsetAlignment(TQt::AlignLeft); + else if(KviTQString::equalCI(szAlignment,"Right")) + ((KviTalMultiLineEdit *)widget())->tqsetAlignment(TQt::AlignRight); + else if(KviTQString::equalCI(szAlignment,"Center")) + ((KviTalMultiLineEdit *)widget())->tqsetAlignment(TQt::AlignCenter); + else if(KviTQString::equalCI(szAlignment,"Justify")) + ((KviTalMultiLineEdit *)widget())->tqsetAlignment(TQt::AlignJustify); + else c->warning(__tr2qs("Unknown tqalignment '%Q'"),&szAlignment); return true; } bool KviKvsObject_mledit::functionsetAutoFormatting(KviKvsObjectFunctionCall *c) { - QString szAutoformatting; + TQString szAutoformatting; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("autoformatting",KVS_PT_STRING,0,szAutoformatting) KVSO_PARAMETERS_END(c) if(!widget()) return true; - if(KviQString::equalCI(szAutoformatting,"AutoNone")) - ((KviTalMultiLineEdit *)widget())->setAutoFormatting(QTEXTEDIT_AUTO_NONE); - else if(KviQString::equalCI(szAutoformatting,"BulletList")) - ((KviTalMultiLineEdit *)widget())->setAutoFormatting(QTEXTEDIT_AUTO_BULLET_LIST); - else if(KviQString::equalCI(szAutoformatting,"AutoAll")) - ((KviTalMultiLineEdit *)widget())->setAutoFormatting(QTEXTEDIT_AUTO_ALL); + if(KviTQString::equalCI(szAutoformatting,"AutoNone")) + ((KviTalMultiLineEdit *)widget())->setAutoFormatting(TQTEXTEDIT_AUTO_NONE); + else if(KviTQString::equalCI(szAutoformatting,"BulletList")) + ((KviTalMultiLineEdit *)widget())->setAutoFormatting(TQTEXTEDIT_AUTO_BULLET_LIST); + else if(KviTQString::equalCI(szAutoformatting,"AutoAll")) + ((KviTalMultiLineEdit *)widget())->setAutoFormatting(TQTEXTEDIT_AUTO_ALL); else c->warning(__tr2qs("Unknown auto formatting mode '%Q'"),&szAutoformatting); return true; } @@ -1135,18 +1131,18 @@ bool KviKvsObject_mledit::functionsetAutoFormatting(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionsetVerticalAlignment(KviKvsObjectFunctionCall *c) { - QString szValignment; + TQString szVtqalignment; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("alignment",KVS_PT_STRING,0,szValignment) + KVSO_PARAMETER("tqalignment",KVS_PT_STRING,0,szVtqalignment) KVSO_PARAMETERS_END(c) if(!widget()) return true; - if(KviQString::equalCI(szValignment,"Normal")) + if(KviTQString::equalCI(szVtqalignment,"Normal")) ((KviTalMultiLineEdit *)widget())->setVerticalAlignment(KviTalMultiLineEdit::AlignNormal); - else if(KviQString::equalCI(szValignment,"SuperScript")) + else if(KviTQString::equalCI(szVtqalignment,"SuperScript")) ((KviTalMultiLineEdit *)widget())->setVerticalAlignment(KviTalMultiLineEdit::AlignSuperScript); - else if(KviQString::equalCI(szValignment,"SubScript")) + else if(KviTQString::equalCI(szVtqalignment,"SubScript")) ((KviTalMultiLineEdit *)widget())->setVerticalAlignment(KviTalMultiLineEdit::AlignSubScript); - else c->warning(__tr2qs("Unknown vertical alignment '%Q'"),&szValignment); + else c->warning(__tr2qs("Unknown vertical tqalignment '%Q'"),&szVtqalignment); return true; } |