summaryrefslogtreecommitdiffstats
path: root/kugar/kudesigner_lib/band.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/kudesigner_lib/band.cpp')
-rw-r--r--kugar/kudesigner_lib/band.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kugar/kudesigner_lib/band.cpp b/kugar/kudesigner_lib/band.cpp
index 0b3225f6d..09e62dbe3 100644
--- a/kugar/kudesigner_lib/band.cpp
+++ b/kugar/kudesigner_lib/band.cpp
@@ -18,9 +18,9 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
*/
#include "band.h"
-#include <qcanvas.h>
-#include <qrect.h>
-#include <qpainter.h>
+#include <tqcanvas.h>
+#include <tqrect.h>
+#include <tqpainter.h>
#include <kglobalsettings.h>
@@ -34,7 +34,7 @@ namespace Kudesigner
Band::~Band()
{
- for ( QCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
+ for ( TQCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
{
// (*it)->hide();
m_canvas->selected.remove( static_cast<Box*>( *it ) );
@@ -44,7 +44,7 @@ Band::~Band()
items.clear();
}
-void Band::draw( QPainter &painter )
+void Band::draw( TQPainter &painter )
{
setX( m_canvas->kugarTemplate() ->props[ "LeftMargin" ].value().toInt() );
setSize( m_canvas->kugarTemplate() ->width()
@@ -61,7 +61,7 @@ void Band::arrange( int base, bool destructive )
setY( base );
if ( !destructive )
return ;
- for ( QCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
+ for ( TQCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
{
( *it ) ->moveBy( 0, diff );
// ( (CanvasReportItem *)(*it) )->updateGeomProps();
@@ -74,48 +74,48 @@ void Band::arrange( int base, bool destructive )
int Band::minHeight()
{
int result = static_cast<int>( y() + 10 );
- for ( QCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
+ for ( TQCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
{
- result = QMAX( result, static_cast<int>( static_cast<QCanvasRectangle*>( *it ) ->y() +
- static_cast<QCanvasRectangle*>( *it ) ->height() ) );
+ result = TQMAX( result, static_cast<int>( static_cast<TQCanvasRectangle*>( *it ) ->y() +
+ static_cast<TQCanvasRectangle*>( *it ) ->height() ) );
}
return result - static_cast<int>( y() );
}
-QString Band::getXml()
+TQString Band::getXml()
{
- QString result = "";
+ TQString result = "";
for ( Set::Iterator it( props ); it.current(); ++it )
{
- result += " " + QString(it.currentKey()) + "=" + "\"" + PropertySerializer::toString( it.current() ) + "\"";
+ result += " " + TQString(it.currentKey()) + "=" + "\"" + PropertySerializer::toString( it.current() ) + "\"";
}
result += ">\n";
- for ( QCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
+ for ( TQCanvasItemList::Iterator it = items.begin(); it != items.end(); ++it )
{
result += static_cast<ReportItem*>( *it ) ->getXml();
}
return result;
}
-int Band::isInHolder( const QPoint p )
+int Band::isInHolder( const TQPoint p )
{
- if ( bottomMiddleResizableRect().contains( p ) )
+ if ( bottomMiddleResizableRect().tqcontains( p ) )
return ( ResizeBottom );
return ResizeNothing;
}
-void Band::drawHolders( QPainter &painter )
+void Band::drawHolders( TQPainter &painter )
{
- painter.setPen( QColor( 0, 0, 0 ) );
+ painter.setPen( TQColor( 0, 0, 0 ) );
painter.setBrush( KGlobalSettings::highlightColor() );
painter.drawRect( bottomMiddleResizableRect() );
}
-QRect Band::bottomMiddleResizableRect()
+TQRect Band::bottomMiddleResizableRect()
{
- return QRect( ( int ) ( x() + width() / 2 - HolderSize / 2. ), ( int ) ( y() + height() - HolderSize ), HolderSize, HolderSize );
+ return TQRect( ( int ) ( x() + width() / 2 - HolderSize / 2. ), ( int ) ( y() + height() - HolderSize ), HolderSize, HolderSize );
}
void Band::updateGeomProps()