summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/dlg/dlg2ui.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-07-15 19:08:22 +0900
committerMichele Calgaro <[email protected]>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /tools/designer/plugins/dlg/dlg2ui.cpp
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz
tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tools/designer/plugins/dlg/dlg2ui.cpp')
-rw-r--r--tools/designer/plugins/dlg/dlg2ui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp
index 924eef889..3744f750b 100644
--- a/tools/designer/plugins/dlg/dlg2ui.cpp
+++ b/tools/designer/plugins/dlg/dlg2ui.cpp
@@ -107,7 +107,7 @@ static const struct {
{ "DlgWidget", "DataVarName", 0, 0 },
{ "DlgWidget", "Enabled", "enabled", "boolean" },
{ "DlgWidget", "FocusPolicy", "focusPolicy", "enum" },
- { "DlgWidget", "Font", "font", "qfont" },
+ { "DlgWidget", "Font", "font", "tqfont" },
{ "DlgWidget", "FontPropagation", 0, 0 },
{ "DlgWidget", "MaximumSize", "maximumSize", "tqsize" },
{ "DlgWidget", "MinimumSize", "minimumSize", "tqsize" },
@@ -926,16 +926,16 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
return TQPoint( x, y );
} else if ( type == TQString("qpalette") ) {
TQColorGroup active = getValue( children, TQString("Active"),
- TQString("qcolorgroup") )
+ TQString("tqcolorgroup") )
.toColorGroup();
TQColorGroup disabled = getValue( children, TQString("Disabled"),
- TQString("qcolorgroup") )
+ TQString("tqcolorgroup") )
.toColorGroup();
TQColorGroup inactive = getValue( children, TQString("Inactive"),
- TQString("qcolorgroup") )
+ TQString("tqcolorgroup") )
.toColorGroup();
return TQPalette( active, disabled, inactive );
- } else if ( type == TQString("qfont") ) {
+ } else if ( type == TQString("tqfont") ) {
TQString family = getValue( children, TQString("Family"),
TQString("tqstring") ).toString();
int pointSize = getValue( children, TQString("PointSize"),
@@ -964,7 +964,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
if ( styleHint != 0 )
f.setStyleHint( (TQFont::StyleHint) styleHint );
return f;
- } else if ( type == TQString("qcolor") ) {
+ } else if ( type == TQString("tqcolor") ) {
// if any component missing, zero is to be assumed
int red = getValue( children, TQString("Red"), TQString("integer") )
.toInt();
@@ -973,7 +973,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
int blue = getValue( children, TQString("Blue"), TQString("integer") )
.toInt();
return TQColor( red, green, blue );
- } else if ( type == TQString("qcolorgroup") ) {
+ } else if ( type == TQString("tqcolorgroup") ) {
static const TQColorGroup::ColorRole roles[NumColorRoles] = {
TQColorGroup::Foreground, TQColorGroup::Button,
TQColorGroup::Light, TQColorGroup::Midlight, TQColorGroup::Dark,
@@ -992,7 +992,7 @@ TQVariant Dlg2Ui::getValue( const TQDomElement& e, const TQString& tagName,
for ( int i = 0; i < NumColorRoles; i++ )
group.setColor( roles[i],
getValue(children, TQString(roleNames[i]),
- TQString("qcolor")).toColor() );
+ TQString("tqcolor")).toColor() );
return group;
} else {
syntaxError();