summaryrefslogtreecommitdiffstats
path: root/kexi/widget/utils
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/utils')
-rw-r--r--kexi/widget/utils/kexiarrowtip.cpp2
-rw-r--r--kexi/widget/utils/kexidropdownbutton.cpp4
-rw-r--r--kexi/widget/utils/kexiflowlayout.cpp16
-rw-r--r--kexi/widget/utils/kexiflowlayout.h8
4 files changed, 15 insertions, 15 deletions
diff --git a/kexi/widget/utils/kexiarrowtip.cpp b/kexi/widget/utils/kexiarrowtip.cpp
index 6279aa04..f22248e6 100644
--- a/kexi/widget/utils/kexiarrowtip.cpp
+++ b/kexi/widget/utils/kexiarrowtip.cpp
@@ -124,7 +124,7 @@ void KexiArrowTip::drawContents(TQPainter& p)
void KexiArrowTip::drawFrame(TQPainter& p)
{
- TQPen pen(palette().active().foreground(), 1, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
+ TQPen pen(palette().active().foreground(), 1, TQt::SolidLine, TQt::SquareCap, TQt::MiterJoin);
p.setPen( pen );
/*
/\
diff --git a/kexi/widget/utils/kexidropdownbutton.cpp b/kexi/widget/utils/kexidropdownbutton.cpp
index cf204d13..68ba7deb 100644
--- a/kexi/widget/utils/kexidropdownbutton.cpp
+++ b/kexi/widget/utils/kexidropdownbutton.cpp
@@ -67,12 +67,12 @@ TQSize KexiDropDownButton::sizeHint () const
void KexiDropDownButton::keyPressEvent( TQKeyEvent * e )
{
const int k = e->key();
- const bool dropDown = (e->state() == Qt::NoButton && (k==TQt::Key_Space || k==TQt::Key_Enter || k==TQt::Key_Return || k==TQt::Key_F2 || k==TQt::Key_F4))
+ const bool dropDown = (e->state() == TQt::NoButton && (k==TQt::Key_Space || k==TQt::Key_Enter || k==TQt::Key_Return || k==TQt::Key_F2 || k==TQt::Key_F4))
|| (e->state() == TQt::AltButton && k==TQt::Key_Down);
if (dropDown) {
e->accept();
animateClick();
- TQMouseEvent me( TQEvent::MouseButtonPress, TQPoint(2,2), Qt::LeftButton, Qt::NoButton );
+ TQMouseEvent me( TQEvent::MouseButtonPress, TQPoint(2,2), TQt::LeftButton, TQt::NoButton );
TQApplication::sendEvent( this, &me );
return;
}
diff --git a/kexi/widget/utils/kexiflowlayout.cpp b/kexi/widget/utils/kexiflowlayout.cpp
index 14e5e959..cedb7b74 100644
--- a/kexi/widget/utils/kexiflowlayout.cpp
+++ b/kexi/widget/utils/kexiflowlayout.cpp
@@ -69,7 +69,7 @@ KexiFlowLayoutIterator::takeCurrent()
KexiFlowLayout::KexiFlowLayout(TQWidget *parent, int border, int space, const char *name)
: TQLayout(parent, border, space, name)
{
- m_orientation =Qt::Horizontal;
+ m_orientation =TQt::Horizontal;
m_justify = false;
m_cached_width = 0;
}
@@ -77,7 +77,7 @@ KexiFlowLayout::KexiFlowLayout(TQWidget *parent, int border, int space, const ch
KexiFlowLayout::KexiFlowLayout(TQLayout* parent, int space, const char *name)
: TQLayout( parent, space, name )
{
- m_orientation =Qt::Horizontal;
+ m_orientation =TQt::Horizontal;
m_justify = false;
m_cached_width = 0;
}
@@ -85,7 +85,7 @@ KexiFlowLayout::KexiFlowLayout(TQLayout* parent, int space, const char *name)
KexiFlowLayout::KexiFlowLayout(int space, const char *name)
: TQLayout(space, name)
{
- m_orientation =Qt::Horizontal;
+ m_orientation =TQt::Horizontal;
m_justify = false;
m_cached_width = 0;
}
@@ -104,7 +104,7 @@ KexiFlowLayout::addItem(TQLayoutItem *item)
void
KexiFlowLayout::addSpacing(int size)
{
- if (m_orientation ==Qt::Horizontal)
+ if (m_orientation ==TQt::Horizontal)
addItem( TQT_TQLAYOUTITEM(new TQSpacerItem( size, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum )) );
else
addItem( TQT_TQLAYOUTITEM(new TQSpacerItem( 0, size, TQSizePolicy::Minimum, TQSizePolicy::Fixed )) );
@@ -145,7 +145,7 @@ KexiFlowLayout::isEmpty()
bool
KexiFlowLayout::hasHeightForWidth() const
{
- return (m_orientation ==Qt::Horizontal);
+ return (m_orientation ==TQt::Horizontal);
}
int
@@ -192,7 +192,7 @@ KexiFlowLayout::minimumSize() const
TQSizePolicy::ExpandData
KexiFlowLayout::expanding() const
{
- if(m_orientation == Qt::Vertical)
+ if(m_orientation == TQt::Vertical)
return TQSizePolicy::Vertically;
else
return TQSizePolicy::Horizontally;
@@ -202,7 +202,7 @@ void
KexiFlowLayout::setGeometry(const TQRect &r)
{
TQLayout::setGeometry(r);
- if(m_orientation ==Qt::Horizontal)
+ if(m_orientation ==TQt::Horizontal)
doHorizontalLayout(r);
else
doVerticalLayout(r);
@@ -211,7 +211,7 @@ KexiFlowLayout::setGeometry(const TQRect &r)
int
KexiFlowLayout::simulateLayout(const TQRect &r)
{
- if(m_orientation ==Qt::Horizontal)
+ if(m_orientation ==TQt::Horizontal)
return doHorizontalLayout(r, true);
else
return doVerticalLayout(r, true);
diff --git a/kexi/widget/utils/kexiflowlayout.h b/kexi/widget/utils/kexiflowlayout.h
index fa48df6f..4ac7450c 100644
--- a/kexi/widget/utils/kexiflowlayout.h
+++ b/kexi/widget/utils/kexiflowlayout.h
@@ -37,11 +37,11 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout
ie as it is stored in m_list. You must delete the list after using it. */
TQPtrList<TQWidget>* widgetList() const;
- /*! Sets layout's orientation to \a orientation. Default orientation is Qt::Vertical. */
- void setOrientation(Qt::Orientation orientation) { m_orientation = orientation; }
+ /*! Sets layout's orientation to \a orientation. Default orientation is TQt::Vertical. */
+ void setOrientation(TQt::Orientation orientation) { m_orientation = orientation; }
/*! \return layout's orientation. */
- Qt::Orientation orientation() const { return m_orientation; }
+ TQt::Orientation orientation() const { return m_orientation; }
void setJustified(bool justify) { m_justify = justify; }
bool isJustified() const { return m_justify; }
@@ -70,7 +70,7 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout
int m_cached_width;
int m_cached_hfw;
bool m_justify;
- Qt::Orientation m_orientation;
+ TQt::Orientation m_orientation;
TQSize m_cached_sizeHint;
TQSize m_cached_minSize;
};