summaryrefslogtreecommitdiffstats
path: root/kpercentage
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kpercentage
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpercentage')
-rw-r--r--kpercentage/kpercentage/kanimation.h2
-rw-r--r--kpercentage/kpercentage/kanswer.cpp4
-rw-r--r--kpercentage/kpercentage/kpercentage.cpp62
-rw-r--r--kpercentage/kpercentage/kpercentmain.cpp76
4 files changed, 72 insertions, 72 deletions
diff --git a/kpercentage/kpercentage/kanimation.h b/kpercentage/kpercentage/kanimation.h
index e4231f2a..19bdfc02 100644
--- a/kpercentage/kpercentage/kanimation.h
+++ b/kpercentage/kpercentage/kanimation.h
@@ -7,7 +7,7 @@
class TQString;
/**
- * This class contains information about one frame.
+ * This class tqcontains information about one frame.
*/
class KFrame
{
diff --git a/kpercentage/kpercentage/kanswer.cpp b/kpercentage/kpercentage/kanswer.cpp
index d723629b..1854ee9c 100644
--- a/kpercentage/kpercentage/kanswer.cpp
+++ b/kpercentage/kpercentage/kanswer.cpp
@@ -68,7 +68,7 @@ KAnswer::KAnswer( TQWidget *parent ): KDialog( parent, "answer", TRUE )
canvas_view->setBackgroundPixmap( bgp );
///////
- // begin layouting
+ // begin tqlayouting
///////
mainLayout = new TQHBoxLayout( this );
mainLayout->setDirection(TQBoxLayout::LeftToRight);
@@ -103,7 +103,7 @@ KAnswer::KAnswer( TQWidget *parent ): KDialog( parent, "answer", TRUE )
rightLayout->addSpacing( 20 );
///////
- // end layouting
+ // end tqlayouting
///////
connect( ButtonOK, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
diff --git a/kpercentage/kpercentage/kpercentage.cpp b/kpercentage/kpercentage/kpercentage.cpp
index f51f8364..34faca2b 100644
--- a/kpercentage/kpercentage/kpercentage.cpp
+++ b/kpercentage/kpercentage/kpercentage.cpp
@@ -60,7 +60,7 @@ KPercentage::KPercentage( const char *name ) :
// prepare exercise window, that will use the fontsize above!
percent_main = new KPercentMain( this, "KPercentage" );
- // fixed geometry bacause of background pixmap
+ // fixed tqgeometry bacause of background pixmap
setFixedSize( TQSize( 548, 248 ) );
/** load and set background pixmap */
@@ -108,44 +108,44 @@ KPercentage::KPercentage( const char *name ) :
connect( button_close, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
////////
- // begin layouting
+ // begin tqlayouting
////////
- TQVBoxLayout *main_layout = new TQVBoxLayout( this, 20, 20, "main_layout" );
- main_layout->setResizeMode( TQLayout::FreeResize );
-
- 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 );
- top_layout->addStretch();
- top_layout->addWidget( label_level );
- top_layout->addWidget( combo_box_level );
-
- main_layout->addSpacing( 40 );
- main_layout->addStretch();
-
- TQHBoxLayout *bottom_layout = new TQHBoxLayout( main_layout, -1, "bottom_layout" );
- TQVBoxLayout *bLeftLayout = new TQVBoxLayout( bottom_layout );
+ TQVBoxLayout *main_tqlayout = new TQVBoxLayout( this, 20, 20, "main_tqlayout" );
+ main_tqlayout->setResizeMode( TQLayout::FreeResize );
+
+ TQHBoxLayout *top_tqlayout = new TQHBoxLayout( main_tqlayout, -1, "top_tqlayout" );
+ top_tqlayout->addWidget( label_number );
+ top_tqlayout->addWidget( spin_box_number );
+ top_tqlayout->addSpacing( 20 );
+ top_tqlayout->addStretch();
+ top_tqlayout->addWidget( label_level );
+ top_tqlayout->addWidget( combo_box_level );
+
+ main_tqlayout->addSpacing( 40 );
+ main_tqlayout->addStretch();
+
+ TQHBoxLayout *bottom_tqlayout = new TQHBoxLayout( main_tqlayout, -1, "bottom_tqlayout" );
+ TQVBoxLayout *bLeftLayout = new TQVBoxLayout( bottom_tqlayout );
bLeftLayout->addWidget( label_choose );
bLeftLayout->addSpacing( 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 );
- grid_layout->addWidget( button_random, 1, 1 );
+ TQGridLayout *grid_tqlayout = new TQGridLayout( bLeftLayout, 2, 2, 10 );
+ grid_tqlayout->addWidget( button_basevalue, 0, 0 );
+ grid_tqlayout->addWidget( button_percentvalue, 1, 0 );
+ grid_tqlayout->addWidget( button_percentage, 0, 1 );
+ grid_tqlayout->addWidget( button_random, 1, 1 );
- bottom_layout->addStretch();
+ bottom_tqlayout->addStretch();
- TQVBoxLayout *b_right_layout = new TQVBoxLayout( bottom_layout );
- b_right_layout->addStretch();
- b_right_layout->addWidget( button_help );
- b_right_layout->addSpacing( 10 );
- b_right_layout->addWidget( button_close );
+ TQVBoxLayout *b_right_tqlayout = new TQVBoxLayout( bottom_tqlayout );
+ b_right_tqlayout->addStretch();
+ b_right_tqlayout->addWidget( button_help );
+ b_right_tqlayout->addSpacing( 10 );
+ b_right_tqlayout->addWidget( button_close );
- main_layout->addStretch();
+ main_tqlayout->addStretch();
////////
- // end layouting
+ // end tqlayouting
////////
////////
diff --git a/kpercentage/kpercentage/kpercentmain.cpp b/kpercentage/kpercentage/kpercentmain.cpp
index 67f4a687..93ed2cbc 100644
--- a/kpercentage/kpercentage/kpercentmain.cpp
+++ b/kpercentage/kpercentage/kpercentmain.cpp
@@ -55,15 +55,15 @@ KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
KIntValidator *validLine = new KIntValidator( this );
line_edit_percentage = new TQLineEdit( this, "line_edit_percentage" );
- line_edit_percentage->setAlignment( int( TQLineEdit::AlignHCenter ) );
+ line_edit_percentage->tqsetAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_percentage->setValidator( validLine );
line_edit_basevalue = new TQLineEdit( this, "line_edit_basevalue" );
- line_edit_basevalue->setAlignment( int( TQLineEdit::AlignHCenter ) );
+ line_edit_basevalue->tqsetAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_basevalue->setValidator( validLine );
line_edit_percentvalue = new TQLineEdit( this, "line_edit_percentvalue" );
- line_edit_percentvalue->setAlignment( int( TQLineEdit::AlignHCenter ) );
+ line_edit_percentvalue->tqsetAlignment( int( TQLineEdit::AlignHCenter ) );
line_edit_percentvalue->setValidator( validLine );
progress_bar_count = new TQProgressBar( this, "progress_bar_count" );
@@ -119,51 +119,51 @@ KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
label_count->setBackgroundOrigin( TQDialog::ParentOrigin );
//////
- // begin layouting
+ // begin tqlayouting
//////
- TQVBoxLayout *main_layout = new TQVBoxLayout ( this, 0, -1, "main_layout" );
- main_layout->setMargin( 20 );
- main_layout->setSpacing( 10 );
+ TQVBoxLayout *main_tqlayout = new TQVBoxLayout ( this, 0, -1, "main_tqlayout" );
+ main_tqlayout->setMargin( 20 );
+ main_tqlayout->setSpacing( 10 );
- TQHBoxLayout *label_number_layout = new TQHBoxLayout ( main_layout, -1, "label_number_layout" );
- label_number_layout->addWidget( label_number );
- label_number_layout->addStretch();
+ TQHBoxLayout *label_number_tqlayout = new TQHBoxLayout ( main_tqlayout, -1, "label_number_tqlayout" );
+ label_number_tqlayout->addWidget( label_number );
+ label_number_tqlayout->addStretch();
- TQHBoxLayout *line_edit_layout = new TQHBoxLayout ( main_layout, -1, "line_edit_layout" );
+ TQHBoxLayout *line_edit_tqlayout = new TQHBoxLayout ( main_tqlayout, -1, "line_edit_tqlayout" );
- line_edit_layout->addWidget( line_edit_percentage );
- line_edit_layout->addWidget( label_1 );
- line_edit_layout->addWidget( line_edit_basevalue );
- line_edit_layout->addWidget( label_2 );
- line_edit_layout->addWidget( line_edit_percentvalue );
- line_edit_layout->addStretch();
+ line_edit_tqlayout->addWidget( line_edit_percentage );
+ line_edit_tqlayout->addWidget( label_1 );
+ line_edit_tqlayout->addWidget( line_edit_basevalue );
+ line_edit_tqlayout->addWidget( label_2 );
+ line_edit_tqlayout->addWidget( line_edit_percentvalue );
+ line_edit_tqlayout->addStretch();
- main_layout->addStretch();
+ main_tqlayout->addStretch();
- TQHBoxLayout *bottom_layout = new TQHBoxLayout( main_layout, -1, "bottom_layout" );
+ TQHBoxLayout *bottom_tqlayout = new TQHBoxLayout( main_tqlayout, -1, "bottom_tqlayout" );
- TQVBoxLayout *current_state_layout = new TQVBoxLayout ( bottom_layout, -1, "current_state_layout" );
+ TQVBoxLayout *current_state_tqlayout = new TQVBoxLayout ( bottom_tqlayout, -1, "current_state_tqlayout" );
- TQHBoxLayout *label_count_layout = new TQHBoxLayout ( current_state_layout, -1, "label_count_layout" );
- label_count_layout->addWidget( label_count );
- label_count_layout->addStretch();
+ TQHBoxLayout *label_count_tqlayout = new TQHBoxLayout ( current_state_tqlayout, -1, "label_count_tqlayout" );
+ label_count_tqlayout->addWidget( label_count );
+ label_count_tqlayout->addStretch();
- current_state_layout->addSpacing( 10 );
- current_state_layout->addWidget( progress_bar_count );
+ current_state_tqlayout->addSpacing( 10 );
+ current_state_tqlayout->addWidget( progress_bar_count );
- TQHBoxLayout *right_wrong_layout = new TQHBoxLayout( current_state_layout, -1, "right_wrong_layout" );
+ TQHBoxLayout *right_wrong_tqlayout = new TQHBoxLayout( current_state_tqlayout, -1, "right_wrong_tqlayout" );
- right_wrong_layout->addWidget( label_right );
- right_wrong_layout->addWidget( progress_bar_right_wrong );
- right_wrong_layout->addWidget( label_wrong );
+ right_wrong_tqlayout->addWidget( label_right );
+ right_wrong_tqlayout->addWidget( progress_bar_right_wrong );
+ right_wrong_tqlayout->addWidget( label_wrong );
- bottom_layout->addSpacing( 40 );
+ bottom_tqlayout->addSpacing( 40 );
- TQVBoxLayout *button_layout = new TQVBoxLayout ( bottom_layout, -1, "button_layout" );
+ TQVBoxLayout *button_tqlayout = new TQVBoxLayout ( bottom_tqlayout, -1, "button_tqlayout" );
- button_layout->addWidget( push_button_apply );
- button_layout->addSpacing( 10 );
- button_layout->addWidget( push_button_cancel );
+ button_tqlayout->addWidget( push_button_apply );
+ button_tqlayout->addSpacing( 10 );
+ button_tqlayout->addWidget( push_button_cancel );
// END LAYOUT
// --------------------------------------------------------
@@ -227,7 +227,7 @@ void KPercentMain::newTask()
{
selection = selected_type; // or take the preselected one
}
- // set the right line_edit_layout for input
+ // set the right line_edit_tqlayout for input
switch ( selection )
{
case SEL_PERCENTAGE:
@@ -244,7 +244,7 @@ void KPercentMain::newTask()
showNumbers();
// delete this one
line_edit_input->clear();
- // make the line_edit_layout accessable
+ // make the line_edit_tqlayout accessable
line_edit_input->setFocusPolicy( StrongFocus );
// set the focus on it
line_edit_input->setFocus();
@@ -258,7 +258,7 @@ bool KPercentMain::validateTask()
return ( getPercentage() * getBasevalue() == 100 * getPercentvalue() );
}
-/** gets the numbers from the line_edit_layouts */
+/** gets the numbers from the line_edit_tqlayouts */
int KPercentMain::getPercentage()
{
return line_edit_percentage->text().toInt(); // check for valid input is omitted (slotApplyInput)
@@ -310,7 +310,7 @@ void KPercentMain::slotApplyInput()
}
}
-/** inserts the numbers of a new task in the line_edit_layouts */
+/** inserts the numbers of a new task in the line_edit_tqlayouts */
void KPercentMain::showNumbers()
{
line_edit_percentage->setText( TQString::number( percentage[ count ] ) );