summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/klabel_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/gui/kde/klabel_impl.cpp')
-rw-r--r--arts/gui/kde/klabel_impl.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/arts/gui/kde/klabel_impl.cpp b/arts/gui/kde/klabel_impl.cpp
index 774a7de0..dd0a9557 100644
--- a/arts/gui/kde/klabel_impl.cpp
+++ b/arts/gui/kde/klabel_impl.cpp
@@ -22,12 +22,12 @@
#include "klabel_impl.moc"
#include <kdebug.h>
-#include <qfont.h>
+#include <tqfont.h>
using namespace Arts;
using namespace std;
-KLabel_impl::KLabel_impl( QFrame *widget ) : KFrame_impl( widget ? widget : new RotateLabel( 0 ) ) {
+KLabel_impl::KLabel_impl( TQFrame *widget ) : KFrame_impl( widget ? widget : new RotateLabel( 0 ) ) {
_label = static_cast<RotateLabel*>( _qwidget );
}
@@ -36,7 +36,7 @@ string KLabel_impl::text() {
}
void KLabel_impl::text( const string& newtext ) {
- _label->title( QString::fromUtf8( newtext.c_str() ) );
+ _label->title( TQString::fromUtf8( newtext.c_str() ) );
}
long KLabel_impl::align() { return _label->align(); }
@@ -50,40 +50,40 @@ void KLabel_impl::bottom( Arts::TextBottom n ) { _label->bottom( n ); }
REGISTER_IMPLEMENTATION( KLabel_impl );
-RotateLabel::RotateLabel( QWidget* p, const char* n ) : QFrame( p,n ) {
+RotateLabel::RotateLabel( TQWidget* p, const char* n ) : TQFrame( p,n ) {
_bottom = Arts::South;
_align = Arts::AlignCenter;
}
-void RotateLabel::paintEvent( QPaintEvent* ) {
- QPainter p( this );
+void RotateLabel::paintEvent( TQPaintEvent* ) {
+ TQPainter p( this );
if ( _bottom == Arts::East ) {
p.rotate( 270 );
- p.drawText( QRect( 0,0, -height(), width() ), _align, _title );
+ p.drawText( TQRect( 0,0, -height(), width() ), _align, _title );
} else if ( _bottom == Arts::West ) {
p.rotate( 90 );
- p.drawText( QRect( 0,0, height(), -width() ), _align, _title );
+ p.drawText( TQRect( 0,0, height(), -width() ), _align, _title );
} else if ( _bottom == Arts::North ) {
p.rotate( 180 );
- p.drawText( QRect( 0,0, -width(), -height() ), _align, _title );
+ p.drawText( TQRect( 0,0, -width(), -height() ), _align, _title );
} else {
- p.drawText( QRect( 0,0, width(), height() ), _align, _title );
+ p.drawText( TQRect( 0,0, width(), height() ), _align, _title );
}
}
-void RotateLabel::fontfamily( QString n ) {
- QFont font = this->font();
+void RotateLabel::fontfamily( TQString n ) {
+ TQFont font = this->font();
font.setFamily( n );
this->setFont( font );
}
void RotateLabel::fontsize( int n ) {
- QFont font = this->font();
+ TQFont font = this->font();
font.setPixelSize( n );
this->setFont( font );
}
-void RotateLabel::title( QString n ) {
+void RotateLabel::title( TQString n ) {
_title = n;
- QSize size = this->fontMetrics().size( SingleLine, _title );
+ TQSize size = this->fontMetrics().size( SingleLine, _title );
if ( _bottom == Arts::East || _bottom == Arts::West )
this->setMinimumSize( size.height(), size.width() );
else