summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/dlg
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:44:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:52:29 +0900
commite6077c30d14e9d662e8843c554db86c0d366d0b6 (patch)
tree672319afee32f0316bad258c0e9a1e0dd737bd61 /tools/designer/plugins/dlg
parent8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff)
downloadtqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz
tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/plugins/dlg')
-rw-r--r--tools/designer/plugins/dlg/dlg2ui.cpp24
-rw-r--r--tools/designer/plugins/dlg/dlg2ui.h6
2 files changed, 15 insertions, 15 deletions
diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp
index 23e18063e..a89934659 100644
--- a/tools/designer/plugins/dlg/dlg2ui.cpp
+++ b/tools/designer/plugins/dlg/dlg2ui.cpp
@@ -78,7 +78,7 @@ static const struct {
} propertyDefs[] = {
{ "Button", "AutoRepeat", "autoRepeat", "boolean" },
{ "Button", "AutoResize", 0, 0 },
- { "Button", "Text", "text", "qstring" },
+ { "Button", "Text", "text", "tqstring" },
{ "ButtonGroup", "Exclusive", "exclusive", "boolean" },
{ "ButtonGroup", "RadioButtonExclusive", "radioButtonExclusive",
"boolean" },
@@ -123,7 +123,7 @@ static const struct {
{ "Frame", "LineWidth", "lineWidth", "integer" },
{ "Frame", "MidLineWidth", "midLineWidth", "integer" },
{ "Frame", "Style", 0, 0 },
- { "GroupBox", "Title", "title", "qstring" },
+ { "GroupBox", "Title", "title", "tqstring" },
{ "IconView", "AlignMode", 0, 0 },
{ "IconView", "Aligning", 0, 0 },
{ "IconView", "Arrangement", "arrangement", "enum" },
@@ -148,12 +148,12 @@ static const struct {
{ "LCDNumber", "Value", 0, 0 },
{ "Label", "AutoResize", 0, 0 },
{ "Label", "Indent", "indent", "integer" },
- { "Label", "Text", "text", "qstring" },
+ { "Label", "Text", "text", "tqstring" },
{ "Label", "TextFormat", "textFormat", "enum" },
{ "LineEdit", "EchoMode", "echoMode", "enum" },
{ "LineEdit", "FrameShown", "frame", "boolean" },
{ "LineEdit", "MaxLength", "maxLength", "integer" },
- { "LineEdit", "Text", "text", "qstring" },
+ { "LineEdit", "Text", "text", "tqstring" },
{ "ListBox", "AutoScroll", 0, 0 },
{ "ListBox", "AutoUpdate", 0, 0 },
{ "ListBox", "ColumnMode", "columnMode", "enum" },
@@ -214,10 +214,10 @@ static const struct {
{ "SpinBox", "ButtonSymbols", "buttonSymbols", "enum" },
{ "SpinBox", "MaxValue", "maxValue", "integer" },
{ "SpinBox", "MinValue", "minValue", "integer" },
- { "SpinBox", "Prefix", "prefix", "qstring" },
- { "SpinBox", "SpecialValue", "specialValueText", "qstring" },
+ { "SpinBox", "Prefix", "prefix", "tqstring" },
+ { "SpinBox", "SpecialValue", "specialValueText", "tqstring" },
{ "SpinBox", "Step", "lineStep", "integer" },
- { "SpinBox", "Suffix", "suffix", "qstring" },
+ { "SpinBox", "Suffix", "suffix", "tqstring" },
{ "SpinBox", "Wrapping", "wrapping", "boolean" },
{ "Splitter", "OpaqueResize", 0, 0 },
{ "Splitter", "Orientation", "orientation", "enum" },
@@ -225,7 +225,7 @@ static const struct {
{ "TabBar", "TabNames", 0, 0 },
{ "TextView", "Context", 0, 0 },
{ "TextView", "LinkUnderline", "linkUnderline", "boolean" },
- { "TextView", "Text", "text", "qstring" },
+ { "TextView", "Text", "text", "tqstring" },
{ "TextView", "TextFormat", "textFormat", "enum" },
{ "User", "UserClassHeader", 0, 0 },
{ "User", "UserClassName", 0, 0 },
@@ -824,7 +824,7 @@ void Dlg2Ui::emitWidgetBody( const TQDomElement& e, bool layouted )
TQString type( propertyDefs[*p].type );
TQVariant val = getValue( n.toElement(), tagName, type );
- if ( type == TQString("qstring") )
+ if ( type == TQString("tqstring") )
type = TQString( "string" );
bool omit = FALSE;
@@ -872,7 +872,7 @@ TQString Dlg2Ui::normalizeType( const TQString& type )
TQString t = type;
if ( t.isEmpty() || t == TQString("enum") || t == TQString( "qcstring" ) ||
t == TQString("set") )
- t = TQString( "qstring" );
+ t = TQString( "tqstring" );
return t;
}
@@ -896,7 +896,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
return getTextValue( e ).toDouble();
} else if ( type == TQString("qcstring") ) {
return getTextValue( e ).latin1();
- } else if ( type == TQString("enum") || type == TQString("qstring") ||
+ } else if ( type == TQString("enum") || type == TQString("tqstring") ||
type == TQString("set") ) {
return getTextValue( e );
} else {
@@ -937,7 +937,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
return TQPalette( active, disabled, inactive );
} else if ( type == TQString("qfont") ) {
TQString family = getValue( children, TQString("Family"),
- TQString("qstring") ).toString();
+ TQString("tqstring") ).toString();
int pointSize = getValue( children, TQString("PointSize"),
TQString("integer") ).toInt();
int weight = getValue( children, TQString("weight"),
diff --git a/tools/designer/plugins/dlg/dlg2ui.h b/tools/designer/plugins/dlg/dlg2ui.h
index 15b5377e8..d500aab56 100644
--- a/tools/designer/plugins/dlg/dlg2ui.h
+++ b/tools/designer/plugins/dlg/dlg2ui.h
@@ -37,7 +37,7 @@
#include <tqdom.h>
#include <tqmap.h>
-#include <ntqstring.h>
+#include <tqstring.h>
#include <ntqvariant.h>
typedef TQMap<TQString, TQString> AttributeMap;
@@ -69,7 +69,7 @@ private:
void syntaxError();
TQString getTextValue( const TQDomNode& node );
TQVariant getValue( const TQDomNodeList& children, const TQString& tagName,
- const TQString& type = "qstring" );
+ const TQString& type = "tqstring" );
void emitHeader();
void emitFooter();
void emitSimpleValue( const TQString& tag, const TQString& value,
@@ -99,7 +99,7 @@ private:
bool checkTagName( const TQDomElement& e, const TQString& tagName );
TQString normalizeType( const TQString& type );
TQVariant getValue( const TQDomElement& e, const TQString& tagName,
- const TQString& type = "qstring" );
+ const TQString& type = "tqstring" );
void matchDialogCommon( const TQDomElement& dialogCommon );
bool needsTQLayoutWidget( const TQDomElement& e );
void matchBoxLayout( const TQDomElement& boxLayout );