summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:09:19 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:09:19 -0600
commitdf8b5d68eb9b9da7d1562a3f1819bdd806bdbc33 (patch)
tree1cca1206c05e86218226b4dc9be04641723b1438
parentabb955bc2a696c0283c1efd82c4edf4d06f314a7 (diff)
downloadkbarcode-df8b5d68.tar.gz
kbarcode-df8b5d68.zip
Rename old tq methods that no longer need a unique name
-rw-r--r--kbarcode/configdialog.cpp2
-rw-r--r--kbarcode/confwizard.cpp2
-rw-r--r--kbarcode/csvimportdlg.cpp2
-rw-r--r--kbarcode/dstextedit.cpp2
-rw-r--r--kbarcode/mimesources.cpp2
-rw-r--r--kbarcode/multilineeditdlg.cpp8
-rw-r--r--kbarcode/newlabel.cpp2
-rw-r--r--kbarcode/sqltables.cpp2
-rw-r--r--kbarcode/tec.cpp2
-rw-r--r--kbarcode/tokenprovider.cpp2
10 files changed, 13 insertions, 13 deletions
diff --git a/kbarcode/configdialog.cpp b/kbarcode/configdialog.cpp
index 139c2ec..7b83e57 100644
--- a/kbarcode/configdialog.cpp
+++ b/kbarcode/configdialog.cpp
@@ -345,7 +345,7 @@ void ConfigDialog::accept()
void ConfigDialog::updateDatePreview()
{
- labelDate->setText( i18n("Preview: ") + TQDateTime::tqcurrentDateTime().toString( date->text() ) );
+ labelDate->setText( i18n("Preview: ") + TQDateTime::currentDateTime().toString( date->text() ) );
}
#include "configdialog.moc"
diff --git a/kbarcode/confwizard.cpp b/kbarcode/confwizard.cpp
index 76e31bd..74c8d37 100644
--- a/kbarcode/confwizard.cpp
+++ b/kbarcode/confwizard.cpp
@@ -151,7 +151,7 @@ void ConfWizard::setupPage3()
TextLabel1_2 = new TQLabel( page_3, "TextLabel1_2" );
TextLabel1_2->setText( i18n( "KBarcode can create the required SQL tables for you.<br>KBarcode will add also some Label Definitions to the tables.<br>After that you can fill the tables with some example data." ) );
- TextLabel1_2->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
+ TextLabel1_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
pageLayout_3->addWidget( TextLabel1_2 );
Layout5_2 = new TQVBoxLayout( 0, 0, 6, "Layout5_2");
diff --git a/kbarcode/csvimportdlg.cpp b/kbarcode/csvimportdlg.cpp
index 875549d..e472d01 100644
--- a/kbarcode/csvimportdlg.cpp
+++ b/kbarcode/csvimportdlg.cpp
@@ -199,7 +199,7 @@ void CSVImportDlg::createPage2()
groupFixed->tqlayout()->setSpacing( 6 );
groupFixed->tqlayout()->setMargin( 11 );
TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->tqlayout() );
- groupFixedLayout->tqsetAlignment( TQt::AlignTop );
+ groupFixedLayout->setAlignment( TQt::AlignTop );
listWidth = new KListBox( groupFixed );
diff --git a/kbarcode/dstextedit.cpp b/kbarcode/dstextedit.cpp
index 8965756..15eac64 100644
--- a/kbarcode/dstextedit.cpp
+++ b/kbarcode/dstextedit.cpp
@@ -101,7 +101,7 @@ void DSTextEdit::fixParagraphs()
this->setCursorPosition( 0, index );
this->setCurrentFont( tFormattings.font );
this->setColor( tFormattings.color );
- this->tqsetAlignment( tFormattings.tqalignment );
+ this->setAlignment( tFormattings.tqalignment );
this->setSelection( paraFrom, indexFrom, paraTo, indexTo );
diff --git a/kbarcode/mimesources.cpp b/kbarcode/mimesources.cpp
index f3dce8d..23278bb 100644
--- a/kbarcode/mimesources.cpp
+++ b/kbarcode/mimesources.cpp
@@ -88,7 +88,7 @@ bool DocumentItemDrag::canDecode( TQMimeSource* e )
bool DocumentItemDrag::decode( TQMimeSource* mime, MyCanvasView* cv, TokenProvider* token, KCommandHistory* history )
{
- TQByteArray data = mime->tqencodedData( DocumentItemDrag::mimeType() );
+ TQByteArray data = mime->encodedData( DocumentItemDrag::mimeType() );
TQDomDocument doc( "KBarcodeClipboard" );
if( !doc.setContent( data ) )
return false;
diff --git a/kbarcode/multilineeditdlg.cpp b/kbarcode/multilineeditdlg.cpp
index 582536e..9e8dac8 100644
--- a/kbarcode/multilineeditdlg.cpp
+++ b/kbarcode/multilineeditdlg.cpp
@@ -241,25 +241,25 @@ void MultiLineEditor::formatColor()
void MultiLineEditor::setAlignLeft( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignLeft );
+ editor->setAlignment( AlignLeft );
}
void MultiLineEditor::setAlignRight( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignRight );
+ editor->setAlignment( AlignRight );
}
void MultiLineEditor::setAlignCenter( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignCenter );
+ editor->setAlignment( AlignCenter );
}
void MultiLineEditor::setAlignJustify( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignJustify );
+ editor->setAlignment( AlignJustify );
}
void MultiLineEditor::insertNewField()
diff --git a/kbarcode/newlabel.cpp b/kbarcode/newlabel.cpp
index 9d636ce..d97dd47 100644
--- a/kbarcode/newlabel.cpp
+++ b/kbarcode/newlabel.cpp
@@ -58,7 +58,7 @@ NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl
group1->tqlayout()->setSpacing( 6 );
group1->tqlayout()->setMargin( 11 );
TQGridLayout* group1Layout = new TQGridLayout( group1->tqlayout() );
- group1Layout->tqsetAlignment( TQt::AlignTop );
+ group1Layout->setAlignment( TQt::AlignTop );
TextLabel2 = new TQLabel( group1, "TextLabel2" );
TextLabel2->setText( i18n( "Producer:" ) );
diff --git a/kbarcode/sqltables.cpp b/kbarcode/sqltables.cpp
index fc9db01..a9b6767 100644
--- a/kbarcode/sqltables.cpp
+++ b/kbarcode/sqltables.cpp
@@ -519,7 +519,7 @@ SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name )
groupDatabase->tqlayout()->setSpacing( 6 );
groupDatabase->tqlayout()->setMargin( 11 );
TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->tqlayout() );
- groupDatabaseLayout->tqsetAlignment( TQt::AlignTop );
+ groupDatabaseLayout->setAlignment( TQt::AlignTop );
TQGridLayout* grid = new TQGridLayout( 2, 2 );
diff --git a/kbarcode/tec.cpp b/kbarcode/tec.cpp
index f0b6ba2..b217f4c 100644
--- a/kbarcode/tec.cpp
+++ b/kbarcode/tec.cpp
@@ -619,7 +619,7 @@ if (etext.contains("[barcode_no_customer]") ){
while( query.next() ) temp = TQString (query.value( 0 ).toString());
etext.replace("[barcode_no_customer]" , temp );
}
-if (etext.contains("[date]") ) etext.replace( "[date]" ,TQDateTime::tqcurrentDateTime().toString( KBarcodeSettings::getDateFormat() ));
+if (etext.contains("[date]") ) etext.replace( "[date]" ,TQDateTime::currentDateTime().toString( KBarcodeSettings::getDateFormat() ));
if (etext.contains("[time]") ) etext.replace( "[time]" ,TQTime::currentTime().toString());
return etext;*/
diff --git a/kbarcode/tokenprovider.cpp b/kbarcode/tokenprovider.cpp
index ca3cc02..a66d09b 100644
--- a/kbarcode/tokenprovider.cpp
+++ b/kbarcode/tokenprovider.cpp
@@ -516,7 +516,7 @@ TQString TokenProvider::process( const TQString & t )
ret = label_name;
if( t == TOK_DATE )
- ret = TQDateTime::tqcurrentDateTime().toString( KBarcodeSettings::getDateFormat() );
+ ret = TQDateTime::currentDateTime().toString( KBarcodeSettings::getDateFormat() );
if( date_reg_exp.search(t,0) != -1 )
{