diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:37:05 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:37:05 -0600 |
commit | 313fa28dc5e72d738faec49ff14fa5aed4a7fcd4 (patch) | |
tree | df0fec64d296b72881b384fcc7dd4541c84d2d88 /lib/widgets | |
parent | 1040d772e2544a98af4bc49c94b47cea28111559 (diff) | |
download | tdevelop-313fa28dc5e72d738faec49ff14fa5aed4a7fcd4.tar.gz tdevelop-313fa28dc5e72d738faec49ff14fa5aed4a7fcd4.zip |
Rename additional global TQt functions
Diffstat (limited to 'lib/widgets')
-rw-r--r-- | lib/widgets/propeditor/childproperty.cpp | 10 | ||||
-rw-r--r-- | lib/widgets/propeditor/multiproperty.cpp | 14 | ||||
-rw-r--r-- | lib/widgets/propeditor/propertyeditor.cpp | 16 | ||||
-rw-r--r-- | lib/widgets/propeditor/propertylist.cpp | 26 | ||||
-rw-r--r-- | lib/widgets/propeditor/psizepolicyedit.cpp | 2 | ||||
-rw-r--r-- | lib/widgets/propeditor/qeditlistbox.cpp | 8 | ||||
-rw-r--r-- | lib/widgets/qcomboview.cpp | 16 |
7 files changed, 46 insertions, 46 deletions
diff --git a/lib/widgets/propeditor/childproperty.cpp b/lib/widgets/propeditor/childproperty.cpp index ac53936a..beebad5a 100644 --- a/lib/widgets/propeditor/childproperty.cpp +++ b/lib/widgets/propeditor/childproperty.cpp @@ -44,14 +44,14 @@ ChildProperty::ChildProperty(MultiProperty *parent, const TQString & name, Child void ChildProperty::setValue(const TQVariant &value, bool // rememberOldValue ) { - qWarning("ChildProperty::setValue"); + tqWarning("ChildProperty::setValue"); if (!m_parent->valid()) return; switch (m_parent->type()) { case Size: { - qWarning("ChildProperty::setValue for TQSize"); + tqWarning("ChildProperty::setValue for TQSize"); TQSize v = m_parent->value().toSize(); if (m_childType == Size_Height) v.setHeight(value.toInt()); @@ -62,7 +62,7 @@ void ChildProperty::setValue(const TQVariant &value, bool // rememberOldValue } case Point: { - qWarning("ChildProperty::setValue for TQPoint"); + tqWarning("ChildProperty::setValue for TQPoint"); TQPoint v = m_parent->value().toPoint(); if (m_childType == Point_X) v.setX(value.toInt()); @@ -73,7 +73,7 @@ void ChildProperty::setValue(const TQVariant &value, bool // rememberOldValue } case Rect: { - qWarning("ChildProperty::setValue for TQRect"); + tqWarning("ChildProperty::setValue for TQRect"); TQRect v = m_parent->value().toRect(); if (m_childType == Rect_X) v.setX(value.toInt()); @@ -88,7 +88,7 @@ void ChildProperty::setValue(const TQVariant &value, bool // rememberOldValue } case SizePolicy: { - qWarning("ChildProperty::setValue for TQSizePolicy"); + tqWarning("ChildProperty::setValue for TQSizePolicy"); TQSizePolicy v = m_parent->value().toSizePolicy(); if (m_childType == SizePolicy_HorData) v.setHorData(TQSizePolicy::SizeType(value.toInt())); diff --git a/lib/widgets/propeditor/multiproperty.cpp b/lib/widgets/propeditor/multiproperty.cpp index ac1cb0fb..eae14e98 100644 --- a/lib/widgets/propeditor/multiproperty.cpp +++ b/lib/widgets/propeditor/multiproperty.cpp @@ -159,7 +159,7 @@ void MultiProperty::setValue(const TQVariant &value) property->setValue(value); if (m_propertyList) { -// qWarning("emit change"); +// tqWarning("emit change"); emit m_propertyList->propertyValueChanged(property); } } @@ -190,11 +190,11 @@ void MultiProperty::addProperty(Property *prop) void MultiProperty::removeProperty(Property *prop) { -/* qWarning("op >> removing %s", prop->name().ascii()); - qWarning("op >> list is %d", list.count());*/ +/* tqWarning("op >> removing %s", prop->name().ascii()); + tqWarning("op >> list is %d", list.count());*/ /*bool b = */list.remove(prop); -/* qWarning("op >> list is %d", list.count()); - qWarning("op >> removal is %s", b?"true":"false"); */ +/* tqWarning("op >> list is %d", list.count()); + tqWarning("op >> removal is %s", b?"true":"false"); */ } bool MultiProperty::operator ==(const MultiProperty &prop) const @@ -206,8 +206,8 @@ bool MultiProperty::operator ==(const MultiProperty &prop) const bool MultiProperty::operator ==(const Property &prop) const { -/* qWarning("MultiProperty::operator == for %s = %s", name().ascii(), prop.name().ascii()); - qWarning("MultiProperty::operator == for %d = %d", type(), prop.type());*/ +/* tqWarning("MultiProperty::operator == for %s = %s", name().ascii(), prop.name().ascii()); + tqWarning("MultiProperty::operator == for %d = %d", type(), prop.type());*/ if ( (type() == prop.type()) && (name() == prop.name()) ) return true; return false; diff --git a/lib/widgets/propeditor/propertyeditor.cpp b/lib/widgets/propeditor/propertyeditor.cpp index a1bd9406..c7eafd8f 100644 --- a/lib/widgets/propeditor/propertyeditor.cpp +++ b/lib/widgets/propeditor/propertyeditor.cpp @@ -219,14 +219,14 @@ void PropertyEditor::populateProperties(PropertyList *list) for (TQValueList<TQPair<TQString, TQValueList<TQString> > >::const_iterator it = groups.begin(); it != groups.end(); ++it) { -// qWarning("PropertyEditor::populateProperties: adding group %s", (*it).first.ascii()); +// tqWarning("PropertyEditor::populateProperties: adding group %s", (*it).first.ascii()); PropertyGroupItem *group = 0; if ( (!(*it).first.isEmpty()) && ((*it).second.count() > 0) ) group = new PropertyGroupItem(this, (*it).first); const TQValueList<TQString> &properties = (*it).second; for (TQValueList<TQString>::const_iterator it2 = properties.begin(); it2 != properties.end(); ++it2) { -// qWarning("PropertyEditor::populateProperties: adding property %s", (*it2).ascii()); +// tqWarning("PropertyEditor::populateProperties: adding property %s", (*it2).ascii()); if (group) addProperty(group, *it2); else @@ -245,7 +245,7 @@ void PropertyEditor::addProperty(PropertyGroupItem *group, const TQString &name) { if ((*m_list)[name] == 0) return; -// qWarning("%s = name : object null ", name.ascii()); +// tqWarning("%s = name : object null ", name.ascii()); PropertyItem *pitem = new PropertyItem(this, group, (*m_list)[name]); addChildProperties(pitem); } @@ -254,7 +254,7 @@ void PropertyEditor::addProperty(const TQString &name) { if ((*m_list)[name] == 0) return; -// qWarning("%s = name : object null ", name.ascii()); +// tqWarning("%s = name : object null ", name.ascii()); PropertyItem *pitem = new PropertyItem(this, (*m_list)[name]); addChildProperties(pitem); } @@ -270,12 +270,12 @@ void PropertyEditor::addChildProperties(PropertyItem *parent) machine(prop); } -// qWarning("seeking children: count: %d", prop->details.count()); +// tqWarning("seeking children: count: %d", prop->details.count()); parent->setOpen(true); for (TQValueList<ChildProperty>::iterator it = prop->details.begin(); it != prop->details.end(); ++it) { -// qWarning("found child %s", (*it).name().ascii()); +// tqWarning("found child %s", (*it).name().ascii()); new PropertyItem(this, parent, new MultiProperty(&m_detailedList, &(*it))); } } @@ -296,7 +296,7 @@ void PropertyEditor::clearProperties() void PropertyEditor::propertyValueChanged(Property *property) { -// qWarning("PropertyEditor::propertyValueChanged"); +// tqWarning("PropertyEditor::propertyValueChanged"); if (m_currentEditWidget->propertyName() == property->name()) m_currentEditWidget->setValue(property->value(), false); else @@ -316,7 +316,7 @@ void PropertyEditor::propertyChanged(MultiProperty *property, const TQVariant &v if (!property) return; - qWarning("editor: assign %s to %s", property->name().latin1(), value.toString().latin1()); + tqWarning("editor: assign %s to %s", property->name().latin1(), value.toString().latin1()); property->setValue(value, false); //highlight changed properties diff --git a/lib/widgets/propeditor/propertylist.cpp b/lib/widgets/propeditor/propertylist.cpp index b831e6d2..a5b43a3f 100644 --- a/lib/widgets/propeditor/propertylist.cpp +++ b/lib/widgets/propeditor/propertylist.cpp @@ -109,7 +109,7 @@ void PropertyList::removeProperty(Property *property) delete property; if (mp->list.count() == 0) { -// qWarning("rp: removing mp for %s itself", pname.ascii()); +// tqWarning("rp: removing mp for %s itself", pname.ascii()); m_list.remove(pname); delete mp; } @@ -135,7 +135,7 @@ void PropertyList::removeProperty(const TQString &name) } if (m_list[name]->list.count() == 0) { -// qWarning("rp2: removing mp for %s itself", name.ascii()); +// tqWarning("rp2: removing mp for %s itself", name.ascii()); delete m_list[name]; m_list.remove(name); } @@ -194,15 +194,15 @@ void PropertyList::addToGroup(const TQString &group, MultiProperty *property) void PropertyList::removeFromGroup(MultiProperty *property) { TQString group = m_groupOfProperty[property]; -// qWarning("removeFromGroup group=%s", group.ascii()); +// tqWarning("removeFromGroup group=%s", group.ascii()); for(TQValueList<TQPair<TQString, TQValueList<TQString> > >::iterator it = m_propertiesOfGroup.begin(); it != m_propertiesOfGroup.end(); ++it) { -// qWarning("removeFromGroup checking %s", (*it).first.ascii()); +// tqWarning("removeFromGroup checking %s", (*it).first.ascii()); if ((*it).first == group) { -// qWarning("removeFromGroup removing %s", property->name().ascii()); +// tqWarning("removeFromGroup removing %s", property->name().ascii()); (*it).second.remove(property->name()); break; } @@ -305,26 +305,26 @@ PropertyBuffer::PropertyBuffer( ) void PropertyBuffer::intersect(const PropertyList *list) { - qWarning("PropertyBuffer::intersect"); + tqWarning("PropertyBuffer::intersect"); for (TQMap<TQString, MultiProperty*>::iterator it = m_list.begin(); it != m_list.end(); ++it) { -// qWarning("intersect:: for mp = %s", it.data()->name().ascii()); +// tqWarning("intersect:: for mp = %s", it.data()->name().ascii()); if (list->m_list.contains(it.key())) { -/* qWarning("intersect:: list contains %s", it.key().ascii()); +/* tqWarning("intersect:: list contains %s", it.key().ascii()); if ( (*(it.data()) == *(list->m_list[it.key()]))) - qWarning("intersect:: equal properties"); + tqWarning("intersect:: equal properties"); else - qWarning("intersect:: not equal properties");*/ + tqWarning("intersect:: not equal properties");*/ if ( ((*it.data()) == *(list->m_list[it.key()])) && (list->m_groupOfProperty[list->m_list[it.key()]] == m_groupOfProperty[it.data()]) ) { -// qWarning("intersect:: equal properties, adding"); +// tqWarning("intersect:: equal properties, adding"); it.data()->addProperty(list->m_list[it.key()]); continue; } } -// qWarning("intersect:: removing %s from intersection", it.key().ascii()); +// tqWarning("intersect:: removing %s from intersection", it.key().ascii()); removeProperty(it.key()); } connect(list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(intersectedValueChanged(Property*))); @@ -332,7 +332,7 @@ void PropertyBuffer::intersect(const PropertyList *list) void PropertyBuffer::intersectedValueChanged(Property *property) { -// qWarning("PropertyBuffer::intersectedValueChanged"); +// tqWarning("PropertyBuffer::intersectedValueChanged"); TQString propertyName = property->name(); if (!contains(propertyName)) return; diff --git a/lib/widgets/propeditor/psizepolicyedit.cpp b/lib/widgets/propeditor/psizepolicyedit.cpp index 652fc616..99983457 100644 --- a/lib/widgets/propeditor/psizepolicyedit.cpp +++ b/lib/widgets/propeditor/psizepolicyedit.cpp @@ -61,7 +61,7 @@ void PSizePolicyEdit::setValue(const TQVariant& value, bool emitChange) TQString PSizePolicyEdit::findValueDescription(TQVariant val) const { -// qWarning("PSizePolicyEdit::findValueDescription : %d", val.toInt()); +// tqWarning("PSizePolicyEdit::findValueDescription : %d", val.toInt()); for (TQMap<TQString, TQVariant>::const_iterator it = m_spValues.begin(); it != m_spValues.end(); ++ it) { if (it.data() == val) diff --git a/lib/widgets/propeditor/qeditlistbox.cpp b/lib/widgets/propeditor/qeditlistbox.cpp index ad3ab6c4..683a0931 100644 --- a/lib/widgets/propeditor/qeditlistbox.cpp +++ b/lib/widgets/propeditor/qeditlistbox.cpp @@ -195,14 +195,14 @@ void QEditListBox::moveItemUp() { if (!m_listBox->isEnabled()) { - qDebug("beep"); + tqDebug("beep"); return; } unsigned int selIndex = m_listBox->currentItem(); if (selIndex == 0) { - qDebug("beep"); + tqDebug("beep"); return; } @@ -218,14 +218,14 @@ void QEditListBox::moveItemDown() { if (!m_listBox->isEnabled()) { - qDebug("beep"); + tqDebug("beep"); return; } unsigned int selIndex = m_listBox->currentItem(); if (selIndex == m_listBox->count() - 1) { - qDebug("beep"); + tqDebug("beep"); return; } diff --git a/lib/widgets/qcomboview.cpp b/lib/widgets/qcomboview.cpp index d3335349..cb44f32c 100644 --- a/lib/widgets/qcomboview.cpp +++ b/lib/widgets/qcomboview.cpp @@ -84,7 +84,7 @@ void QComboViewData::updateLinedGeometry() TQRect r = TQStyle::visualRect( combo->style().querySubControlMetrics(TQStyle::CC_ComboBox, combo, TQStyle::SC_ComboBoxEditField), combo ); -// qWarning("updateLinedGeometry(): currentItem is %d", combo->currentItem() == 0 ? 0 : 1); +// tqWarning("updateLinedGeometry(): currentItem is %d", combo->currentItem() == 0 ? 0 : 1); const TQPixmap *pix = combo->currentItem() ? combo->currentItem()->pixmap(0) : 0; if ( pix && pix->width() < r.width() ) r.setLeft( r.left() + pix->width() + 4 ); @@ -98,7 +98,7 @@ static inline bool checkInsertIndex( const char *method, const char * name, bool range_err = (*index > count); #if defined(TQT_CHECK_RANGE) if ( range_err ) - qWarning( "QComboView::%s: (%s) Index %d out of range", + tqWarning( "QComboView::%s: (%s) Index %d out of range", method, name ? name : "<no name>", *index ); #else Q_UNUSED( method ) @@ -116,7 +116,7 @@ static inline bool checkIndex( const char *method, const char * name, bool range_err = (index >= count); #if defined(TQT_CHECK_RANGE) if ( range_err ) - qWarning( "QComboView::%s: (%s) Index %i out of range", + tqWarning( "QComboView::%s: (%s) Index %i out of range", method, name ? name : "<no name>", index ); #else Q_UNUSED( method ) @@ -235,7 +235,7 @@ void QComboView::setCurrentItem( TQListViewItem *item ) d->completeAt = 0; if ( d->ed ) { d->ed->setText( item->text(0) ); -// qWarning("setCurrentItem( %s )", item->text(0).latin1()); +// tqWarning("setCurrentItem( %s )", item->text(0).latin1()); d->updateLinedGeometry(); } if ( d->listView() ) { @@ -322,7 +322,7 @@ void QComboView::internalActivate( TQListViewItem * item ) TQString t( item->text(0) ); if ( d->ed ) { d->ed->setText( t ); -// qWarning("internalActivate( %s )", item->text(0).latin1()); +// tqWarning("internalActivate( %s )", item->text(0).latin1()); d->updateLinedGeometry(); } emit activated( item ); @@ -893,7 +893,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event ) switch( event->type() ) { case TQEvent::MouseMove: if ( !d->mouseWasInsidePopup ) { -// qWarning("!d->mouseWasInsidePopup"); +// tqWarning("!d->mouseWasInsidePopup"); TQPoint pos = e->pos(); if ( TQT_TQRECT_OBJECT(d->listView()->rect()).contains( pos ) ) d->mouseWasInsidePopup = TRUE; @@ -919,7 +919,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event ) } } else if ((e->state() & ( Qt::RightButton | Qt::LeftButton | Qt::MidButton ) ) == 0 && style().styleHint(TQStyle::SH_ComboBox_ListMouseTracking, this)) { -// qWarning("event filter:: emu"); +// tqWarning("event filter:: emu"); TQWidget *mouseW = TQApplication::widgetAt( e->globalPos(), TRUE ); // if ( mouseW == d->listView()->viewport() ) { //### if ( mouseW == d->listView()->viewport() ) { @@ -1482,7 +1482,7 @@ void QComboView::setCurrentActiveItem( TQListViewItem * item ) if ( d->ed ) { d->ed->setText( item->text(0) ); d->ed->setCursorPosition(0); -// qWarning("setCurrentActiveItem( %s )", item->text(0).latin1()); +// tqWarning("setCurrentActiveItem( %s )", item->text(0).latin1()); d->updateLinedGeometry(); } if ( d->listView() ) { |