summaryrefslogtreecommitdiffstats
path: root/apps/ktorrent/newui/buttonbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ktorrent/newui/buttonbar.cpp')
-rw-r--r--apps/ktorrent/newui/buttonbar.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/ktorrent/newui/buttonbar.cpp b/apps/ktorrent/newui/buttonbar.cpp
index 4d45598..47227a8 100644
--- a/apps/ktorrent/newui/buttonbar.cpp
+++ b/apps/ktorrent/newui/buttonbar.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "buttonbar.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -37,9 +37,9 @@ ButtonLayout::ButtonLayout(ButtonBar *parent, Direction d, int margin, int spaci
{
}
-TQSize ButtonLayout::minimumSize() const
+TQSize ButtonLayout::tqminimumSize() const
{
- TQSize size = TQBoxLayout::minimumSize();
+ TQSize size = TQBoxLayout::tqminimumSize();
if (!m_buttonBar->autoResize())
return size;
@@ -54,7 +54,7 @@ TQSize ButtonLayout::minimumSize() const
case Ideal::Bottom:
return TQSize(0,size.height());
}
- return TQBoxLayout::minimumSize();
+ return TQBoxLayout::tqminimumSize();
}
@@ -128,14 +128,14 @@ void ButtonBar::fixDimensions()
{
case Ideal::Left:
case Ideal::Right:
- setFixedWidth(sizeHint().width());
- setMinimumHeight(sizeHint().height());
+ setFixedWidth(tqsizeHint().width());
+ setMinimumHeight(tqsizeHint().height());
setMaximumHeight(32767);
break;
case Ideal::Top:
case Ideal::Bottom:
- setFixedHeight(sizeHint().height());
- setMinimumWidth(sizeHint().width());
+ setFixedHeight(tqsizeHint().height());
+ setMinimumWidth(tqsizeHint().width());
setMaximumWidth(32767);
break;
}
@@ -156,13 +156,13 @@ void ButtonBar::resizeEvent(TQResizeEvent *ev)
{
case Ideal::Left:
case Ideal::Right:
- preferredDimension = l->TQBoxLayout::minimumSize().height();
+ preferredDimension = l->TQBoxLayout::tqminimumSize().height();
actualDimension = size().height();
oldDimension = ev->oldSize().height();
break;
case Ideal::Top:
case Ideal::Bottom:
- preferredDimension = l->TQBoxLayout::minimumSize().width();
+ preferredDimension = l->TQBoxLayout::tqminimumSize().width();
actualDimension = size().width();
oldDimension = ev->oldSize().width();
break;
@@ -285,7 +285,7 @@ int ButtonBar::originalDimension()
int size = 0;
for (ButtonList::const_iterator it = m_buttons.constBegin(); it != m_buttons.constEnd(); ++it)
{
- size += (*it)->sizeHint((*it)->realText()).width();
+ size += (*it)->tqsizeHint((*it)->realText()).width();
}
return size;
}