Rename old tq methods that no longer need a unique name

(cherry picked from commit df8b5d68eb)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent df7b57487f
commit 16d04a9d15

@ -345,7 +345,7 @@ void ConfigDialog::accept()
void ConfigDialog::updateDatePreview() void ConfigDialog::updateDatePreview()
{ {
labelDate->setText( i18n("Preview: ") + TQDateTime::tqcurrentDateTime().toString( date->text() ) ); labelDate->setText( i18n("Preview: ") + TQDateTime::currentDateTime().toString( date->text() ) );
} }
#include "configdialog.moc" #include "configdialog.moc"

@ -151,7 +151,7 @@ void ConfWizard::setupPage3()
TextLabel1_2 = new TQLabel( page_3, "TextLabel1_2" ); 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->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 ); pageLayout_3->addWidget( TextLabel1_2 );
Layout5_2 = new TQVBoxLayout( 0, 0, 6, "Layout5_2"); Layout5_2 = new TQVBoxLayout( 0, 0, 6, "Layout5_2");

@ -199,7 +199,7 @@ void CSVImportDlg::createPage2()
groupFixed->tqlayout()->setSpacing( 6 ); groupFixed->tqlayout()->setSpacing( 6 );
groupFixed->tqlayout()->setMargin( 11 ); groupFixed->tqlayout()->setMargin( 11 );
TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->tqlayout() ); TQHBoxLayout* groupFixedLayout = new TQHBoxLayout( groupFixed->tqlayout() );
groupFixedLayout->tqsetAlignment( TQt::AlignTop ); groupFixedLayout->setAlignment( TQt::AlignTop );
listWidth = new KListBox( groupFixed ); listWidth = new KListBox( groupFixed );

@ -101,7 +101,7 @@ void DSTextEdit::fixParagraphs()
this->setCursorPosition( 0, index ); this->setCursorPosition( 0, index );
this->setCurrentFont( tFormattings.font ); this->setCurrentFont( tFormattings.font );
this->setColor( tFormattings.color ); this->setColor( tFormattings.color );
this->tqsetAlignment( tFormattings.tqalignment ); this->setAlignment( tFormattings.tqalignment );
this->setSelection( paraFrom, indexFrom, paraTo, indexTo ); this->setSelection( paraFrom, indexFrom, paraTo, indexTo );

@ -88,7 +88,7 @@ bool DocumentItemDrag::canDecode( TQMimeSource* e )
bool DocumentItemDrag::decode( TQMimeSource* mime, MyCanvasView* cv, TokenProvider* token, KCommandHistory* history ) 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" ); TQDomDocument doc( "KBarcodeClipboard" );
if( !doc.setContent( data ) ) if( !doc.setContent( data ) )
return false; return false;

@ -241,25 +241,25 @@ void MultiLineEditor::formatColor()
void MultiLineEditor::setAlignLeft( bool yes ) void MultiLineEditor::setAlignLeft( bool yes )
{ {
if ( yes ) if ( yes )
editor->tqsetAlignment( AlignLeft ); editor->setAlignment( AlignLeft );
} }
void MultiLineEditor::setAlignRight( bool yes ) void MultiLineEditor::setAlignRight( bool yes )
{ {
if ( yes ) if ( yes )
editor->tqsetAlignment( AlignRight ); editor->setAlignment( AlignRight );
} }
void MultiLineEditor::setAlignCenter( bool yes ) void MultiLineEditor::setAlignCenter( bool yes )
{ {
if ( yes ) if ( yes )
editor->tqsetAlignment( AlignCenter ); editor->setAlignment( AlignCenter );
} }
void MultiLineEditor::setAlignJustify( bool yes ) void MultiLineEditor::setAlignJustify( bool yes )
{ {
if ( yes ) if ( yes )
editor->tqsetAlignment( AlignJustify ); editor->setAlignment( AlignJustify );
} }
void MultiLineEditor::insertNewField() void MultiLineEditor::insertNewField()

@ -58,7 +58,7 @@ NewLabel::NewLabel( TQWidget* parent, const char* name, bool change, WFlags fl
group1->tqlayout()->setSpacing( 6 ); group1->tqlayout()->setSpacing( 6 );
group1->tqlayout()->setMargin( 11 ); group1->tqlayout()->setMargin( 11 );
TQGridLayout* group1Layout = new TQGridLayout( group1->tqlayout() ); TQGridLayout* group1Layout = new TQGridLayout( group1->tqlayout() );
group1Layout->tqsetAlignment( TQt::AlignTop ); group1Layout->setAlignment( TQt::AlignTop );
TextLabel2 = new TQLabel( group1, "TextLabel2" ); TextLabel2 = new TQLabel( group1, "TextLabel2" );
TextLabel2->setText( i18n( "Producer:" ) ); TextLabel2->setText( i18n( "Producer:" ) );

@ -519,7 +519,7 @@ SqlWidget::SqlWidget( bool showlabel, TQWidget* parent, const char* name )
groupDatabase->tqlayout()->setSpacing( 6 ); groupDatabase->tqlayout()->setSpacing( 6 );
groupDatabase->tqlayout()->setMargin( 11 ); groupDatabase->tqlayout()->setMargin( 11 );
TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->tqlayout() ); TQVBoxLayout* groupDatabaseLayout = new TQVBoxLayout( groupDatabase->tqlayout() );
groupDatabaseLayout->tqsetAlignment( TQt::AlignTop ); groupDatabaseLayout->setAlignment( TQt::AlignTop );
TQGridLayout* grid = new TQGridLayout( 2, 2 ); TQGridLayout* grid = new TQGridLayout( 2, 2 );

@ -619,7 +619,7 @@ if (etext.contains("[barcode_no_customer]") ){
while( query.next() ) temp = TQString (query.value( 0 ).toString()); while( query.next() ) temp = TQString (query.value( 0 ).toString());
etext.replace("[barcode_no_customer]" , temp ); 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()); if (etext.contains("[time]") ) etext.replace( "[time]" ,TQTime::currentTime().toString());
return etext;*/ return etext;*/

@ -516,7 +516,7 @@ TQString TokenProvider::process( const TQString & t )
ret = label_name; ret = label_name;
if( t == TOK_DATE ) if( t == TOK_DATE )
ret = TQDateTime::tqcurrentDateTime().toString( KBarcodeSettings::getDateFormat() ); ret = TQDateTime::currentDateTime().toString( KBarcodeSettings::getDateFormat() );
if( date_reg_exp.search(t,0) != -1 ) if( date_reg_exp.search(t,0) != -1 )
{ {

Loading…
Cancel
Save