summaryrefslogtreecommitdiffstats
path: root/kformula/formulastring.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kformula/formulastring.cc')
-rw-r--r--kformula/formulastring.cc50
1 files changed, 25 insertions, 25 deletions
diff --git a/kformula/formulastring.cc b/kformula/formulastring.cc
index b73603db..5d2c5b8f 100644
--- a/kformula/formulastring.cc
+++ b/kformula/formulastring.cc
@@ -17,13 +17,13 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qstringlist.h>
-#include <qtextedit.h>
-#include <qtooltip.h>
-#include <qvariant.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqstringlist.h>
+#include <tqtextedit.h>
+#include <tqtooltip.h>
+#include <tqvariant.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -35,35 +35,35 @@
#include "kformula_view.h"
-FormulaString::FormulaString( KFormulaPartView* parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl ), view( parent )
+FormulaString::FormulaString( KFormulaPartView* tqparent, const char* name, bool modal, WFlags fl )
+ : TQDialog( tqparent, name, modal, fl ), view( tqparent )
{
if ( !name )
setName( "FormulaString" );
resize( 511, 282 );
setCaption( i18n( "Formula String" ) );
setSizeGripEnabled( TRUE );
- QVBoxLayout* FormulaStringLayout = new QVBoxLayout( this, 11, 6, "FormulaStringLayout");
+ TQVBoxLayout* FormulaStringLayout = new TQVBoxLayout( this, 11, 6, "FormulaStringLayout");
- textWidget = new QTextEdit( this, "textWidget" );
+ textWidget = new TQTextEdit( this, "textWidget" );
FormulaStringLayout->addWidget( textWidget );
- QHBoxLayout* Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 0, 6, "Layout2");
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
Layout2->addItem( spacer );
- position = new QLabel( this, "position" );
+ position = new TQLabel( this, "position" );
position->setText( trUtf8( "1:1" ) );
Layout2->addWidget( position );
FormulaStringLayout->addLayout( Layout2 );
- QHBoxLayout* Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1");
+ TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1");
buttonHelp = new KPushButton( KStdGuiItem::help(), this, "buttonHelp" );
buttonHelp->setAccel( 4144 );
buttonHelp->setAutoDefault( TRUE );
Layout1->addWidget( buttonHelp );
- spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
Layout1->addItem( spacer );
buttonOk = new KPushButton( KStdGuiItem::ok(), this, "buttonOk" );
@@ -79,11 +79,11 @@ FormulaString::FormulaString( KFormulaPartView* parent, const char* name, bool m
FormulaStringLayout->addLayout( Layout1 );
// signals and slots connections
- connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
- connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
- connect( buttonHelp, SIGNAL(clicked() ), this, SLOT( helpButtonClicked() ) );
- connect( textWidget, SIGNAL( cursorPositionChanged( int, int ) ),
- this, SLOT( cursorPositionChanged( int, int ) ) );
+ connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
+ connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) );
+ connect( buttonHelp, TQT_SIGNAL(clicked() ), this, TQT_SLOT( helpButtonClicked() ) );
+ connect( textWidget, TQT_SIGNAL( cursorPositionChanged( int, int ) ),
+ this, TQT_SLOT( cursorPositionChanged( int, int ) ) );
}
/*
@@ -91,14 +91,14 @@ FormulaString::FormulaString( KFormulaPartView* parent, const char* name, bool m
*/
FormulaString::~FormulaString()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
void FormulaString::accept()
{
- QStringList errorList = view->readFormulaString( textWidget->text() );
+ TQStringList errorList = view->readFormulaString( textWidget->text() );
if ( errorList.count() == 0 ) {
- QDialog::accept();
+ TQDialog::accept();
}
else {
KMessageBox::sorry( this, errorList.join( "\n" ), i18n( "Parser Error" ) );
@@ -112,7 +112,7 @@ void FormulaString::helpButtonClicked()
void FormulaString::cursorPositionChanged( int para, int pos )
{
- position->setText( QString( "%1:%2" ).arg( para+1 ).arg( pos+1 ) );
+ position->setText( TQString( "%1:%2" ).tqarg( para+1 ).tqarg( pos+1 ) );
}
#include "formulastring.moc"