Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent 82f7d41a2e
commit 9976752701

@ -140,7 +140,7 @@ TQString BatchRenamer::processString( TQString text, TQString oldname, int i )
* *
* Krename will have problems with files * Krename will have problems with files
* which contain one of the following * which contain one of the following
* tqunicode characters: 60000, 60001, 60002 * unicode characters: 60000, 60001, 60002
* 60003, 60004, 60005, 60006. * 60003, 60004, 60005, 60006.
* *
* This is not a good solution, if you have a * This is not a good solution, if you have a

@ -48,12 +48,12 @@ void ConfDialog::setupTab1()
{ {
const TQString caption = i18n("Look and Feel"); const TQString caption = i18n("Look and Feel");
TQFrame* box = addPage( caption, caption, BarIcon("looknfeel") ); TQFrame* box = addPage( caption, caption, BarIcon("looknfeel") );
TQVBoxLayout* tqlayout = new TQVBoxLayout( box ); TQVBoxLayout* layout = new TQVBoxLayout( box );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQButtonGroup* group = new TQButtonGroup( box ); TQButtonGroup* group = new TQButtonGroup( box );
group->setColumnLayout(0, Qt::Vertical ); group->setColumnLayout(0, Qt::Vertical );
TQVBoxLayout* lgroup = new TQVBoxLayout( group->tqlayout() ); TQVBoxLayout* lgroup = new TQVBoxLayout( group->layout() );
optionWizard = new TQRadioButton( group ); optionWizard = new TQRadioButton( group );
optionWizard->setText( i18n("Use &wizard style GUI (beginners)") ); optionWizard->setText( i18n("Use &wizard style GUI (beginners)") );
@ -65,15 +65,15 @@ void ConfDialog::setupTab1()
lgroup->addWidget( optionTabs ); lgroup->addWidget( optionTabs );
lgroup->addItem( spacer ); lgroup->addItem( spacer );
tqlayout->addWidget( group ); layout->addWidget( group );
tqlayout->addItem( spacer ); layout->addItem( spacer );
} }
void ConfDialog::setupTab2() void ConfDialog::setupTab2()
{ {
const TQString caption = i18n("KRename"); const TQString caption = i18n("KRename");
TQFrame* box = addPage( caption, caption, BarIcon("krename") ); TQFrame* box = addPage( caption, caption, BarIcon("krename") );
TQVBoxLayout* tqlayout = new TQVBoxLayout( box ); TQVBoxLayout* layout = new TQVBoxLayout( box );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
checkPlugins = new TQCheckBox( i18n("&Load file plugins on start"), box ); checkPlugins = new TQCheckBox( i18n("&Load file plugins on start"), box );
@ -87,12 +87,12 @@ void ConfDialog::setupTab2()
spinHistory->setRange( 2, 500, 1, false ); spinHistory->setRange( 2, 500, 1, false );
spinHistory->setLabel( i18n( "&Number of template history items:" ), AlignLeft | AlignVCenter ); spinHistory->setLabel( i18n( "&Number of template history items:" ), AlignLeft | AlignVCenter );
tqlayout->addWidget( checkPlugins ); layout->addWidget( checkPlugins );
tqlayout->addWidget( checkAutosize ); layout->addWidget( checkAutosize );
tqlayout->addItem( spacer ); layout->addItem( spacer );
tqlayout->addWidget( spinSize ); layout->addWidget( spinSize );
tqlayout->addWidget( spinHistory ); layout->addWidget( spinHistory );
tqlayout->addItem( spacer ); layout->addItem( spacer );
TQToolTip::add( checkPlugins, i18n("Disabling this option decreases KRename's startup time, because no KFilePlugins are loaded.") ); TQToolTip::add( checkPlugins, i18n("Disabling this option decreases KRename's startup time, because no KFilePlugins are loaded.") );
} }

@ -52,7 +52,7 @@ CoordDialog::CoordDialog( const TQString & file, TQWidget *_parent, const char *
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, _parent, name, true, true ), m_file( file ) KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, _parent, name, true, true ), m_file( file )
{ {
TQFrame* parent = plainPage(); TQFrame* parent = plainPage();
TQVBoxLayout* tqlayout = new TQVBoxLayout( parent ); TQVBoxLayout* layout = new TQVBoxLayout( parent );
filename = new DSLineEdit( parent ); filename = new DSLineEdit( parent );
filename->setText( file ); filename->setText( file );
@ -63,10 +63,10 @@ CoordDialog::CoordDialog( const TQString & file, TQWidget *_parent, const char *
checkInvert = new TQCheckBox( i18n("&Invert selection"), plainPage() ); checkInvert = new TQCheckBox( i18n("&Invert selection"), plainPage() );
checkInvert->setChecked( m_inversion ); checkInvert->setChecked( m_inversion );
tqlayout->addWidget( new TQLabel( i18n("Please select the text you want to insert:"), plainPage() ) ); layout->addWidget( new TQLabel( i18n("Please select the text you want to insert:"), plainPage() ) );
tqlayout->addWidget( filename ); layout->addWidget( filename );
tqlayout->addWidget( checkInvert ); layout->addWidget( checkInvert );
tqlayout->addWidget( preview ); layout->addWidget( preview );
updateCommand(); updateCommand();
connect( filename, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateCommand() ) ); connect( filename, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateCommand() ) );

@ -38,10 +38,10 @@ DSDirSelectDialog::DSDirSelectDialog( TQWidget* parent )
TQVBox* vbox = new TQVBox( this ); TQVBox* vbox = new TQVBox( this );
if( tqlayout() ) if( layout() )
tqlayout()->add( vbox ); layout()->add( vbox );
else else
qDebug("KFileDialog does not have a tqlayout!!!"); qDebug("KFileDialog does not have a layout!!!");
checkDir = new TQCheckBox( i18n("Add directory names &with filenames"), vbox ); checkDir = new TQCheckBox( i18n("Add directory names &with filenames"), vbox );
check = new TQCheckBox( i18n("Add subdirectories &recursively"), vbox ); check = new TQCheckBox( i18n("Add subdirectories &recursively"), vbox );

@ -24,7 +24,7 @@ class TQCheckBox;
class TQLabel; class TQLabel;
class KComboBox; class KComboBox;
/* A small helper class to allow tqlayout changes in KDirSelectDialog */ /* A small helper class to allow layout changes in KDirSelectDialog */
class DSDirSelectDialog : public KFileDialog { class DSDirSelectDialog : public KFileDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT

@ -106,13 +106,13 @@ bool EncodingPlugin::checkError()
TQString EncodingPlugin::processFile( BatchRenamer*, int, TQString token, int ) TQString EncodingPlugin::processFile( BatchRenamer*, int, TQString token, int )
{ {
TQString input = token; TQString input = token;
TQString tqunicode = TQString(); TQString unicode = TQString();
TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec); // get the codec for KOI8-R TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec); // get the codec for KOI8-R
TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec); TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec);
tqunicode = toUnicode->toUnicode( input ); unicode = toUnicode->toUnicode( input );
return fromUnicode->fromUnicode( tqunicode ); return fromUnicode->fromUnicode( unicode );
} }
void EncodingPlugin::finished() void EncodingPlugin::finished()

@ -54,12 +54,12 @@ const TQString GUIModeSelector::guiModeCaption() const
void GUIModeSelector::createFrame( TQFrame* frame ) void GUIModeSelector::createFrame( TQFrame* frame )
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout( frame ); TQVBoxLayout* layout = new TQVBoxLayout( frame );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQButtonGroup* group = new TQButtonGroup( frame ); TQButtonGroup* group = new TQButtonGroup( frame );
group->setColumnLayout(0, Qt::Vertical ); group->setColumnLayout(0, Qt::Vertical );
TQVBoxLayout* lgroup = new TQVBoxLayout( group->tqlayout() ); TQVBoxLayout* lgroup = new TQVBoxLayout( group->layout() );
optionWizard = new TQRadioButton( group ); optionWizard = new TQRadioButton( group );
optionWizard->setText( i18n("Use &wizard style GUI (beginners)") ); optionWizard->setText( i18n("Use &wizard style GUI (beginners)") );
@ -71,8 +71,8 @@ void GUIModeSelector::createFrame( TQFrame* frame )
lgroup->addWidget( optionTabs ); lgroup->addWidget( optionTabs );
lgroup->addItem( spacer ); lgroup->addItem( spacer );
tqlayout->addWidget( group ); layout->addWidget( group );
tqlayout->addItem( spacer ); layout->addItem( spacer );
} }

@ -423,9 +423,9 @@ void KRenameImpl::setupPage2()
groupOptions = new TQButtonGroup( page_2 ); groupOptions = new TQButtonGroup( page_2 );
groupOptions->setTitle( i18n( "O&ptions" ) ); groupOptions->setTitle( i18n( "O&ptions" ) );
groupOptions->setColumnLayout(0, Qt::Vertical ); groupOptions->setColumnLayout(0, Qt::Vertical );
groupOptions->tqlayout()->setSpacing( 6 ); groupOptions->layout()->setSpacing( 6 );
groupOptions->tqlayout()->setMargin( 11 ); groupOptions->layout()->setMargin( 11 );
groupOptionsLayout = new TQVBoxLayout( groupOptions->tqlayout() ); groupOptionsLayout = new TQVBoxLayout( groupOptions->layout() );
groupOptionsLayout->setAlignment( TQt::AlignTop ); groupOptionsLayout->setAlignment( TQt::AlignTop );
optionRename = new TQRadioButton( groupOptions ); optionRename = new TQRadioButton( groupOptions );
@ -619,7 +619,7 @@ void KRenameImpl::setupFileTab1()
TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum ); TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum );
TQVBoxLayout* tqlayout = new TQVBoxLayout( tab ); TQVBoxLayout* layout = new TQVBoxLayout( tab );
TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 );
TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 );
TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( 0, 6, 6 );
@ -641,10 +641,10 @@ void KRenameImpl::setupFileTab1()
ExtensionLayout->addWidget( new TQLabel( i18n("File extension starts at:"), tab ) ); ExtensionLayout->addWidget( new TQLabel( i18n("File extension starts at:"), tab ) );
ExtensionLayout->addWidget( comboExtension ); ExtensionLayout->addWidget( comboExtension );
tqlayout->addLayout( Layout1 ); layout->addLayout( Layout1 );
tqlayout->addLayout( ExtensionLayout ); layout->addLayout( ExtensionLayout );
tqlayout->addLayout( Layout2 ); layout->addLayout( Layout2 );
tqlayout->addItem( spacer_9 ); layout->addItem( spacer_9 );
fileTab->addWidget( tab, ID_TAB ); fileTab->addWidget( tab, ID_TAB );
} }
@ -653,7 +653,7 @@ void KRenameImpl::setupFileTab2()
{ {
TQWidget* tab = new TQWidget( page_4 ); TQWidget* tab = new TQWidget( page_4 );
TQHBoxLayout* tqlayout = new TQHBoxLayout( tab, 6, 6 ); TQHBoxLayout* layout = new TQHBoxLayout( tab, 6, 6 );
TQVGroupBox* vgroup1 = new TQVGroupBox( i18n("&Filename"), tab ); TQVGroupBox* vgroup1 = new TQVGroupBox( i18n("&Filename"), tab );
TQGrid* grid = new TQGrid( 4, vgroup1 ); TQGrid* grid = new TQGrid( 4, vgroup1 );
@ -708,8 +708,8 @@ void KRenameImpl::setupFileTab2()
buttonEasyReplace = new KPushButton( i18n("&Find and Replace..."), rightBox ); buttonEasyReplace = new KPushButton( i18n("&Find and Replace..."), rightBox );
buttonEasyReplace->setIconSet( SmallIconSet("find") ); buttonEasyReplace->setIconSet( SmallIconSet("find") );
tqlayout->addWidget( vgroup1 ); layout->addWidget( vgroup1 );
tqlayout->addWidget( rightBox ); layout->addWidget( rightBox );
comboKRenamePrefix->insertItem( "" ); comboKRenamePrefix->insertItem( "" );
comboKRenamePrefix->insertItem( i18n("Number") ); comboKRenamePrefix->insertItem( i18n("Number") );

@ -187,7 +187,7 @@ class KRenameImpl : public TQObject, public KRenameDCOP {
void setupPages(); void setupPages();
void updateHist(); void updateHist();
void parseCommandline(); void parseCommandline();
void addTitle( TQWidget* p, TQVBoxLayout* tqlayout, TQString title ); void addTitle( TQWidget* p, TQVBoxLayout* layout, TQString title );
TQValueList<manualchanges> changes; TQValueList<manualchanges> changes;
void refreshColumnMode(); void refreshColumnMode();

@ -74,9 +74,9 @@ void MyDirPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupNumber = new TQGroupBox( w ); groupNumber = new TQGroupBox( w );
groupNumber->setTitle( i18n( "&Options" ) ); groupNumber->setTitle( i18n( "&Options" ) );
groupNumber->setColumnLayout(0, Qt::Vertical ); groupNumber->setColumnLayout(0, Qt::Vertical );
groupNumber->tqlayout()->setSpacing( 6 ); groupNumber->layout()->setSpacing( 6 );
groupNumber->tqlayout()->setMargin( 11 ); groupNumber->layout()->setMargin( 11 );
groupNumberLayout = new TQHBoxLayout( groupNumber->tqlayout() ); groupNumberLayout = new TQHBoxLayout( groupNumber->layout() );
groupNumberLayout->setAlignment( TQt::AlignTop ); groupNumberLayout->setAlignment( TQt::AlignTop );
TQLabel* la2 = new TQLabel( groupNumber ); TQLabel* la2 = new TQLabel( groupNumber );
@ -104,9 +104,9 @@ void MyDirPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupOutput = new TQGroupBox( w ); groupOutput = new TQGroupBox( w );
groupOutput->setTitle( i18n( "Output &Directory" ) ); groupOutput->setTitle( i18n( "Output &Directory" ) );
groupOutput->setColumnLayout(0, Qt::Vertical ); groupOutput->setColumnLayout(0, Qt::Vertical );
groupOutput->tqlayout()->setSpacing( 6 ); groupOutput->layout()->setSpacing( 6 );
groupOutput->tqlayout()->setMargin( 11 ); groupOutput->layout()->setMargin( 11 );
groupOutputLayout = new TQHBoxLayout( groupOutput->tqlayout() ); groupOutputLayout = new TQHBoxLayout( groupOutput->layout() );
groupOutputLayout->setAlignment( TQt::AlignTop ); groupOutputLayout->setAlignment( TQt::AlignTop );
outputdir = new TQLineEdit( groupOutput ); outputdir = new TQLineEdit( groupOutput );

@ -42,14 +42,14 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
{ {
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQVBoxLayout* tqlayout = new TQVBoxLayout( plainPage(), 6, 6 ); TQVBoxLayout* layout = new TQVBoxLayout( plainPage(), 6, 6 );
TQGroupBox* group1 = new TQGroupBox( plainPage() ); TQGroupBox* group1 = new TQGroupBox( plainPage() );
group1->setTitle( i18n("&Numbering") ); group1->setTitle( i18n("&Numbering") );
group1->setColumnLayout(0, Qt::Vertical ); group1->setColumnLayout(0, Qt::Vertical );
group1->tqlayout()->setSpacing( 6 ); group1->layout()->setSpacing( 6 );
group1->tqlayout()->setMargin( 11 ); group1->layout()->setMargin( 11 );
TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->tqlayout() ); TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->layout() );
group1Layout->setAlignment( TQt::AlignTop ); group1Layout->setAlignment( TQt::AlignTop );
spinIndex = new KIntNumInput( group1 ); spinIndex = new KIntNumInput( group1 );
@ -66,9 +66,9 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
TQGroupBox* group2 = new TQGroupBox( plainPage() ); TQGroupBox* group2 = new TQGroupBox( plainPage() );
group2->setTitle( i18n("S&kip Numbers") ); group2->setTitle( i18n("S&kip Numbers") );
group2->setColumnLayout(0, Qt::Horizontal ); group2->setColumnLayout(0, Qt::Horizontal );
group2->tqlayout()->setSpacing( 6 ); group2->layout()->setSpacing( 6 );
group2->tqlayout()->setMargin( 11 ); group2->layout()->setMargin( 11 );
TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->tqlayout() ); TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->layout() );
group2Layout->setAlignment( TQt::AlignTop ); group2Layout->setAlignment( TQt::AlignTop );
listNumbers = new KListBox( group2 ); listNumbers = new KListBox( group2 );
@ -85,21 +85,21 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
spinNumber->setValue( 0 ); spinNumber->setValue( 0 );
spinNumber->setFocus(); spinNumber->setFocus();
TQVBoxLayout* tqlayout2 = new TQVBoxLayout( 0, 6, 6 ); TQVBoxLayout* layout2 = new TQVBoxLayout( 0, 6, 6 );
tqlayout2->addWidget( buttonAdd ); layout2->addWidget( buttonAdd );
tqlayout2->addWidget( buttonRemove ); layout2->addWidget( buttonRemove );
tqlayout2->addWidget( spinNumber ); layout2->addWidget( spinNumber );
tqlayout2->addItem( spacer ); layout2->addItem( spacer );
group1Layout->addWidget( spinIndex ); group1Layout->addWidget( spinIndex );
group1Layout->addWidget( spinStep ); group1Layout->addWidget( spinStep );
group1Layout->addWidget( checkResetCounter ); group1Layout->addWidget( checkResetCounter );
group2Layout->addWidget( listNumbers ); group2Layout->addWidget( listNumbers );
group2Layout->addLayout( tqlayout2 ); group2Layout->addLayout( layout2 );
tqlayout->addWidget( group1 ); layout->addWidget( group1 );
tqlayout->addWidget( group2 ); layout->addWidget( group2 );
TQToolTip::add( spinIndex, i18n( "Number of the first file." ) ); TQToolTip::add( spinIndex, i18n( "Number of the first file." ) );
TQToolTip::add( spinStep, i18n( "The counter is increased/decreased by this value." ) ); TQToolTip::add( spinStep, i18n( "The counter is increased/decreased by this value." ) );

@ -137,9 +137,9 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupOwner = new TQGroupBox ( i18n("Ownership"), w ); groupOwner = new TQGroupBox ( i18n("Ownership"), w );
groupOwner->setEnabled( FALSE ); groupOwner->setEnabled( FALSE );
groupOwner->setColumnLayout(0, Qt::Vertical ); groupOwner->setColumnLayout(0, Qt::Vertical );
groupOwner->tqlayout()->setSpacing( 6 ); groupOwner->layout()->setSpacing( 6 );
groupOwner->tqlayout()->setMargin( 11 ); groupOwner->layout()->setMargin( 11 );
groupOwnerLayout = new TQVBoxLayout( groupOwner->tqlayout() ); groupOwnerLayout = new TQVBoxLayout( groupOwner->layout() );
groupOwnerLayout->setAlignment( TQt::AlignTop ); groupOwnerLayout->setAlignment( TQt::AlignTop );
Layout2 = new TQHBoxLayout( 0, 0, 6 ); Layout2 = new TQHBoxLayout( 0, 0, 6 );

@ -397,7 +397,7 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
{ {
int i; int i;
TQHBoxLayout* tqlayout = new TQHBoxLayout( plainPage(), 6, 6 ); TQHBoxLayout* layout = new TQHBoxLayout( plainPage(), 6, 6 );
TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 ); TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 );
profiles = new KListBox( plainPage() ); profiles = new KListBox( plainPage() );
@ -420,9 +420,9 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
button->addItem( spacer ); button->addItem( spacer );
button->addWidget( checkDefault ); button->addWidget( checkDefault );
tqlayout->addWidget( profiles ); layout->addWidget( profiles );
tqlayout->addLayout( button ); layout->addLayout( button );
tqlayout->setStretchFactor( profiles, 2 ); layout->setStretchFactor( profiles, 2 );
TQToolTip::add( createProfile, i18n("<qt>Save KRename's current settings as a new profile. " TQToolTip::add( createProfile, i18n("<qt>Save KRename's current settings as a new profile. "
"The settings are saved and can be restored with Load Profile later.</qt>" ) ); "The settings are saved and can be restored with Load Profile later.</qt>" ) );

@ -38,7 +38,7 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
{ {
setIcon( BarIcon( "krename" ) ); setIcon( BarIcon( "krename" ) );
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 ); TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 );
TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding );
@ -53,12 +53,12 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
buttons->addWidget( finishButton ); buttons->addWidget( finishButton );
buttons->addWidget( cancelButton ); buttons->addWidget( cancelButton );
tqlayout->addWidget( tab ); layout->addWidget( tab );
tqlayout->addLayout( buttons ); layout->addLayout( buttons );
tqlayout->setStretchFactor( tab, 2 ); layout->setStretchFactor( tab, 2 );
menuBar = new KMenuBar( this ); menuBar = new KMenuBar( this );
tqlayout->setMenuBar( menuBar ); layout->setMenuBar( menuBar );
connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) ); connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) );

@ -78,13 +78,13 @@ TQString TranslitPlugin::processFile( BatchRenamer*, int, TQString token, int )
return output; // no error return output; // no error
} }
TQString TranslitPlugin::translit(const TQString & tqunicoded) TQString TranslitPlugin::translit(const TQString & unicoded)
{ {
int i; int i;
TQString transed = ""; TQString transed = "";
for (i=0; i<(int)tqunicoded.length(); i++) { for (i=0; i<(int)unicoded.length(); i++) {
TQString charIn = tqunicoded.mid(i, 1); TQString charIn = unicoded.mid(i, 1);
if (m_mapFromUTF8[charIn.utf8()]) { if (m_mapFromUTF8[charIn.utf8()]) {
TQString charTrans = m_mapFromUTF8[charIn.utf8()]; TQString charTrans = m_mapFromUTF8[charIn.utf8()];
transed.append(charTrans); transed.append(charTrans);

@ -77,16 +77,16 @@ void wizard::slotAddPage( TQWidget* page, const TQString & title )
TQString t = title + i18n(" - Step %1 of %2").arg( pageCount()+1 ).arg( 3 ); TQString t = title + i18n(" - Step %1 of %2").arg( pageCount()+1 ).arg( 3 );
TQVBox* tqlayout = new TQVBox( this ); TQVBox* layout = new TQVBox( this );
new TQLabel( TQString( t ).remove( title.find( "&" ), 1 ), tqlayout ); new TQLabel( TQString( t ).remove( title.find( "&" ), 1 ), layout );
TQFrame* hbar1 = new TQFrame( tqlayout, "<hr>", 0 ); TQFrame* hbar1 = new TQFrame( layout, "<hr>", 0 );
hbar1->setFrameStyle( TQFrame::Sunken + TQFrame::HLine ); hbar1->setFrameStyle( TQFrame::Sunken + TQFrame::HLine );
page->reparent( tqlayout, TQPoint( 0, 0 ) ); page->reparent( layout, TQPoint( 0, 0 ) );
addPage( tqlayout, t ); addPage( layout, t );
setHelpEnabled( tqlayout, false ); setHelpEnabled( layout, false );
} }
void wizard::slotShowPage( int page ) void wizard::slotShowPage( int page )

Loading…
Cancel
Save