diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kate/part/katedialogs.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/katedialogs.cpp')
-rw-r--r-- | kate/part/katedialogs.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kate/part/katedialogs.cpp b/kate/part/katedialogs.cpp index d3a481856..b50e30697 100644 --- a/kate/part/katedialogs.cpp +++ b/kate/part/katedialogs.cpp @@ -147,7 +147,7 @@ const int KateIndentConfigTab::flags[] = { KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent) : KateConfigPage(parent) { - TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); int configFlags = KateDocumentConfig::global()->configFlags(); TQVGroupBox *gbAuto = new TQVGroupBox(i18n("Automatic Indentation"), this); @@ -195,14 +195,14 @@ KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent) opt[6]->setChecked(configFlags & flags[6]); opt[7]->setChecked(configFlags & flags[7]); - layout->addWidget(gbAuto); - layout->addWidget(gbSpaces); - layout->addWidget(opt[1]); - layout->addWidget(opt[2]); - layout->addWidget(keys); - layout->addWidget(m_tabs, 0); + tqlayout->addWidget(gbAuto); + tqlayout->addWidget(gbSpaces); + tqlayout->addWidget(opt[1]); + tqlayout->addWidget(opt[2]); + tqlayout->addWidget(keys); + tqlayout->addWidget(m_tabs, 0); - layout->addStretch(); + tqlayout->addStretch(); // What is this? help TQWhatsThis::add(opt[0], i18n( @@ -352,7 +352,7 @@ KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent) { int configFlags = KateDocumentConfig::global()->configFlags(); - TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); TQVGroupBox *gbCursor = new TQVGroupBox(i18n("Text Cursor Movement"), this); @@ -373,18 +373,18 @@ KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent) e4->setLabel(i18n("Autocenter cursor (lines):"), AlignVCenter); connect(e4, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); - layout->addWidget(gbCursor); + tqlayout->addWidget(gbCursor); TQRadioButton *rb1, *rb2; m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Selection Mode"), this ); - layout->add (m_tabs); + tqlayout->add (m_tabs); m_tabs->setRadioButtonExclusive( true ); m_tabs->insert( rb1=new TQRadioButton( i18n("&Normal"), m_tabs ), 0 ); m_tabs->insert( rb2=new TQRadioButton( i18n("&Persistent"), m_tabs ), 1 ); - layout->addStretch(); + tqlayout->addStretch(); TQWhatsThis::add(rb1, i18n( "Selections will be overwritten by typed text and will be lost on " @@ -712,7 +712,7 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent) "you to set a maximum width of the screen, as a percentage, after which " "dynamically wrapped lines will no longer be vertically aligned. For " "example, at 50%, lines whose indentation levels are deeper than 50% of " - "the width of the screen will not have vertical alignment applied to " + "the width of the screen will not have vertical tqalignment applied to " "subsequent wrapped lines.</p>")); TQWhatsThis::add(m_line,i18n( "If this option is checked, every new view will display line numbers " @@ -850,10 +850,10 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) : KateConfigPage( parent ) { int configFlags = KateDocumentConfig::global()->configFlags(); - TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); TQVGroupBox *gbEnc = new TQVGroupBox(i18n("File Format"), this); - layout->addWidget( gbEnc ); + tqlayout->addWidget( gbEnc ); TQHBox *e5Layout = new TQHBox(gbEnc); TQLabel *e5Label = new TQLabel(i18n("&Encoding:"), e5Layout); @@ -872,7 +872,7 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) m_eol->insertItem (i18n("Macintosh")); TQVGroupBox *gbMem = new TQVGroupBox(i18n("Memory Usage"), this); - layout->addWidget( gbMem ); + tqlayout->addWidget( gbMem ); e5Layout = new TQHBox(gbMem); e5Layout->setSpacing (32); @@ -883,13 +883,13 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) blockCountLabel->setBuddy(blockCount); TQVGroupBox *gbWhiteSpace = new TQVGroupBox(i18n("Automatic Cleanups on Load/Save"), this); - layout->addWidget( gbWhiteSpace ); + tqlayout->addWidget( gbWhiteSpace ); removeSpaces = new TQCheckBox(i18n("Re&move trailing spaces"), gbWhiteSpace); removeSpaces->setChecked(configFlags & KateDocument::cfRemoveSpaces); TQVGroupBox *dirConfigBox = new TQVGroupBox(i18n("Folder Config File"), this); - layout->addWidget( dirConfigBox ); + tqlayout->addWidget( dirConfigBox ); dirSearchDepth = new KIntNumInput(KateDocumentConfig::global()->searchDirConfigDepth(), dirConfigBox); dirSearchDepth->setRange(-1, 64, 1, false); @@ -897,7 +897,7 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) dirSearchDepth->setLabel(i18n("Se&arch depth for config file:"), AlignVCenter); TQGroupBox *gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Backup on Save"), this ); - layout->addWidget( gb ); + tqlayout->addWidget( gb ); cbLocalFiles = new TQCheckBox( i18n("&Local files"), gb ); cbRemoteFiles = new TQCheckBox( i18n("&Remote files"), gb ); @@ -911,7 +911,7 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) leBuSuffix = new TQLineEdit( hbBuSuffix ); lBuSuffix->setBuddy( leBuSuffix ); - layout->addStretch(); + tqlayout->addStretch(); TQWhatsThis::add(removeSpaces, i18n( "The editor will automatically eliminate extra spaces at the ends of " @@ -1257,11 +1257,11 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) , hlData (0) , m_doc (doc) { - TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); // hl chooser TQHBox *hbHl = new TQHBox( this ); - layout->add (hbHl); + tqlayout->add (hbHl); hbHl->setSpacing( KDialog::spacingHint() ); TQLabel *lHl = new TQLabel( i18n("H&ighlight:"), hbHl ); @@ -1278,7 +1278,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) } TQGroupBox *gbInfo = new TQGroupBox( 1, Qt::Horizontal, i18n("Information"), this ); - layout->add (gbInfo); + tqlayout->add (gbInfo); // author TQHBox *hb1 = new TQHBox( gbInfo); @@ -1292,7 +1292,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) license = new TQLabel (hb2); TQGroupBox *gbProps = new TQGroupBox( 1, Qt::Horizontal, i18n("Properties"), this ); - layout->add (gbProps); + tqlayout->add (gbProps); // file & mime types TQHBox *hbFE = new TQHBox( gbProps); @@ -1317,9 +1317,9 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) // download/new buttons TQHBox *hbBtns = new TQHBox( this ); - layout->add (hbBtns); + tqlayout->add (hbBtns); - ((TQBoxLayout*)hbBtns->layout())->addStretch(1); // hmm. + ((TQBoxLayout*)hbBtns->tqlayout())->addStretch(1); // hmm. hbBtns->setSpacing( KDialog::spacingHint() ); TQPushButton *btnDl = new TQPushButton(i18n("Do&wnload..."), hbBtns); connect( btnDl, TQT_SIGNAL(clicked()), this, TQT_SLOT(hlDownload()) ); @@ -1346,7 +1346,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) "Click this button to download new or updated syntax highlight " "descriptions from the Kate website.") ); - layout->addStretch (); + tqlayout->addStretch (); connect( wildcards, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); connect( mimetypes, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); @@ -1388,10 +1388,10 @@ void KateHlConfigPage::hlChanged(int z) return; } - if ( !hlDataDict.find( z ) ) + if ( !hlDataDict.tqfind( z ) ) hlDataDict.insert( z, hl->getData() ); - hlData = hlDataDict.find( z ); + hlData = hlDataDict.tqfind( z ); wildcards->setText(hlData->wildcards); mimetypes->setText(hlData->mimetypes); priority->setValue(hlData->priority); @@ -1737,4 +1737,4 @@ void KateModOnHdPrompt::slotUser1() //END KateModOnHdPrompt -// kate: space-indent on; indent-width 2; replace-tabs on; +// kate: space-indent on; indent-width 2; tqreplace-tabs on; |