summaryrefslogtreecommitdiffstats
path: root/tdeui/kdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kdialog.cpp')
-rw-r--r--tdeui/kdialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeui/kdialog.cpp b/tdeui/kdialog.cpp
index 6d66d8efd..d4eb568a3 100644
--- a/tdeui/kdialog.cpp
+++ b/tdeui/kdialog.cpp
@@ -223,11 +223,11 @@ bool KDialog::avoidArea( TQWidget *w, const TQRect& area, int screen )
avoid.rRight() += 10;
avoid.rBottom() += 10;
- if ( QMAX( fg.top(), avoid.top() ) <= QMIN( fg.bottom(), avoid.bottom() ) )
+ if ( TQMAX( fg.top(), avoid.top() ) <= TQMIN( fg.bottom(), avoid.bottom() ) )
{
// We need to move the widget up or down
- int spaceAbove = QMAX(0, avoid.top() - scr.top());
- int spaceBelow = QMAX(0, scr.bottom() - avoid.bottom());
+ int spaceAbove = TQMAX(0, avoid.top() - scr.top());
+ int spaceBelow = TQMAX(0, scr.bottom() - avoid.bottom());
if ( spaceAbove > spaceBelow ) // where's the biggest side?
if ( fg.height() <= spaceAbove ) // big enough?
fg.setY( avoid.top() - fg.height() );
@@ -240,11 +240,11 @@ bool KDialog::avoidArea( TQWidget *w, const TQRect& area, int screen )
return false;
}
- if ( QMAX( fg.left(), avoid.left() ) <= QMIN( fg.right(), avoid.right() ) )
+ if ( TQMAX( fg.left(), avoid.left() ) <= TQMIN( fg.right(), avoid.right() ) )
{
// We need to move the widget left or right
- int spaceLeft = QMAX(0, avoid.left() - scr.left());
- int spaceRight = QMAX(0, scr.right() - avoid.right());
+ int spaceLeft = TQMAX(0, avoid.left() - scr.left());
+ int spaceRight = TQMAX(0, scr.right() - avoid.right());
if ( spaceLeft > spaceRight ) // where's the biggest side?
if ( fg.width() <= spaceLeft ) // big enough?
fg.setX( avoid.left() - fg.width() );