diff options
Diffstat (limited to 'kexi/formeditor/spring.cpp')
-rw-r--r-- | kexi/formeditor/spring.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/formeditor/spring.cpp b/kexi/formeditor/spring.cpp index 3e0651b1..0eb60400 100644 --- a/kexi/formeditor/spring.cpp +++ b/kexi/formeditor/spring.cpp @@ -37,12 +37,12 @@ Spring::Spring(TQWidget *parent, const char *name) : TQWidget(parent, name) { m_edit = true; - m_orient =Qt::Horizontal; + m_orient =TQt::Horizontal; setSizeType((SizeType)TQSizePolicy::Expanding); } void -Spring::setOrientation(Qt::Orientation orient) +Spring::setOrientation(TQt::Orientation orient) { SizeType type = sizeType(); m_orient = orient; @@ -53,7 +53,7 @@ Spring::setOrientation(Qt::Orientation orient) Spring::SizeType Spring::sizeType() const { - if(m_orient ==Qt::Vertical) + if(m_orient ==TQt::Vertical) return (SizeType)sizePolicy().verData(); else return (SizeType)sizePolicy().horData(); @@ -62,7 +62,7 @@ Spring::sizeType() const void Spring::setSizeType(SizeType size) { - if(m_orient ==Qt::Vertical) + if(m_orient ==TQt::Vertical) setSizePolicy(TQSizePolicy::Minimum, (TQSizePolicy::SizeType)size); else setSizePolicy( (TQSizePolicy::SizeType)size, TQSizePolicy::Minimum); @@ -80,7 +80,7 @@ Spring::paintEvent(TQPaintEvent *ev) p.setPen(TQPen(TQt::white, 1)); p.setRasterOp(TQt::XorROP); TQPointArray pa(4); - if(m_orient ==Qt::Vertical) { + if(m_orient ==TQt::Vertical) { uint part = (height()+16) / 16; if (part<3) part=3; |