summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/resizehandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/resizehandle.cpp')
-rw-r--r--kexi/formeditor/resizehandle.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/formeditor/resizehandle.cpp b/kexi/formeditor/resizehandle.cpp
index ac1cb4cb..c2448c6e 100644
--- a/kexi/formeditor/resizehandle.cpp
+++ b/kexi/formeditor/resizehandle.cpp
@@ -36,7 +36,7 @@
using namespace KFormDesigner;
ResizeHandle::ResizeHandle(ResizeHandleSet *set, HandlePos pos, bool editing)
- : TQWidget(set->m_widget->tqparentWidget()), m_set(set)
+ : TQWidget(set->m_widget->parentWidget()), m_set(set)
{
// setBackgroundMode(TQt::NoBackground);
m_dragging = false;
@@ -226,16 +226,16 @@ void ResizeHandle::mouseMoveEvent(TQMouseEvent *ev)
tmpw += tmpx;
tmpx = 0;
}
- else if(tmpx + tmpw > m_set->m_widget->tqparentWidget()->width())
- tmpw = m_set->m_widget->tqparentWidget()->width() - tmpx;
+ else if(tmpx + tmpw > m_set->m_widget->parentWidget()->width())
+ tmpw = m_set->m_widget->parentWidget()->width() - tmpx;
if(tmpy < 0)
{
tmph += tmpy;
tmpy = 0;
}
- else if(tmpy + tmph > m_set->m_widget->tqparentWidget()->height())
- tmph = m_set->m_widget->tqparentWidget()->height() - tmpy;
+ else if(tmpy + tmph > m_set->m_widget->parentWidget()->height())
+ tmph = m_set->m_widget->parentWidget()->height() - tmpy;
const bool shouldBeMoved = (tmpx != m_set->m_widget->x()) || (tmpy != m_set->m_widget->y());
const bool shouldBeResized = (tmpw != m_set->m_widget->width()) || (tmph != m_set->m_widget->height());
@@ -272,16 +272,16 @@ void ResizeHandle::paintEvent( TQPaintEvent * )
/*TQPainter p(this);
p.setRasterOp(XorROP);
p.fillRect(TQRect(0, 0, 6, 6),white);
- bitBlt( this, TQPoint(0,0), tqparentWidget(), rect(), XorROP);*/
+ bitBlt( this, TQPoint(0,0), parentWidget(), rect(), XorROP);*/
}
/////////////// ResizeHandleSet //////////////////
ResizeHandleSet::ResizeHandleSet(TQWidget *modify, Form *form, bool editing)
-: TQObject(modify->tqparentWidget()), /*m_widget(modify),*/ m_form(form)
+: TQObject(modify->parentWidget()), /*m_widget(modify),*/ m_form(form)
{
m_widget = 0;
- /*TQWidget *tqparent = modify->tqparentWidget();
+ /*TQWidget *tqparent = modify->parentWidget();
handles[0] = new ResizeHandle( modify, ResizeHandle::TopLeft, editing);
handles[1] = new ResizeHandle( modify, ResizeHandle::TopCenter, editing);