From bf280726d5d22f33d33e4f9e771220c725249407 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:52 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp | 86 +++++++++++------------ 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'kregexpeditor/KWidgetStreamer') diff --git a/kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp b/kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp index 42d411b..9015aaa 100644 --- a/kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp +++ b/kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp @@ -48,11 +48,11 @@ void KWidgetStreamer::propertyToStream( const TQObject* from, TQDataStream& stre if ( ! from->inherits(TQWIDGET_OBJECT_NAME_STRING) ) return; - // Serializing all the tqchildren (if any). - const TQObjectList tqchildren = from->childrenListObject(); - if ( !tqchildren.isEmpty() ) { - stream << tqchildren.count(); - for ( TQObjectListIt it = TQObjectListIt(tqchildren); *it; ++it ) { + // Serializing all the children (if any). + const TQObjectList children = from->childrenListObject(); + if ( !children.isEmpty() ) { + stream << children.count(); + for ( TQObjectListIt it = TQObjectListIt(children); *it; ++it ) { toStream( *it, stream ); } } @@ -83,14 +83,14 @@ void KWidgetStreamer::propertyFromStream( TQDataStream& stream, TQObject* to ) if ( ! to->inherits(TQWIDGET_OBJECT_NAME_STRING) ) return; - // Stream in all the tqchildren (if any) - const TQObjectList tqchildren = to->childrenListObject(); + // Stream in all the children (if any) + const TQObjectList children = to->childrenListObject(); unsigned int count; stream >> count; - if ( !tqchildren.isEmpty() ) { - Q_ASSERT( count == tqchildren.count() ); - for ( TQObjectListIt it = TQObjectListIt(tqchildren); *it; ++it ) + if ( !children.isEmpty() ) { + Q_ASSERT( count == children.count() ); + for ( TQObjectListIt it = TQObjectListIt(children); *it; ++it ) fromStream( stream, *it ); } else { @@ -117,61 +117,61 @@ KWidgetStreamer::KWidgetStreamer () // TQCheckBox l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("checked") << TQString::tqfromLatin1("tristate"); - _map.insert(TQString::tqfromLatin1(TQCHECKBOX_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("checked") << TQString::fromLatin1("tristate"); + _map.insert(TQString::fromLatin1(TQCHECKBOX_OBJECT_NAME_STRING), l); // TQComboBox l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("editable") << TQString::tqfromLatin1("currentItem") - << TQString::tqfromLatin1("maxCount") << TQString::tqfromLatin1("insertionPolicy") - << TQString::tqfromLatin1("autoCompletion"); - _map.insert(TQString::tqfromLatin1(TQCOMBOBOX_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("editable") << TQString::fromLatin1("currentItem") + << TQString::fromLatin1("maxCount") << TQString::fromLatin1("insertionPolicy") + << TQString::fromLatin1("autoCompletion"); + _map.insert(TQString::fromLatin1(TQCOMBOBOX_OBJECT_NAME_STRING), l); // TQDial l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("tracking") << TQString::tqfromLatin1("wrapping") - << TQString::tqfromLatin1("value"); - _map.insert(TQString::tqfromLatin1(TQDIAL_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("tracking") << TQString::fromLatin1("wrapping") + << TQString::fromLatin1("value"); + _map.insert(TQString::fromLatin1(TQDIAL_OBJECT_NAME_STRING), l); // TQLCDNumber l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("numDigits") << TQString::tqfromLatin1("mode") - << TQString::tqfromLatin1("segmentStyle") << TQString::tqfromLatin1("value"); - _map.insert(TQString::tqfromLatin1(TQLCDNUMBER_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("numDigits") << TQString::fromLatin1("mode") + << TQString::fromLatin1("segmentStyle") << TQString::fromLatin1("value"); + _map.insert(TQString::fromLatin1(TQLCDNUMBER_OBJECT_NAME_STRING), l); // TQLineEdit l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("text") << TQString::tqfromLatin1("maxLength") - << TQString::tqfromLatin1("echoMode") << TQString::tqfromLatin1("tqalignment"); - _map.insert(TQString::tqfromLatin1(TQLINEEDIT_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("text") << TQString::fromLatin1("maxLength") + << TQString::fromLatin1("echoMode") << TQString::fromLatin1("alignment"); + _map.insert(TQString::fromLatin1(TQLINEEDIT_OBJECT_NAME_STRING), l); // TQMultiLineEdit l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("text") - << TQString::tqfromLatin1("tqalignment"); - _map.insert(TQString::tqfromLatin1(TQTEXTEDIT_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("text") + << TQString::fromLatin1("alignment"); + _map.insert(TQString::fromLatin1(TQTEXTEDIT_OBJECT_NAME_STRING), l); // TQRadioButton l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("checked"); - _map.insert(TQString::tqfromLatin1(TQRADIOBUTTON_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("checked"); + _map.insert(TQString::fromLatin1(TQRADIOBUTTON_OBJECT_NAME_STRING), l); // TQSlider l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("value"); - _map.insert(TQString::tqfromLatin1(TQSLIDER_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("value"); + _map.insert(TQString::fromLatin1(TQSLIDER_OBJECT_NAME_STRING), l); // TQSpinBox l.clear(); - l << TQString::tqfromLatin1("enabled") - << TQString::tqfromLatin1("value"); - _map.insert(TQString::tqfromLatin1(TQSPINBOX_OBJECT_NAME_STRING), l); + l << TQString::fromLatin1("enabled") + << TQString::fromLatin1("value"); + _map.insert(TQString::fromLatin1(TQSPINBOX_OBJECT_NAME_STRING), l); } -- cgit v1.2.3