summaryrefslogtreecommitdiffstats
path: root/kpercentage
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kpercentage
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpercentage')
-rw-r--r--kpercentage/kpercentage/kanimation.cpp32
-rw-r--r--kpercentage/kpercentage/kanimation.h18
-rw-r--r--kpercentage/kpercentage/kanswer.cpp68
-rw-r--r--kpercentage/kpercentage/kanswer.h22
-rw-r--r--kpercentage/kpercentage/kpercentage.cpp96
-rw-r--r--kpercentage/kpercentage/kpercentage.h6
-rw-r--r--kpercentage/kpercentage/kpercentmain.cpp120
-rw-r--r--kpercentage/kpercentage/kpercentmain.h34
-rw-r--r--kpercentage/kpercentage/ksplashscreen.cpp22
9 files changed, 209 insertions, 209 deletions
diff --git a/kpercentage/kpercentage/kanimation.cpp b/kpercentage/kpercentage/kanimation.cpp
index a0e77910..93974af3 100644
--- a/kpercentage/kpercentage/kanimation.cpp
+++ b/kpercentage/kpercentage/kanimation.cpp
@@ -2,7 +2,7 @@
#include <stdlib.h>
// Qt includes
-#include <qfile.h>
+#include <tqfile.h>
// KDE includes
#include <kdebug.h>
@@ -32,7 +32,7 @@ KScene::KScene()
{
current_frame_number = 0;
setAutoDelete( TRUE );
- following = new QStrList( TRUE ); // deep copy
+ following = new TQStrList( TRUE ); // deep copy
following->setAutoDelete( TRUE );
}
@@ -58,12 +58,12 @@ KFrame *KScene::currentFrame()
return 0;
}
-void KScene::addFollowingScene( const QString scene_name )
+void KScene::addFollowingScene( const TQString scene_name )
{
following->append( scene_name.latin1() );
}
-void KScene::followingSceneName( QString& scene_name )
+void KScene::followingSceneName( TQString& scene_name )
{
if ( following->count() == 0 )
scene_name = "";
@@ -80,23 +80,23 @@ void KScene::setToStart()
/////////////
// KStoryBoard
-KStoryBoard::KStoryBoard( const QString filename ) : QDict<KScene>()
+KStoryBoard::KStoryBoard( const TQString filename ) : TQDict<KScene>()
{
current_scene = 0;
- QFile f( filename );
+ TQFile f( filename );
KScene *c_scene = 0;
if ( f.open( IO_ReadOnly ) ) // file opened successfully
{
- QTextStream t( &f ); // use a text stream
+ TQTextStream t( &f ); // use a text stream
kdDebug() << "loading the story board..." << endl;
while ( !t.eof() ) // until end of file...
{
- QString s = t.readLine(); // line of text excluding '\n'
- QString dbgString = s;
+ TQString s = t.readLine(); // line of text excluding '\n'
+ TQString dbgString = s;
int pos = s.find ( "#");
if (pos==-1)
pos = s.find ( ";");
@@ -108,11 +108,11 @@ KStoryBoard::KStoryBoard( const QString filename ) : QDict<KScene>()
}
if ( !s.isEmpty() )
{
- QString command_word = s.section( " ", 0, 0 );
+ TQString command_word = s.section( " ", 0, 0 );
// new scene beginning
if ( command_word == "name" )
{
- QString scene_name = s.section( " ", 1, 1 );
+ TQString scene_name = s.section( " ", 1, 1 );
c_scene = new KScene();
insert( scene_name, c_scene );
kdDebug() << "scene found: " << scene_name << endl;
@@ -120,7 +120,7 @@ KStoryBoard::KStoryBoard( const QString filename ) : QDict<KScene>()
// new frame
if ( c_scene && command_word == "move" )
{
- QString parameters = s.section( " ", 1, 1 );
+ TQString parameters = s.section( " ", 1, 1 );
c_scene->append( new KFrame(
parameters.section( ",", 0, 0 ).toDouble(),
parameters.section( ",", 1, 1 ).toDouble(),
@@ -161,7 +161,7 @@ KStoryBoard::KStoryBoard( const QString filename ) : QDict<KScene>()
return current_scene->currentFrame();
else
{
- QString scene_name;
+ TQString scene_name;
current_scene->followingSceneName( scene_name );
current_scene = find( scene_name );
if ( current_scene )
@@ -189,9 +189,9 @@ KStoryBoard::KStoryBoard( const QString filename ) : QDict<KScene>()
//////////
// KAnimation
- KAnimation::KAnimation( const QString story_filename,
- QCanvasPixmapArray * a, QCanvas * canvas ) :
- QCanvasSprite( a, canvas )
+ KAnimation::KAnimation( const TQString story_filename,
+ TQCanvasPixmapArray * a, TQCanvas * canvas ) :
+ TQCanvasSprite( a, canvas )
{
story = new KStoryBoard( story_filename );
}
diff --git a/kpercentage/kpercentage/kanimation.h b/kpercentage/kpercentage/kanimation.h
index 97d492f5..2f5b0462 100644
--- a/kpercentage/kpercentage/kanimation.h
+++ b/kpercentage/kpercentage/kanimation.h
@@ -1,8 +1,8 @@
#ifndef KANIMATION_H
#define KANIMATION_H
-#include <qcanvas.h>
-#include <qdict.h>
+#include <tqcanvas.h>
+#include <tqdict.h>
class QString;
@@ -32,7 +32,7 @@ class KFrame
* This class handles a list of frames, called "scene".
* Also a list of possibly following scene names is maintained.
*/
-class KScene: public QPtrList<KFrame>
+class KScene: public TQPtrList<KFrame>
{
public:
/**
@@ -58,26 +58,26 @@ class KScene: public QPtrList<KFrame>
/**
* adds a scene name
*/
- void addFollowingScene( const QString scene_name );
+ void addFollowingScene( const TQString scene_name );
/**
* selects a scene out of the list of possibly following scenes.
*/
- void followingSceneName( QString& scene_name);
+ void followingSceneName( TQString& scene_name);
void setToStart();
private:
- QStrList *following;
+ TQStrList *following;
unsigned int current_frame_number;
};
/**
* KStoryBoard
*/
-class KStoryBoard: public QDict<KScene>
+class KStoryBoard: public TQDict<KScene>
{
public:
- KStoryBoard( const QString filename );
+ KStoryBoard( const TQString filename );
~KStoryBoard();
KFrame *nextFrame();
@@ -91,7 +91,7 @@ class KStoryBoard: public QDict<KScene>
class KAnimation: public QCanvasSprite
{
public:
- KAnimation( const QString stroy_filename, QCanvasPixmapArray *a, QCanvas *canvas );
+ KAnimation( const TQString stroy_filename, TQCanvasPixmapArray *a, TQCanvas *canvas );
~KAnimation();
virtual void advance( int phase );
diff --git a/kpercentage/kpercentage/kanswer.cpp b/kpercentage/kpercentage/kanswer.cpp
index 3042008c..d723629b 100644
--- a/kpercentage/kpercentage/kanswer.cpp
+++ b/kpercentage/kpercentage/kanswer.cpp
@@ -24,9 +24,9 @@
#include <assert.h>
// Qt includes
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
// KDE includes
#include <kdebug.h>
@@ -40,42 +40,42 @@
#include "kanimation.h"
#include "kanswer.h"
-KAnswer::KAnswer( QWidget *parent ): KDialog( parent, "answer", TRUE )
+KAnswer::KAnswer( TQWidget *parent ): KDialog( parent, "answer", TRUE )
{
setFont( parent->font() );
// fix size for the background pixmap
- setFixedSize( QSize( 430, 190 ) );
+ setFixedSize( TQSize( 430, 190 ) );
// load background pixmap
- QPixmap bgp( locate( "data", "kpercentage/pics/kanswer_bg.png" ) );
+ TQPixmap bgp( locate( "data", "kpercentage/pics/kanswer_bg.png" ) );
setBackgroundPixmap( bgp );
setupSprite();
ButtonOK = new KPushButton( KStdGuiItem::ok(), this );
// for the bottons edges
- ButtonOK->setBackgroundOrigin( QPushButton::ParentOrigin );
- ButtonOK->setIconSet( QIconSet( DesktopIcon( "button_ok" ) ) );
+ ButtonOK->setBackgroundOrigin( TQPushButton::ParentOrigin );
+ ButtonOK->setIconSet( TQIconSet( DesktopIcon( "button_ok" ) ) );
// ButtonOK->hide();
- TextLabelAnswer = new QLabel( this );
+ TextLabelAnswer = new TQLabel( this );
// make the label transparent
- TextLabelAnswer->setBackgroundOrigin( QLabel::ParentOrigin );
+ TextLabelAnswer->setBackgroundOrigin( TQLabel::ParentOrigin );
TextLabelAnswer->setBackgroundPixmap( bgp );
canvas->setBackgroundPixmap( bgp );
- canvas_view->setBackgroundOrigin( QCanvasView::ParentOrigin );
+ canvas_view->setBackgroundOrigin( TQCanvasView::ParentOrigin );
canvas_view->setBackgroundPixmap( bgp );
///////
// begin layouting
///////
- mainLayout = new QHBoxLayout( this );
- mainLayout->setDirection(QBoxLayout::LeftToRight);
+ mainLayout = new TQHBoxLayout( this );
+ mainLayout->setDirection(TQBoxLayout::LeftToRight);
// mainLayout->addSpacing( 20 );
- QVBoxLayout *leftLayout = new QVBoxLayout( mainLayout, -1, "main" );
+ TQVBoxLayout *leftLayout = new TQVBoxLayout( mainLayout, -1, "main" );
// leftLayout->addSpacing( 20 );
leftLayout->addWidget( canvas_view );
leftLayout->addSpacing( 20 );
@@ -83,20 +83,20 @@ KAnswer::KAnswer( QWidget *parent ): KDialog( parent, "answer", TRUE )
mainLayout->addSpacing( 60 );
- QVBoxLayout *rightLayout = new QVBoxLayout( mainLayout, -1, "right" );
+ TQVBoxLayout *rightLayout = new TQVBoxLayout( mainLayout, -1, "right" );
rightLayout->addStretch( 2 );
- QHBoxLayout *topLayout = new QHBoxLayout( rightLayout, -1, "top" );
- topLayout->setDirection(QBoxLayout::LeftToRight);
+ TQHBoxLayout *topLayout = new TQHBoxLayout( rightLayout, -1, "top" );
+ topLayout->setDirection(TQBoxLayout::LeftToRight);
topLayout->addStretch();
topLayout->addWidget( TextLabelAnswer );
topLayout->addStretch();
rightLayout->addStretch( 2 );
- QHBoxLayout *bottomLayout = new QHBoxLayout( rightLayout, -1, "bottom" );
- bottomLayout->setDirection(QBoxLayout::LeftToRight);
+ TQHBoxLayout *bottomLayout = new TQHBoxLayout( rightLayout, -1, "bottom" );
+ bottomLayout->setDirection(TQBoxLayout::LeftToRight);
bottomLayout->addStretch();
bottomLayout->addWidget( ButtonOK );
bottomLayout->addSpacing( 20 );
@@ -106,22 +106,22 @@ KAnswer::KAnswer( QWidget *parent ): KDialog( parent, "answer", TRUE )
// end layouting
///////
- connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
+ connect( ButtonOK, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
loadAnswers();
}
void KAnswer::loadAnswers()
{
// helping to manage the IO
- QString s;
- QFile f;
- QTextStream t;
+ TQString s;
+ TQFile f;
+ TQTextStream t;
//reading proper answers from file
f.setName( locate( "data", "kpercentage/right.txt" ) );
if ( f.open( IO_ReadOnly ) ) // file opened successfully
{
- QTextStream t( &f ); // use a text stream
+ TQTextStream t( &f ); // use a text stream
while ( !t.eof() ) // until end of file...
{
s = t.readLine(); // line of text excluding '\n'
@@ -134,7 +134,7 @@ void KAnswer::loadAnswers()
f.setName( locate( "data", "kpercentage/wrong.txt" ) );
if ( f.open( IO_ReadOnly ) ) // file opened successfully
{
- QTextStream t( &f ); // use a text stream
+ TQTextStream t( &f ); // use a text stream
while ( !t.eof() ) // until end of file...
{
s = t.readLine(); // line of text excluding '\n'
@@ -198,13 +198,13 @@ void KAnswer::setAnswer( int modus )
}
// reads one answer out of the list by chance
-QString KAnswer::getRightAnswer()
+TQString KAnswer::getRightAnswer()
{
return i18n( rightAnswerList[ random() % rightAnswerList.count() ].utf8() );
}
// reads one answer out of the list by chance
-QString KAnswer::getWrongAnswer()
+TQString KAnswer::getWrongAnswer()
{
return i18n( wrongAnswerList[ random() % wrongAnswerList.count() ].utf8() );
}
@@ -217,24 +217,24 @@ void KAnswer::setupSprite()
advPer = 80;
- canvas = new QCanvas( this );
+ canvas = new TQCanvas( this );
canvas->resize( size().width(), size().height() );
- pixs = new QCanvasPixmapArray( locate( "data", "kpercentage/pics/" )+"smily%1.png", 7 );
+ pixs = new TQCanvasPixmapArray( locate( "data", "kpercentage/pics/" )+"smily%1.png", 7 );
right_animation = new KAnimation( locate( "data", "kpercentage/story/right.story" ), pixs , canvas );
right_animation->setAnimated( TRUE );
wrong_animation = new KAnimation( locate( "data", "kpercentage/story/wrong.story" ), pixs , canvas );
wrong_animation->setAnimated( TRUE );
- canvas_view = new QCanvasView( canvas, this );
+ canvas_view = new TQCanvasView( canvas, this );
canvas_view->resize( size() );
- canvas_view->setVScrollBarMode( QCanvasView::AlwaysOff );
- canvas_view->setHScrollBarMode( QCanvasView::AlwaysOff );
- canvas_view->setFrameStyle( QCanvasView::NoFrame );
+ canvas_view->setVScrollBarMode( TQCanvasView::AlwaysOff );
+ canvas_view->setHScrollBarMode( TQCanvasView::AlwaysOff );
+ canvas_view->setFrameStyle( TQCanvasView::NoFrame );
}
-void KAnswer::timerEvent( QTimerEvent *event )
+void KAnswer::timerEvent( TQTimerEvent *event )
{
accept();
}
diff --git a/kpercentage/kpercentage/kanswer.h b/kpercentage/kpercentage/kanswer.h
index 32519398..5d603e41 100644
--- a/kpercentage/kpercentage/kanswer.h
+++ b/kpercentage/kpercentage/kanswer.h
@@ -54,7 +54,7 @@ class KAnswer : public KDialog
*
* @param parent Parent widget for modal functionality
*/
- KAnswer( QWidget *parent );
+ KAnswer( TQWidget *parent );
// public functions
/** setting/changing feedback text and pic */
@@ -62,7 +62,7 @@ class KAnswer : public KDialog
public slots:
/** reimplemented: close the window after some time */
- void timerEvent( QTimerEvent * );
+ void timerEvent( TQTimerEvent * );
void accept();
int exec();
@@ -72,31 +72,31 @@ class KAnswer : public KDialog
/** Loads feadback sentences from file */
void loadAnswers();
/** Gets a answer by chance for well solved tasks. */
- QString getRightAnswer();
+ TQString getRightAnswer();
/** Gets a answer by chance for not solved tasks. */
- QString getWrongAnswer();
+ TQString getWrongAnswer();
// GUI widgets
/** Label for the answer text */
- QLabel *TextLabelAnswer;
+ TQLabel *TextLabelAnswer;
/** OK button */
KPushButton *ButtonOK;
/** List of feedback text for well solved tasks. */
- QStringList rightAnswerList;
+ TQStringList rightAnswerList;
/** List of feedback text for not solved tasks. */
- QStringList wrongAnswerList;
+ TQStringList wrongAnswerList;
- QHBoxLayout *mainLayout;
+ TQHBoxLayout *mainLayout;
KAnimation *right_animation;
KAnimation *wrong_animation;
int advPer;
- QCanvasView *canvas_view;
- QCanvasPixmapArray *pixs;
- QCanvas *canvas;
+ TQCanvasView *canvas_view;
+ TQCanvasPixmapArray *pixs;
+ TQCanvas *canvas;
void setupSprite();
};
diff --git a/kpercentage/kpercentage/kpercentage.cpp b/kpercentage/kpercentage/kpercentage.cpp
index d8ff8e34..f51f8364 100644
--- a/kpercentage/kpercentage/kpercentage.cpp
+++ b/kpercentage/kpercentage/kpercentage.cpp
@@ -23,10 +23,10 @@
#include <stdlib.h>
// Qt includes
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
// KDE includes
#include <khelpmenu.h>
@@ -52,7 +52,7 @@ KPercentage::KPercentage( const char *name ) :
KIconLoader icon_loader;
// let's set a suitable, not too small font size
- QFont the_font( font() );
+ TQFont the_font( font() );
the_font.setPointSize( 14 );
//the_font.setBold(true);
setFont( the_font );
@@ -61,59 +61,59 @@ KPercentage::KPercentage( const char *name ) :
percent_main = new KPercentMain( this, "KPercentage" );
// fixed geometry bacause of background pixmap
- setFixedSize( QSize( 548, 248 ) );
+ setFixedSize( TQSize( 548, 248 ) );
/** load and set background pixmap */
- QPixmap bgp( locate( "data", QApplication::reverseLayout() ? "kpercentage/pics/kpercentage_bg_rtl.png" : "kpercentage/pics/kpercentage_bg.png" ) );
+ TQPixmap bgp( locate( "data", TQApplication::reverseLayout() ? "kpercentage/pics/kpercentage_bg_rtl.png" : "kpercentage/pics/kpercentage_bg.png" ) );
setBackgroundPixmap( bgp );
- QLabel *label_number = new QLabel( i18n( "Number of tasks:" ), this );
- QLabel *label_level = new QLabel( i18n( "Level:" ), this );
- QLabel *label_choose = new QLabel( i18n( "Choose an exercise type:" ), this );
+ TQLabel *label_number = new TQLabel( i18n( "Number of tasks:" ), this );
+ TQLabel *label_level = new TQLabel( i18n( "Level:" ), this );
+ TQLabel *label_choose = new TQLabel( i18n( "Choose an exercise type:" ), this );
/** make labels transparent */
label_number->setBackgroundPixmap( bgp );
- label_number->setBackgroundOrigin( QLabel::ParentOrigin );
+ label_number->setBackgroundOrigin( TQLabel::ParentOrigin );
label_level->setBackgroundPixmap( bgp );
- label_level->setBackgroundOrigin( QLabel::ParentOrigin );
+ label_level->setBackgroundOrigin( TQLabel::ParentOrigin );
label_choose->setBackgroundPixmap( bgp );
- label_choose->setBackgroundOrigin( QLabel::ParentOrigin );
+ label_choose->setBackgroundOrigin( TQLabel::ParentOrigin );
KPushButton *button_basevalue = new KPushButton( i18n( "x% &of ?? = y" ), this );
KPushButton *button_percentvalue = new KPushButton( i18n( "x% of &y = ??" ), this );
KPushButton *button_percentage = new KPushButton( i18n( "??% o&f x = y" ), this );
KPushButton *button_random = new KPushButton( i18n( "??" ), this );
KPushButton *button_help = new KPushButton( KStdGuiItem::help().text(), this );
- button_help->setIconSet( QIconSet( icon_loader.loadIcon( "help", KIcon::NoGroup, 32 ) ) );
+ button_help->setIconSet( TQIconSet( icon_loader.loadIcon( "help", KIcon::NoGroup, 32 ) ) );
KHelpMenu *help_menu = new KHelpMenu( this, KGlobal::instance()->aboutData(), true );
- button_help->setPopup( ( QPopupMenu* ) ( help_menu->menu() ) );
+ button_help->setPopup( ( TQPopupMenu* ) ( help_menu->menu() ) );
KPushButton *button_close = new KPushButton( i18n( "E&xit" ), this );
- button_close->setIconSet( QIconSet( icon_loader.loadIcon( "exit", KIcon::NoGroup, 32 ) ) );
+ button_close->setIconSet( TQIconSet( icon_loader.loadIcon( "exit", KIcon::NoGroup, 32 ) ) );
combo_box_level = new KComboBox( this );
combo_box_level->insertItem( i18n( "Easy" ) );
combo_box_level->insertItem( i18n( "Medium" ) );
combo_box_level->insertItem( i18n( "Crazy" ) );
- spin_box_number = new QSpinBox( 1, 10, 1, this );
+ spin_box_number = new TQSpinBox( 1, 10, 1, this );
spin_box_number->setValue( 5 );
// connecting all the slots
- connect( button_basevalue, SIGNAL( clicked() ), this, SLOT( selBasevalue() ) );
- connect( button_percentvalue, SIGNAL( clicked() ), this, SLOT( selPercentvalue() ) );
- connect( button_percentage, SIGNAL( clicked() ), this, SLOT( selPercentage() ) );
- connect( button_random, SIGNAL( clicked() ), this, SLOT( selRandom() ) );
- connect( button_help, SIGNAL( clicked() ), this, SLOT( needHelp() ) );
- connect( button_close, SIGNAL( clicked() ), this, SLOT( accept() ) );
+ connect( button_basevalue, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selBasevalue() ) );
+ connect( button_percentvalue, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selPercentvalue() ) );
+ connect( button_percentage, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selPercentage() ) );
+ connect( button_random, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selRandom() ) );
+ connect( button_help, TQT_SIGNAL( clicked() ), this, TQT_SLOT( needHelp() ) );
+ connect( button_close, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
////////
// begin layouting
////////
- QVBoxLayout *main_layout = new QVBoxLayout( this, 20, 20, "main_layout" );
- main_layout->setResizeMode( QLayout::FreeResize );
+ TQVBoxLayout *main_layout = new TQVBoxLayout( this, 20, 20, "main_layout" );
+ main_layout->setResizeMode( TQLayout::FreeResize );
- QHBoxLayout *top_layout = new QHBoxLayout( main_layout, -1, "top_layout" );
+ TQHBoxLayout *top_layout = new TQHBoxLayout( main_layout, -1, "top_layout" );
top_layout->addWidget( label_number );
top_layout->addWidget( spin_box_number );
top_layout->addSpacing( 20 );
@@ -124,12 +124,12 @@ KPercentage::KPercentage( const char *name ) :
main_layout->addSpacing( 40 );
main_layout->addStretch();
- QHBoxLayout *bottom_layout = new QHBoxLayout( main_layout, -1, "bottom_layout" );
- QVBoxLayout *bLeftLayout = new QVBoxLayout( bottom_layout );
+ TQHBoxLayout *bottom_layout = new TQHBoxLayout( main_layout, -1, "bottom_layout" );
+ TQVBoxLayout *bLeftLayout = new TQVBoxLayout( bottom_layout );
bLeftLayout->addWidget( label_choose );
bLeftLayout->addSpacing( 10 );
- QGridLayout *grid_layout = new QGridLayout( bLeftLayout, 2, 2, 10 );
+ TQGridLayout *grid_layout = new TQGridLayout( bLeftLayout, 2, 2, 10 );
grid_layout->addWidget( button_basevalue, 0, 0 );
grid_layout->addWidget( button_percentvalue, 1, 0 );
grid_layout->addWidget( button_percentage, 0, 1 );
@@ -137,7 +137,7 @@ KPercentage::KPercentage( const char *name ) :
bottom_layout->addStretch();
- QVBoxLayout *b_right_layout = new QVBoxLayout( bottom_layout );
+ TQVBoxLayout *b_right_layout = new TQVBoxLayout( bottom_layout );
b_right_layout->addStretch();
b_right_layout->addWidget( button_help );
b_right_layout->addSpacing( 10 );
@@ -150,25 +150,25 @@ KPercentage::KPercentage( const char *name ) :
////////
// Tooltips
- QToolTip::add( button_basevalue, i18n( "Exercises with base value omitted" ) );
- QToolTip::add( button_percentvalue, i18n( "Exercises with percent value omitted" ) );
- QToolTip::add( button_percentage, i18n( "Exercises with percentage omitted" ) );
- QToolTip::add( button_random, i18n( "Several exercise types in random" ) );
- QToolTip::add( spin_box_number, i18n( "Choose the number of exercises from 1 to 10." ) );
- QToolTip::add( combo_box_level, i18n( "Choose the level of difficulty." ) );
- QToolTip::add( button_close, i18n( "Close KPercentage." ) );
- QToolTip::add( button_help, i18n( "Get some help." ) );
+ TQToolTip::add( button_basevalue, i18n( "Exercises with base value omitted" ) );
+ TQToolTip::add( button_percentvalue, i18n( "Exercises with percent value omitted" ) );
+ TQToolTip::add( button_percentage, i18n( "Exercises with percentage omitted" ) );
+ TQToolTip::add( button_random, i18n( "Several exercise types in random" ) );
+ TQToolTip::add( spin_box_number, i18n( "Choose the number of exercises from 1 to 10." ) );
+ TQToolTip::add( combo_box_level, i18n( "Choose the level of difficulty." ) );
+ TQToolTip::add( button_close, i18n( "Close KPercentage." ) );
+ TQToolTip::add( button_help, i18n( "Get some help." ) );
////////
// WhatsThis
- QWhatsThis::add( button_basevalue, i18n( "Click here to start a sequence of exercises where the base value is omitted.") );
- QWhatsThis::add( button_percentvalue, i18n( "Click here to start a sequence of exercises where the percent value is omitted." ) );
- QWhatsThis::add( button_percentage, i18n( "Click here to start a sequence of exercises where the percentage is omitted." ) );
- QWhatsThis::add( button_random, i18n( "Click here to start a sequence of exercises where one value is omitted at random." ) );
- QWhatsThis::add( spin_box_number, i18n( "Here you can adjust the number of exercises from 1 to 10." ) );
- QWhatsThis::add( combo_box_level, i18n( "Choose one of the levels <i>easy</i>, <i>medium</i>, and <i>crazy</i>." ) );
- QWhatsThis::add( button_close, i18n( "Close KPercentage." ) );
- QWhatsThis::add( button_help, i18n( "Get some help." ) );
+ TQWhatsThis::add( button_basevalue, i18n( "Click here to start a sequence of exercises where the base value is omitted.") );
+ TQWhatsThis::add( button_percentvalue, i18n( "Click here to start a sequence of exercises where the percent value is omitted." ) );
+ TQWhatsThis::add( button_percentage, i18n( "Click here to start a sequence of exercises where the percentage is omitted." ) );
+ TQWhatsThis::add( button_random, i18n( "Click here to start a sequence of exercises where one value is omitted at random." ) );
+ TQWhatsThis::add( spin_box_number, i18n( "Here you can adjust the number of exercises from 1 to 10." ) );
+ TQWhatsThis::add( combo_box_level, i18n( "Choose one of the levels <i>easy</i>, <i>medium</i>, and <i>crazy</i>." ) );
+ TQWhatsThis::add( button_close, i18n( "Close KPercentage." ) );
+ TQWhatsThis::add( button_help, i18n( "Get some help." ) );
}
void KPercentage::selPercentage()
@@ -210,7 +210,7 @@ void KPercentage::startExercise()
percent_main->setNumber( spin_box_number->value() );
percent_main->selected_level = combo_box_level->currentItem();
percent_main->initExercise();
- QPoint p = pos();
+ TQPoint p = pos();
hide();
percent_main->move( p );
percent_main->exec();
@@ -223,7 +223,7 @@ void KPercentage::needHelp()
kapp->invokeHelp( "", "kpercentage" );
}
-void KPercentage::closeEvent( QCloseEvent * )
+void KPercentage::closeEvent( TQCloseEvent * )
{
exit( 0 );
}
diff --git a/kpercentage/kpercentage/kpercentage.h b/kpercentage/kpercentage/kpercentage.h
index ff06c102..c4b9b42c 100644
--- a/kpercentage/kpercentage/kpercentage.h
+++ b/kpercentage/kpercentage/kpercentage.h
@@ -27,7 +27,7 @@
#endif
// Qt includes
-#include <qspinbox.h>
+#include <tqspinbox.h>
// KDE includes
#include <kapplication.h>
@@ -70,13 +70,13 @@ public slots: // Public slots
protected:
/** closes the application */
- void closeEvent(QCloseEvent *);
+ void closeEvent(TQCloseEvent *);
private:
/** Choose the level: easy, medium, crazy */
KComboBox *combo_box_level;
/** Choose the number of exercises. */
- QSpinBox *spin_box_number;
+ TQSpinBox *spin_box_number;
/** common preparing the exercise */
void startExercise();
diff --git a/kpercentage/kpercentage/kpercentmain.cpp b/kpercentage/kpercentage/kpercentmain.cpp
index 276b787d..67f4a687 100644
--- a/kpercentage/kpercentage/kpercentmain.cpp
+++ b/kpercentage/kpercentage/kpercentmain.cpp
@@ -24,11 +24,11 @@
#include <time.h>
// Qt includes
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qprogressbar.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqprogressbar.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
// KDE includes
#include <kiconloader.h>
@@ -42,94 +42,94 @@
#include "kpercentage.h"
-KPercentMain::KPercentMain( QWidget *parent, const char *name ) :
+KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
KDialog( parent, name, TRUE ) // TRUE for modal dialog
{
setFont( parent->font() );
/** load and set the background pixmap */
- QPixmap bgp( locate( "data", QApplication::reverseLayout() ? "kpercentage/pics/kpercentmain_bg_rtl.png" : "kpercentage/pics/kpercentmain_bg.png" ) );
+ TQPixmap bgp( locate( "data", TQApplication::reverseLayout() ? "kpercentage/pics/kpercentmain_bg_rtl.png" : "kpercentage/pics/kpercentmain_bg.png" ) );
// resize( 520, 220 );
- setFixedSize( QSize( 520, 275 ) );
+ setFixedSize( TQSize( 520, 275 ) );
setBackgroundPixmap( bgp );
- setBackgroundOrigin( QDialog::ParentOrigin );
+ setBackgroundOrigin( TQDialog::ParentOrigin );
KIntValidator *validLine = new KIntValidator( this );
- line_edit_percentage = new QLineEdit( this, "line_edit_percentage" );
- line_edit_percentage->setAlignment( int( QLineEdit::AlignHCenter ) );
+ line_edit_percentage = new TQLineEdit( this, "line_edit_percentage" );
+ line_edit_percentage->setAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_percentage->setValidator( validLine );
- line_edit_basevalue = new QLineEdit( this, "line_edit_basevalue" );
- line_edit_basevalue->setAlignment( int( QLineEdit::AlignHCenter ) );
+ line_edit_basevalue = new TQLineEdit( this, "line_edit_basevalue" );
+ line_edit_basevalue->setAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_basevalue->setValidator( validLine );
- line_edit_percentvalue = new QLineEdit( this, "line_edit_percentvalue" );
- line_edit_percentvalue->setAlignment( int( QLineEdit::AlignHCenter ) );
+ line_edit_percentvalue = new TQLineEdit( this, "line_edit_percentvalue" );
+ line_edit_percentvalue->setAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_percentvalue->setValidator( validLine );
- progress_bar_count = new QProgressBar( this, "progress_bar_count" );
- progress_bar_count->setFrameShape( QProgressBar::Panel );
- progress_bar_count->setFrameShadow( QProgressBar::Sunken );
+ progress_bar_count = new TQProgressBar( this, "progress_bar_count" );
+ progress_bar_count->setFrameShape( TQProgressBar::Panel );
+ progress_bar_count->setFrameShadow( TQProgressBar::Sunken );
// progress_bar_count->setFixedWidth( 250 );
- progress_bar_right_wrong = new QProgressBar( this, "progress_bar_right" );
- progress_bar_right_wrong->setFrameShape( QProgressBar::Panel );
- progress_bar_right_wrong->setFrameShadow( QProgressBar::Sunken );
+ progress_bar_right_wrong = new TQProgressBar( this, "progress_bar_right" );
+ progress_bar_right_wrong->setFrameShape( TQProgressBar::Panel );
+ progress_bar_right_wrong->setFrameShadow( TQProgressBar::Sunken );
// progress_bar_right_wrong->setFixedWidth( 250 );
progress_bar_right_wrong->setPercentageVisible( FALSE );
- progress_bar_right_wrong->setPaletteBackgroundColor( QColor( "red" ) );
+ progress_bar_right_wrong->setPaletteBackgroundColor( TQColor( "red" ) );
- label_right = new QLabel( this, "" );
+ label_right = new TQLabel( this, "" );
label_right->setBackgroundPixmap( bgp );
- label_right->setBackgroundOrigin( QDialog::ParentOrigin );
- label_wrong = new QLabel( this, "" );
+ label_right->setBackgroundOrigin( TQDialog::ParentOrigin );
+ label_wrong = new TQLabel( this, "" );
label_wrong->setBackgroundPixmap( bgp );
- label_wrong->setBackgroundOrigin( QDialog::ParentOrigin );
+ label_wrong->setBackgroundOrigin( TQDialog::ParentOrigin );
- push_button_apply = new QPushButton( this, "push_button_apply" );
+ push_button_apply = new TQPushButton( this, "push_button_apply" );
push_button_apply->setText( KStdGuiItem::apply().text() );
push_button_apply->setDefault( TRUE );
push_button_apply->setBackgroundPixmap( bgp);
- push_button_apply->setBackgroundOrigin( QPushButton::ParentOrigin );
+ push_button_apply->setBackgroundOrigin( TQPushButton::ParentOrigin );
- push_button_cancel = new QPushButton( this, "push_button_cancel" );
+ push_button_cancel = new TQPushButton( this, "push_button_cancel" );
push_button_cancel->setText( KStdGuiItem::cancel().text() );
KIconLoader icon_loader;
- push_button_apply->setIconSet( QIconSet( icon_loader.loadIcon( "button_ok", KIcon::NoGroup, 32 ) ) );
- push_button_cancel->setIconSet( QIconSet( icon_loader.loadIcon( "button_cancel", KIcon::NoGroup, 32 ) ) );
+ push_button_apply->setIconSet( TQIconSet( icon_loader.loadIcon( "button_ok", KIcon::NoGroup, 32 ) ) );
+ push_button_cancel->setIconSet( TQIconSet( icon_loader.loadIcon( "button_cancel", KIcon::NoGroup, 32 ) ) );
- label_1 = new QLabel( this, "label_1" );
+ label_1 = new TQLabel( this, "label_1" );
label_1->setText( i18n( " % of " ) );
label_1->setBackgroundPixmap( bgp );
- label_1->setBackgroundOrigin( QDialog::ParentOrigin );
+ label_1->setBackgroundOrigin( TQDialog::ParentOrigin );
- label_2 = new QLabel( this, "label_2" );
+ label_2 = new TQLabel( this, "label_2" );
label_2->setText( i18n( " = " ) );
label_2->setBackgroundPixmap( bgp );
- label_2->setBackgroundOrigin( QDialog::ParentOrigin );
+ label_2->setBackgroundOrigin( TQDialog::ParentOrigin );
- label_number = new QLabel( this, "label_number" );
+ label_number = new TQLabel( this, "label_number" );
label_number->setBackgroundPixmap( bgp );
- label_number->setBackgroundOrigin( QDialog::ParentOrigin );
+ label_number->setBackgroundOrigin( TQDialog::ParentOrigin );
label_number->setText( i18n( "Task no. MM:" ) ); // for the right width
- label_count = new QLabel( this, "label_count" );
+ label_count = new TQLabel( this, "label_count" );
label_count->setText( i18n( "You got MM of MM." ) ); // for the right width
label_count->setBackgroundPixmap( bgp );
- label_count->setBackgroundOrigin( QDialog::ParentOrigin );
+ label_count->setBackgroundOrigin( TQDialog::ParentOrigin );
//////
// begin layouting
//////
- QVBoxLayout *main_layout = new QVBoxLayout ( this, 0, -1, "main_layout" );
+ TQVBoxLayout *main_layout = new TQVBoxLayout ( this, 0, -1, "main_layout" );
main_layout->setMargin( 20 );
main_layout->setSpacing( 10 );
- QHBoxLayout *label_number_layout = new QHBoxLayout ( main_layout, -1, "label_number_layout" );
+ TQHBoxLayout *label_number_layout = new TQHBoxLayout ( main_layout, -1, "label_number_layout" );
label_number_layout->addWidget( label_number );
label_number_layout->addStretch();
- QHBoxLayout *line_edit_layout = new QHBoxLayout ( main_layout, -1, "line_edit_layout" );
+ TQHBoxLayout *line_edit_layout = new TQHBoxLayout ( main_layout, -1, "line_edit_layout" );
line_edit_layout->addWidget( line_edit_percentage );
line_edit_layout->addWidget( label_1 );
@@ -140,18 +140,18 @@ KPercentMain::KPercentMain( QWidget *parent, const char *name ) :
main_layout->addStretch();
- QHBoxLayout *bottom_layout = new QHBoxLayout( main_layout, -1, "bottom_layout" );
+ TQHBoxLayout *bottom_layout = new TQHBoxLayout( main_layout, -1, "bottom_layout" );
- QVBoxLayout *current_state_layout = new QVBoxLayout ( bottom_layout, -1, "current_state_layout" );
+ TQVBoxLayout *current_state_layout = new TQVBoxLayout ( bottom_layout, -1, "current_state_layout" );
- QHBoxLayout *label_count_layout = new QHBoxLayout ( current_state_layout, -1, "label_count_layout" );
+ TQHBoxLayout *label_count_layout = new TQHBoxLayout ( current_state_layout, -1, "label_count_layout" );
label_count_layout->addWidget( label_count );
label_count_layout->addStretch();
current_state_layout->addSpacing( 10 );
current_state_layout->addWidget( progress_bar_count );
- QHBoxLayout *right_wrong_layout = new QHBoxLayout( current_state_layout, -1, "right_wrong_layout" );
+ TQHBoxLayout *right_wrong_layout = new TQHBoxLayout( current_state_layout, -1, "right_wrong_layout" );
right_wrong_layout->addWidget( label_right );
right_wrong_layout->addWidget( progress_bar_right_wrong );
@@ -159,7 +159,7 @@ KPercentMain::KPercentMain( QWidget *parent, const char *name ) :
bottom_layout->addSpacing( 40 );
- QVBoxLayout *button_layout = new QVBoxLayout ( bottom_layout, -1, "button_layout" );
+ TQVBoxLayout *button_layout = new TQVBoxLayout ( bottom_layout, -1, "button_layout" );
button_layout->addWidget( push_button_apply );
button_layout->addSpacing( 10 );
@@ -175,14 +175,14 @@ KPercentMain::KPercentMain( QWidget *parent, const char *name ) :
///////////
// ToolTips
- QToolTip::add( progress_bar_count, i18n( "Number of managed exercises" ) );
- QToolTip::add( progress_bar_right_wrong, i18n( "Relation of right to wrong inputs" ) );
- QToolTip::add( push_button_apply, i18n( "Check your answer" ) );
- QToolTip::add( push_button_cancel, i18n( "Back to the main window" ) );
+ TQToolTip::add( progress_bar_count, i18n( "Number of managed exercises" ) );
+ TQToolTip::add( progress_bar_right_wrong, i18n( "Relation of right to wrong inputs" ) );
+ TQToolTip::add( push_button_apply, i18n( "Check your answer" ) );
+ TQToolTip::add( push_button_cancel, i18n( "Back to the main window" ) );
// signals and slots connections
- connect( push_button_apply, SIGNAL( clicked() ), this, SLOT( slotApplyInput() ) );
- connect( push_button_cancel, SIGNAL( clicked() ), this, SLOT( accept() ) );
+ connect( push_button_apply, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotApplyInput() ) );
+ connect( push_button_cancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
// build up the answer window
answer = new KAnswer( this );
@@ -202,12 +202,12 @@ void KPercentMain::newTask()
line_edit_percentvalue->setFocusPolicy( NoFocus );
// set the number of managed tasks into a label
- label_count->setText( QString( i18n("You got %1 of %2 exercises.").arg(count).arg(number) ) ); // update Label for the Progress
+ label_count->setText( TQString( i18n("You got %1 of %2 exercises.").arg(count).arg(number) ) ); // update Label for the Progress
// progress_bar_count->setProgress( count*100 ); // updating Progrssbar
startTimer( 10 );
// set string which task is just workin on (Task x of y)
- QString taskNumber( i18n( "Exercise no. %1:" ).arg(count+1) );
+ TQString taskNumber( i18n( "Exercise no. %1:" ).arg(count+1) );
label_number->setText( taskNumber );
// label_number->adjustSize();
@@ -313,9 +313,9 @@ void KPercentMain::slotApplyInput()
/** inserts the numbers of a new task in the line_edit_layouts */
void KPercentMain::showNumbers()
{
- line_edit_percentage->setText( QString::number( percentage[ count ] ) );
- line_edit_basevalue->setText( QString::number( basevalue[ count ] ) );
- line_edit_percentvalue->setText( QString::number( percentvalue[ count ] ) );
+ line_edit_percentage->setText( TQString::number( percentage[ count ] ) );
+ line_edit_basevalue->setText( TQString::number( basevalue[ count ] ) );
+ line_edit_percentvalue->setText( TQString::number( percentvalue[ count ] ) );
}
/** called, if number tasks are managed */
@@ -444,7 +444,7 @@ void KPercentMain::initExercise()
newTask(); /** prepare the window for the first task */
}
-void KPercentMain::timerEvent( QTimerEvent *event )
+void KPercentMain::timerEvent( TQTimerEvent *event )
{
if( progress_bar_count->progress()<count*100 )
{
@@ -457,7 +457,7 @@ void KPercentMain::timerEvent( QTimerEvent *event )
if( progress_bar_count->progress()==number*100 ) finished();
}
-void KPercentMain::keyPressEvent( QKeyEvent * e )
+void KPercentMain::keyPressEvent( TQKeyEvent * e )
{
if ( e->key() == Key_Enter ) slotApplyInput();
else
diff --git a/kpercentage/kpercentage/kpercentmain.h b/kpercentage/kpercentage/kpercentmain.h
index 6e6aea64..845e8289 100644
--- a/kpercentage/kpercentage/kpercentmain.h
+++ b/kpercentage/kpercentage/kpercentmain.h
@@ -45,7 +45,7 @@ class KPercentMain : public KDialog
{
Q_OBJECT
public:
- KPercentMain( QWidget *parent, const char *name = 0 );
+ KPercentMain( TQWidget *parent, const char *name = 0 );
/** checks, if the task is solved right */
bool validateTask();
/** prepares the dialog for a new task */
@@ -88,30 +88,30 @@ class KPercentMain : public KDialog
/** percentvalues to be calculated with */
int percentvalue[ 10 ];
- QLabel *label_1;
- QLabel *label_2;
- QLabel *label_number;
- QLabel *label_count;
+ TQLabel *label_1;
+ TQLabel *label_2;
+ TQLabel *label_number;
+ TQLabel *label_count;
/** editline for the actual task */
- QLineEdit *line_edit_input;
+ TQLineEdit *line_edit_input;
/** editline for the percentage */
- QLineEdit *line_edit_percentage;
+ TQLineEdit *line_edit_percentage;
/** editline for the basevalue */
- QLineEdit *line_edit_basevalue;
+ TQLineEdit *line_edit_basevalue;
/** editline for the percentvalue */
- QLineEdit *line_edit_percentvalue;
+ TQLineEdit *line_edit_percentvalue;
/** showing the effort of the user */
- QProgressBar *progress_bar_count;
+ TQProgressBar *progress_bar_count;
/** button to apply the current input */
- QPushButton *push_button_apply;
+ TQPushButton *push_button_apply;
/** button to cancel the exercise series */
- QPushButton *push_button_cancel;
+ TQPushButton *push_button_cancel;
- QProgressBar *progress_bar_right_wrong;
- QLabel *label_right;
- QLabel *label_wrong;
+ TQProgressBar *progress_bar_right_wrong;
+ TQLabel *label_right;
+ TQLabel *label_wrong;
/** the answer window */
KAnswer *answer;
@@ -119,7 +119,7 @@ class KPercentMain : public KDialog
int selected_level;
private:
- void keyPressEvent( QKeyEvent * e );
+ void keyPressEvent( TQKeyEvent * e );
public slots: // Public slots
@@ -131,7 +131,7 @@ class KPercentMain : public KDialog
*/
void slotApplyInput();
/** reimplemented: growing the progressbar step by step */
- void timerEvent( QTimerEvent * );
+ void timerEvent( TQTimerEvent * );
};
#endif
diff --git a/kpercentage/kpercentage/ksplashscreen.cpp b/kpercentage/kpercentage/ksplashscreen.cpp
index bd0adea1..4eb43959 100644
--- a/kpercentage/kpercentage/ksplashscreen.cpp
+++ b/kpercentage/kpercentage/ksplashscreen.cpp
@@ -20,8 +20,8 @@
***************************************************************************/
// Qt includes
-#include <qcanvas.h>
-#include <qtimer.h>
+#include <tqcanvas.h>
+#include <tqtimer.h>
// KDE includes
#include <kstandarddirs.h>
@@ -32,30 +32,30 @@
/* creates the splash window without titlebar and border */
KSplashScreen::KSplashScreen( KPercentage *percentage, const char *name ) :
- KDialog( 0L, name, FALSE, QWidget::WStyle_Customize | QWidget::WStyle_NoBorder )
+ KDialog( 0L, name, FALSE, TQWidget::WStyle_Customize | TQWidget::WStyle_NoBorder )
{
percentage_window = percentage;
resize( 380, 300 );
/* load the background pixmap */
- QPixmap bgp( locate( "data", "kpercentage/pics/splash.png" ) );
+ TQPixmap bgp( locate( "data", "kpercentage/pics/splash.png" ) );
/* wait some time and start the main window */
- QCanvas *canvas = new QCanvas( this );
+ TQCanvas *canvas = new TQCanvas( this );
canvas->resize( 400, 300 );
/* set the background pixmap */
canvas->setBackgroundPixmap( bgp );
//remove version number from splash annma 14/02/2005
- //QCanvasText *t = new QCanvasText( KPERCENTAGE_VERSION, canvas );
+ //TQCanvasText *t = new TQCanvasText( KPERCENTAGE_VERSION, canvas );
//t->move( 330.0, 260.0 );
//t->show();
canvas->setAllChanged();
canvas->update();
- QCanvasView *view = new QCanvasView( canvas, this, "", QCanvasView::WStyle_Customize | QCanvasView::WStyle_NoBorder );
+ TQCanvasView *view = new TQCanvasView( canvas, this, "", TQCanvasView::WStyle_Customize | TQCanvasView::WStyle_NoBorder );
view->resize( 380, 300 );
- view->setVScrollBarMode( QCanvasView::AlwaysOff );
- view->setHScrollBarMode( QCanvasView::AlwaysOff );
- view->setFrameStyle( QCanvasView::NoFrame );
+ view->setVScrollBarMode( TQCanvasView::AlwaysOff );
+ view->setHScrollBarMode( TQCanvasView::AlwaysOff );
+ view->setFrameStyle( TQCanvasView::NoFrame );
view->show();
- QTimer::singleShot( 2000, this, SLOT( showPercentage() ) );
+ TQTimer::singleShot( 2000, this, TQT_SLOT( showPercentage() ) );
}
/* show the main window and close the splah window */