summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_customtoolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_customtoolbar.cpp')
-rw-r--r--src/kvirc/ui/kvi_customtoolbar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kvirc/ui/kvi_customtoolbar.cpp b/src/kvirc/ui/kvi_customtoolbar.cpp
index f398bd4..2af3c95 100644
--- a/src/kvirc/ui/kvi_customtoolbar.cpp
+++ b/src/kvirc/ui/kvi_customtoolbar.cpp
@@ -57,7 +57,7 @@ KviCustomToolBarSeparator::KviCustomToolBarSeparator(KviCustomToolBar *pParent,c
TQSize KviCustomToolBarSeparator::sizeHint() const
{
int extent = style().pixelMetric(TQStyle::PM_DockWindowSeparatorExtent,this);
- if(m_pToolBar->orientation() == Qt::Horizontal)return TQSize(extent,0);
+ if(m_pToolBar->orientation() == TQt::Horizontal)return TQSize(extent,0);
else return TQSize(0,extent);
}
@@ -65,7 +65,7 @@ void KviCustomToolBarSeparator::paintEvent(TQPaintEvent *)
{
TQPainter p(this);
TQStyle::SFlags flags = TQStyle::Style_Default;
- if(m_pToolBar->orientation() == Qt::Horizontal)flags |= TQStyle::Style_Horizontal;
+ if(m_pToolBar->orientation() == TQt::Horizontal)flags |= TQStyle::Style_Horizontal;
style().tqdrawPrimitive(TQStyle::PE_DockWindowSeparator,&p,rect(),colorGroup(),flags);
}
@@ -337,7 +337,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
if(!pMinDistW)
{
// ops.. not found at all (empty toolbar or really far from any button)
- if(orientation() == Qt::Horizontal)
+ if(orientation() == TQt::Horizontal)
{
if(pnt.x() < (width() / 2))iMinDistIdx = 0; // insert at position 0
else iMinDistIdx = idx;
@@ -353,7 +353,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
{
// would not put it over exclude idx
// check if we have to stay on right or left of the widget found
- if(orientation() == Qt::Horizontal)
+ if(orientation() == TQt::Horizontal)
{
if(pnt.x() > (pMinDistW->x() + (pMinDistW->width() / 2)))
iMinDistIdx++; // need to put it on the right
@@ -369,7 +369,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
// got the exclude idx by the way and wouldn't put exactly over it
// check if exclude idx is "before" the current possible insert position
// if it is , then lower down the index by one
- if(orientation() == Qt::Horizontal)
+ if(orientation() == TQt::Horizontal)
{
if(pnt.x() > pntExclude.x())
iMinDistIdx--; // removing exclude will move everything one step back
@@ -427,7 +427,7 @@ bool KviCustomToolBar::eventFilter(TQObject *o,TQEvent *e)
{
KviActionManager::instance()->setCurrentToolBar(this);
TQMouseEvent * ev = (TQMouseEvent *)e;
- if(ev->button() & Qt::LeftButton)
+ if(ev->button() & TQt::LeftButton)
{
if(o->isWidgetType())
{