summaryrefslogtreecommitdiffstats
path: root/kbruch/src/exercisefactorize.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
commit6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch)
treecc90a09df2d1fd6d956cc084529a62d354316ad3 /kbruch/src/exercisefactorize.cpp
parent174fd5e23c68598774706ea9b571d3d178e36b81 (diff)
downloadtdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz
tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kbruch/src/exercisefactorize.cpp')
-rw-r--r--kbruch/src/exercisefactorize.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/kbruch/src/exercisefactorize.cpp b/kbruch/src/exercisefactorize.cpp
index aa12a766..d9b5f9d3 100644
--- a/kbruch/src/exercisefactorize.cpp
+++ b/kbruch/src/exercisefactorize.cpp
@@ -26,7 +26,7 @@
/* these includes are needed for TQt support */
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqtooltip.h>
@@ -64,40 +64,40 @@ ExerciseFactorize::ExerciseFactorize(TQWidget * parent, const char * name):
Form1Layout = new TQVBoxLayout( this, 11, 6, "Form1Layout");
- tqlayout9 = new TQVBoxLayout( 0, 0, 6, "tqlayout9");
+ layout9 = new TQVBoxLayout( 0, 0, 6, "layout9");
// The following method fix the problem in
// bug #116831, reverse order in RTL desktops.
// Amit Ramon amit.ramon@kdemail.net
- tqlayout4 = createFactorsLayout();
- tqlayout9->addLayout(tqlayout4);
+ layout4 = createFactorsLayout();
+ layout9->addLayout(layout4);
spacer2 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
- tqlayout9->addItem( spacer2 );
+ layout9->addItem( spacer2 );
- tqlayout2 = new TQVBoxLayout( 0, 0, 6, "tqlayout2");
+ layout2 = new TQVBoxLayout( 0, 0, 6, "layout2");
// The following method fix the problem in
// bug #116831, reverse order in RTL desktops.
// Amit Ramon amit.ramon@kdemail.net
- tqlayout1 = createButtonsLayout();
- tqlayout2->addLayout(tqlayout1);
+ layout1 = createButtonsLayout();
+ layout2->addLayout(layout1);
m_removeLastFactorButton = new TQPushButton( this, "m_removeLastFactorButton" );
- tqlayout2->addWidget( m_removeLastFactorButton );
- tqlayout9->addLayout( tqlayout2 );
+ layout2->addWidget( m_removeLastFactorButton );
+ layout9->addLayout( layout2 );
spacer4 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
- tqlayout9->addItem( spacer4 );
+ layout9->addItem( spacer4 );
- tqlayout7 = new TQHBoxLayout( 0, 0, 6, "tqlayout7");
+ layout7 = new TQHBoxLayout( 0, 0, 6, "layout7");
spacer3 = new TQSpacerItem( 361, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- tqlayout7->addItem( spacer3 );
+ layout7->addItem( spacer3 );
m_checkButton = new TQPushButton( this, "m_checkButton" );
- tqlayout7->addWidget( m_checkButton );
- tqlayout9->addLayout( tqlayout7 );
- Form1Layout->addLayout( tqlayout9 );
+ layout7->addWidget( m_checkButton );
+ layout9->addLayout( layout7 );
+ Form1Layout->addLayout( layout9 );
// the current task
TQString tmp_str;
@@ -228,16 +228,16 @@ void ExerciseFactorize::update()
//
// The following method was added to fix
-// bug #116831 (reverse tqlayout in RTL desktops)
+// bug #116831 (reverse layout in RTL desktops)
// Amit Ramon amit.ramon@kdemail.net
//
-/** Create the tqlayout that hold the exercise widgets
+/** Create the layout that hold the exercise widgets
*/
TQHBoxLayout* ExerciseFactorize::createFactorsLayout()
{
// first create all widgets
- TQHBoxLayout* tqlayout = new TQHBoxLayout( 0, 0, 6, "tqlayout4");
+ TQHBoxLayout* layout = new TQHBoxLayout( 0, 0, 6, "layout4");
m_taskLabel = new TQLabel( this, "m_taskLabel" );
@@ -258,46 +258,46 @@ TQHBoxLayout* ExerciseFactorize::createFactorsLayout()
spacer1 = new TQSpacerItem( 25, 20, TQSizePolicy::Expanding,
TQSizePolicy::Minimum );
- // now add the widgets to the tqlayout.
+ // now add the widgets to the layout.
// if we are in a RTL desktop, add them
// in a reverse order
if (TQApplication::reverseLayout())
{
- tqlayout->addItem( spacer1 );
- tqlayout->addWidget( result_label );
- tqlayout->addWidget( m_factorsWidget );
- tqlayout->addWidget( m_factorsEnteredEdit );
- tqlayout->addWidget( m_equalSignLabel );
- tqlayout->addWidget( m_taskLabel );
+ layout->addItem( spacer1 );
+ layout->addWidget( result_label );
+ layout->addWidget( m_factorsWidget );
+ layout->addWidget( m_factorsEnteredEdit );
+ layout->addWidget( m_equalSignLabel );
+ layout->addWidget( m_taskLabel );
}
else
{
- tqlayout->addWidget( m_taskLabel );
- tqlayout->addWidget( m_equalSignLabel );
- tqlayout->addWidget( m_factorsEnteredEdit );
- tqlayout->addWidget( m_factorsWidget );
- tqlayout->addWidget( result_label );
- tqlayout->addItem( spacer1 );
+ layout->addWidget( m_taskLabel );
+ layout->addWidget( m_equalSignLabel );
+ layout->addWidget( m_factorsEnteredEdit );
+ layout->addWidget( m_factorsWidget );
+ layout->addWidget( result_label );
+ layout->addItem( spacer1 );
}
- return tqlayout;
+ return layout;
}
//
// The following method was added to fix
-// bug #116831 (reverse tqlayout in RTL desktops)
+// bug #116831 (reverse layout in RTL desktops)
// Amit Ramon amit.ramon@kdemail.net
//
-/** Create the tqlayout that hold the exercise widgets
+/** Create the layout that hold the exercise widgets
*/
TQGridLayout* ExerciseFactorize::createButtonsLayout()
{
const int _COLS = 4; // number of buttons in each row
const int _ROWS = 2; // number of rows
- TQGridLayout* tqlayout = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout1");
+ TQGridLayout* layout = new TQGridLayout( 0, 1, 1, 0, 6, "layout1");
// first row buttons
m_factor2Button = new TQPushButton( this, "m_factor2Button" );
@@ -348,12 +348,12 @@ TQGridLayout* ExerciseFactorize::createButtonsLayout()
for (int col = 0; col < _COLS; col++)
{
- tqlayout->addWidget(buttons[row][buttonIdx], row, col );
+ layout->addWidget(buttons[row][buttonIdx], row, col );
buttonIdx += step;
}
}
- return tqlayout;
+ return layout;
}