summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/utils.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:12:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:12:30 -0600
commit11191ef0b9908604d1d7aaca382b011ef22c454c (patch)
treed38f0ccd8bfcc9756f5cfc42fb2ad1dad351e6aa /kexi/formeditor/utils.cpp
parentc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (diff)
downloadkoffice-11191ef0b9908604d1d7aaca382b011ef22c454c.tar.gz
koffice-11191ef0b9908604d1d7aaca382b011ef22c454c.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kexi/formeditor/utils.cpp')
-rw-r--r--kexi/formeditor/utils.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kexi/formeditor/utils.cpp b/kexi/formeditor/utils.cpp
index 6ce4bcae..85e93204 100644
--- a/kexi/formeditor/utils.cpp
+++ b/kexi/formeditor/utils.cpp
@@ -119,9 +119,9 @@ KFormDesigner::getSizeFromChildren(TQWidget *w, const char *inheritClass)
// -----------------
-HorWidgetList::HorWidgetList(TQWidget *tqtopLevelWidget)
+HorWidgetList::HorWidgetList(TQWidget *topLevelWidget)
: WidgetList()
- , m_tqtopLevelWidget(tqtopLevelWidget)
+ , m_topLevelWidget(topLevelWidget)
{
}
@@ -133,14 +133,14 @@ int HorWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::It
{
TQWidget *w1 = TQT_TQWIDGET(item1);
TQWidget *w2 = TQT_TQWIDGET(item2);
- return w1->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).x() - w2->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).x();
+ return w1->mapTo(m_topLevelWidget, TQPoint(0,0)).x() - w2->mapTo(m_topLevelWidget, TQPoint(0,0)).x();
}
// -----------------
-VerWidgetList::VerWidgetList(TQWidget *tqtopLevelWidget)
+VerWidgetList::VerWidgetList(TQWidget *topLevelWidget)
: WidgetList()
- , m_tqtopLevelWidget(tqtopLevelWidget)
+ , m_topLevelWidget(topLevelWidget)
{
}
@@ -157,9 +157,9 @@ int VerWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::It
TQObject *page1 = 0;
TabWidget *tw1 = KFormDesigner::findParent<KFormDesigner::TabWidget>(w1, "KFormDesigner::TabWidget", page1);
if (tw1) // special case
- y1 = w1->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).y() + tw1->tabBarHeight() -2 -2;
+ y1 = w1->mapTo(m_topLevelWidget, TQPoint(0,0)).y() + tw1->tabBarHeight() -2 -2;
else
- y1 = w1->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).y();
+ y1 = w1->mapTo(m_topLevelWidget, TQPoint(0,0)).y();
TQObject *page2 = 0;
TabWidget *tw2 = KFormDesigner::findParent<KFormDesigner::TabWidget>(w2, "KFormDesigner::TabWidget", page2);
@@ -169,16 +169,16 @@ int VerWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::It
}
if (tw2) // special case
- y2 = w2->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).y() + tw2->tabBarHeight() -2 -2;
+ y2 = w2->mapTo(m_topLevelWidget, TQPoint(0,0)).y() + tw2->tabBarHeight() -2 -2;
else
- y2 = w2->mapTo(m_tqtopLevelWidget, TQPoint(0,0)).y();
+ y2 = w2->mapTo(m_topLevelWidget, TQPoint(0,0)).y();
kdDebug() << w1->name() << ": " << y1 << " "
<< " | " << w2->name() << ": " << y2 << endl;
- //kdDebug() << w1->name() << ": " << w1->mapTo(m_tqtopLevelWidget, TQPoint(0,0)) << " " << w1->y()
- //<< " | " << w2->name() << ":" /*<< w2->mapFrom(m_tqtopLevelWidget, TQPoint(0,w2->y()))*/ << " " << w2->y() << endl;
+ //kdDebug() << w1->name() << ": " << w1->mapTo(m_topLevelWidget, TQPoint(0,0)) << " " << w1->y()
+ //<< " | " << w2->name() << ":" /*<< w2->mapFrom(m_topLevelWidget, TQPoint(0,w2->y()))*/ << " " << w2->y() << endl;
return y1 - y2;
}