summaryrefslogtreecommitdiffstats
path: root/kbarcode/sqltables.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:05 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:05 -0600
commit64e14d1bc38e39001b5ec84a6e13198ef3c67315 (patch)
tree437361622d1cb449120e4eb6ca9265f3e838db8c /kbarcode/sqltables.cpp
parentfb010b103703b3229758ce9cf1341979cc450204 (diff)
downloadkbarcode-64e14d1bc38e39001b5ec84a6e13198ef3c67315.tar.gz
kbarcode-64e14d1bc38e39001b5ec84a6e13198ef3c67315.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kbarcode/sqltables.cpp')
-rw-r--r--kbarcode/sqltables.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbarcode/sqltables.cpp b/kbarcode/sqltables.cpp
index fc9db01..a9d1a66 100644
--- a/kbarcode/sqltables.cpp
+++ b/kbarcode/sqltables.cpp
@@ -23,7 +23,7 @@
#include <tqfile.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqmap.h>
#include <tqprogressdialog.h>
#include <tqsqldatabase.h>
@@ -383,7 +383,7 @@ void SqlTables::updateTables()
// check for field0 - field9 (1.4.0)
TQStringList fields;
for( unsigned int i = 0; i < 10; i++ )
- fields.append( TQString("field%1").tqarg( i ) );
+ fields.append( TQString("field%1").arg( i ) );
TQSqlQuery query("SHOW FIELDS FROM " TABLE_BASIC );
while ( query.next() )
@@ -511,15 +511,15 @@ const TQString SqlTables::getBarcodeMaxLength( const TQString & name )
SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name )
: TQWidget( parent, name )
{
- TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
TQGroupBox* groupDatabase = new TQGroupBox( this );
groupDatabase->setTitle( i18n( "Database Settings" ) );
groupDatabase->setColumnLayout(0, Qt::Vertical );
- groupDatabase->tqlayout()->setSpacing( 6 );
- groupDatabase->tqlayout()->setMargin( 11 );
- TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->tqlayout() );
- groupDatabaseLayout->tqsetAlignment( TQt::AlignTop );
+ groupDatabase->layout()->setSpacing( 6 );
+ groupDatabase->layout()->setMargin( 11 );
+ TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->layout() );
+ groupDatabaseLayout->setAlignment( TQt::AlignTop );
TQGridLayout* grid = new TQGridLayout( 2, 2 );
@@ -576,7 +576,7 @@ SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name )
if( showlabel )
groupDatabaseLayout->addWidget( new TQLabel( i18n("<b>You have to test your database settings before you can procede.</b>"), groupDatabase ) );
- tqlayout->add( groupDatabase );
+ layout->add( groupDatabase );
connect( buttonTest, TQT_SIGNAL( clicked() ), this, TQT_SLOT( testSettings() ) );