summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_database.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kspread/dialogs/kspread_dlg_database.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kspread/dialogs/kspread_dlg_database.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_database.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/kspread/dialogs/kspread_dlg_database.cc b/kspread/dialogs/kspread_dlg_database.cc
index 4c1a5bcf..7cf242a9 100644
--- a/kspread/dialogs/kspread_dlg_database.cc
+++ b/kspread/dialogs/kspread_dlg_database.cc
@@ -39,7 +39,7 @@
#include <tqframe.h>
#include <tqheader.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
@@ -48,7 +48,7 @@
#include <tqsqlfield.h>
#include <tqsqlquery.h>
#include <tqsqlrecord.h>
-#include <textedit.h>
+#include <tqtextedit.h>
#include <tqtooltip.h>
#include <tqvariant.h>
#include <tqwhatsthis.h>
@@ -139,16 +139,16 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame16Layout->addWidget( TextLabel5, 5, 0 );
Frame5Layout->addWidget( Frame16 );
- m_databaseStatus = new TQLabel( Frame5, "m_databaseStatus" );
- m_databaseStatus->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_databaseStatus->sizePolicy().hasHeightForWidth() ) );
- m_databaseStatus->setMaximumSize( TQSize( 32767, 30 ) );
- m_databaseStatus->setText( " " );
- Frame5Layout->addWidget( m_databaseStatus );
+ m_databasetqStatus = new TQLabel( Frame5, "m_databaseStatus" );
+ m_databasetqStatus->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_databasetqStatus->sizePolicy().hasHeightForWidth() ) );
+ m_databasetqStatus->setMaximumSize( TQSize( 32767, 30 ) );
+ m_databasetqStatus->setText( " " );
+ Frame5Layout->addWidget( m_databasetqStatus );
m_databaseLayout->addWidget( Frame5, 0, 1 );
TQFrame * Frame17 = new TQFrame( m_database, "Frame17" );
- Frame17->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17->sizePolicy().hasHeightForWidth() ) );
+ Frame17->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17->sizePolicy().hasHeightForWidth() ) );
Frame17->setMinimumSize( TQSize( 111, 0 ) );
Frame17->setFrameShape( TQFrame::NoFrame );
Frame17->setFrameShadow( TQFrame::Plain );
@@ -181,9 +181,9 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame5_2Layout->addLayout( Layout21, 0, 0 );
- m_sheetStatus = new TQLabel( Frame5_2, "m_tableStatus" );
- m_sheetStatus->setText( " " );
- Frame5_2Layout->addWidget( m_sheetStatus, 3, 0 );
+ m_sheettqStatus = new TQLabel( Frame5_2, "m_tableStatus" );
+ m_sheettqStatus->setText( " " );
+ Frame5_2Layout->addWidget( m_sheettqStatus, 3, 0 );
m_SelectSheetLabel = new TQLabel( Frame5_2, "m_SelectSheetLabel" );
m_SelectSheetLabel->setText( i18n( "Select tables:" ) );
@@ -198,7 +198,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_sheetLayout->addWidget( Frame5_2, 0, 1 );
TQFrame * Frame17_2 = new TQFrame( m_sheet, "Frame17_2" );
- Frame17_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_2->sizePolicy().hasHeightForWidth() ) );
+ Frame17_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_2->sizePolicy().hasHeightForWidth() ) );
Frame17_2->setMinimumSize( TQSize( 111, 0 ) );
Frame17_2->setFrameShape( TQFrame::NoFrame );
Frame17_2->setFrameShadow( TQFrame::Plain );
@@ -227,14 +227,14 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame5_2_2Layout->addWidget( m_columnView, 1, 0 );
- m_columnsStatus = new TQLabel( Frame5_2_2, "m_columnsStatus" );
- m_columnsStatus->setText( " " );
- Frame5_2_2Layout->addWidget( m_columnsStatus, 2, 0 );
+ m_columnstqStatus = new TQLabel( Frame5_2_2, "m_columnsStatus" );
+ m_columnstqStatus->setText( " " );
+ Frame5_2_2Layout->addWidget( m_columnstqStatus, 2, 0 );
m_columnsLayout->addWidget( Frame5_2_2, 0, 1 );
TQFrame * Frame17_3 = new TQFrame( m_columns, "Frame17_3" );
- Frame17_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_3->sizePolicy().hasHeightForWidth() ) );
+ Frame17_3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_3->sizePolicy().hasHeightForWidth() ) );
Frame17_3->setMinimumSize( TQSize( 111, 0 ) );
Frame17_3->setFrameShape( TQFrame::NoFrame );
Frame17_3->setFrameShadow( TQFrame::Plain );
@@ -353,7 +353,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_optionsLayout->addWidget( optionsFrame, 0, 1 );
TQFrame * Frame17_4 = new TQFrame( m_options, "Frame17_4" );
- Frame17_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_4->sizePolicy().hasHeightForWidth() ) );
+ Frame17_4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_4->sizePolicy().hasHeightForWidth() ) );
Frame17_4->setMinimumSize( TQSize( 111, 0 ) );
Frame17_4->setFrameShape( TQFrame::NoFrame );
Frame17_4->setFrameShadow( TQFrame::Plain );
@@ -402,7 +402,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_resultLayout->addWidget( Frame5_2_2_3, 0, 1 );
TQFrame * Frame17_5 = new TQFrame( m_result, "Frame17_5" );
- Frame17_5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_5->sizePolicy().hasHeightForWidth() ) );
+ Frame17_5->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_5->sizePolicy().hasHeightForWidth() ) );
Frame17_5->setMinimumSize( TQSize( 111, 0 ) );
Frame17_5->setFrameShape( TQFrame::NoFrame );
Frame17_5->setFrameShadow( TQFrame::Plain );
@@ -717,10 +717,10 @@ bool DatabaseDialog::databaseDoNext()
m_dbConnection->setPort( port );
}
- m_databaseStatus->setText( i18n("Connecting to database...") );
+ m_databasetqStatus->setText( i18n("Connecting to database...") );
if ( m_dbConnection->open() )
{
- m_databaseStatus->setText( i18n("Connected. Retrieving table information...") );
+ m_databasetqStatus->setText( i18n("Connected. Retrieving table information...") );
TQStringList sheetList( m_dbConnection->tables() );
if ( sheetList.isEmpty() )
@@ -741,7 +741,7 @@ bool DatabaseDialog::databaseDoNext()
}
m_sheetView->setEnabled( true );
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
}
else
{
@@ -759,7 +759,7 @@ bool DatabaseDialog::databaseDoNext()
errorMsg.append( error.databaseText() );
errorMsg.append( "\n" );
}
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
KMessageBox::error( this, errorMsg );
return false;
@@ -768,7 +768,7 @@ bool DatabaseDialog::databaseDoNext()
else
{
KMessageBox::error( this, i18n("Driver could not be loaded") );
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
return false;
}
setNextEnabled(m_sheet, true);
@@ -778,7 +778,7 @@ bool DatabaseDialog::databaseDoNext()
bool DatabaseDialog::sheetsDoNext()
{
- m_databaseStatus->setText( i18n("Retrieving meta data of tables...") );
+ m_databasetqStatus->setText( i18n("Retrieving meta data of tables...") );
TQStringList sheets;
for (TQListViewItem * item = (TQCheckListItem *) m_sheetView->firstChild(); item; item = item->nextSibling())