diff options
Diffstat (limited to 'keduca/keduca/kquestion.cpp')
-rw-r--r-- | keduca/keduca/kquestion.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/keduca/keduca/kquestion.cpp b/keduca/keduca/kquestion.cpp index 262f89b3..69a90fdd 100644 --- a/keduca/keduca/kquestion.cpp +++ b/keduca/keduca/kquestion.cpp @@ -19,16 +19,16 @@ #include "kquestion.h" #include "kquestion.moc" -#include <qlayout.h> -#include <qpixmap.h> -#include <qvbox.h> -#include <qtimer.h> +#include <tqlayout.h> +#include <tqpixmap.h> +#include <tqvbox.h> +#include <tqtimer.h> #include <kprogress.h> #include <klocale.h> -KQuestion::KQuestion( QWidget *parent, const char *name ) - : QHBox( parent, name ), _countdownTimer( 0 ) +KQuestion::KQuestion( TQWidget *parent, const char *name ) + : TQHBox( parent, name ), _countdownTimer( 0 ) { initGUI(); } @@ -40,37 +40,37 @@ KQuestion::~KQuestion() /** Init graphical interface */ void KQuestion::initGUI() { - setFrameShape( QFrame::Box ); - setFrameShadow( QFrame::Plain ); - setPalette( QPalette( Qt::white ) ); + setFrameShape( TQFrame::Box ); + setFrameShadow( TQFrame::Plain ); + setPalette( TQPalette( Qt::white ) ); - QVBox *picBox = new QVBox( this ); + TQVBox *picBox = new TQVBox( this ); - _picture = new QLabel( picBox, "PixmapLabel1" ); + _picture = new TQLabel( picBox, "PixmapLabel1" ); _picture->setScaledContents( FALSE ); - _picture->setPalette( QPalette( Qt::white ) ); + _picture->setPalette( TQPalette( Qt::white ) ); _countdownWidget = new KProgress( picBox ); - _countdownWidget->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, - QSizePolicy::Preferred ) ); + _countdownWidget->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, + TQSizePolicy::Preferred ) ); _countdownWidget->setFormat( i18n( "%v seconds left" ) ); - _view = new QTextEdit( this, "TextView1" ); + _view = new TQTextEdit( this, "TextView1" ); _view->setReadOnly( true ); - _view->setFrameShape( QTextEdit::NoFrame ); - _view->setHScrollBarMode( QTextEdit::AlwaysOff ); - _view->setTextFormat( QTextEdit::RichText ); - _view->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, true ) ); + _view->setFrameShape( TQTextEdit::NoFrame ); + _view->setHScrollBarMode( TQTextEdit::AlwaysOff ); + _view->setTextFormat( TQTextEdit::RichText ); + _view->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, true ) ); } /** Set text */ -void KQuestion::setText( const QString &text) +void KQuestion::setText( const TQString &text) { _view->setText( text ); } /** Set pixmap */ -void KQuestion::setPixmap( const QPixmap pixmap) +void KQuestion::setPixmap( const TQPixmap pixmap) { _picture->setPixmap( pixmap ); } @@ -83,9 +83,9 @@ void KQuestion::countdown(int starttime) { if (!_countdownTimer) { - _countdownTimer = new QTimer(this); - connect(_countdownTimer, SIGNAL(timeout()), - this, SLOT(countDownOne())); + _countdownTimer = new TQTimer(this); + connect(_countdownTimer, TQT_SIGNAL(timeout()), + this, TQT_SLOT(countDownOne())); } _countdownTimer->start(1000); // make one step less than time passes by in seconds |