diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kate/part/katefiletype.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/katefiletype.cpp')
-rw-r--r-- | kate/part/katefiletype.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kate/part/katefiletype.cpp b/kate/part/katefiletype.cpp index 269e9972b..11d5e9a46 100644 --- a/kate/part/katefiletype.cpp +++ b/kate/part/katefiletype.cpp @@ -126,7 +126,7 @@ void KateFileTypeManager::save (TQPtrList<KateFileType> *v) for (uint z=0; z < g.count(); z++) { - if (newg.tqfindIndex (g[z]) == -1) + if (newg.findIndex (g[z]) == -1) config.deleteGroup (g[z]); } @@ -187,7 +187,7 @@ int KateFileTypeManager::fileType (KateDocument *doc) for (uint z=0; z < m_types.count(); z++) { - if (m_types.at(z)->mimetypes.tqfindIndex (mt->name()) > -1) + if (m_types.at(z)->mimetypes.findIndex (mt->name()) > -1) types.append (m_types.at(z)); } @@ -264,11 +264,11 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent ) m_types.setAutoDelete (true); m_lastType = 0; - TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); // hl chooser TQHBox *hbHl = new TQHBox( this ); - tqlayout->add (hbHl); + layout->add (hbHl); hbHl->setSpacing( KDialog::spacingHint() ); TQLabel *lHl = new TQLabel( i18n("&Filetype:"), hbHl ); typeCombo = new TQComboBox( false, hbHl ); @@ -283,7 +283,7 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent ) connect( btndel, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteType()) ); gbProps = new TQGroupBox( 2, Qt::Horizontal, i18n("Properties"), this ); - tqlayout->add (gbProps); + layout->add (gbProps); // file & mime types TQLabel *lname = new TQLabel( i18n("N&ame:"), gbProps ); @@ -318,7 +318,7 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent ) priority = new KIntNumInput( gbProps ); lprio->setBuddy( priority ); - tqlayout->addStretch(); + layout->addStretch(); reload(); @@ -341,12 +341,12 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent ) "configuration option, such as highlight, indent-mode, encoding, etc.</p>" "<p>For a full list of known variables, see the manual.</p>") ); TQWhatsThis::add( wildcards, i18n( - "The wildcards tqmask allows you to select files by filename. A typical " - "tqmask uses an asterisk and the file extension, for example " + "The wildcards mask allows you to select files by filename. A typical " + "mask uses an asterisk and the file extension, for example " "<code>*.txt; *.text</code>. The string is a semicolon-separated list " - "of tqmasks.") ); + "of masks.") ); TQWhatsThis::add( mimetypes, i18n( - "The mime type tqmask allows you to select files by mimetype. The string is " + "The mime type mask allows you to select files by mimetype. The string is " "a semicolon-separated list of mimetypes, for example " "<code>text/plain; text/english</code>.") ); TQWhatsThis::add( btnMTW, i18n( @@ -539,9 +539,9 @@ void KateViewFileTypeAction::slotAboutToShow() TQString hlName = KateFactory::self()->fileTypeManager()->list()->at(z)->name; TQString hlSection = KateFactory::self()->fileTypeManager()->list()->at(z)->section; - if ( !hlSection.isEmpty() && (names.tqcontains(hlName) < 1) ) + if ( !hlSection.isEmpty() && (names.contains(hlName) < 1) ) { - if (subMenusName.tqcontains(hlSection) < 1) + if (subMenusName.contains(hlSection) < 1) { subMenusName << hlSection; TQPopupMenu *menu = new TQPopupMenu (); @@ -549,11 +549,11 @@ void KateViewFileTypeAction::slotAboutToShow() popupMenu()->insertItem (hlSection, menu); } - int m = subMenusName.tqfindIndex (hlSection); + int m = subMenusName.findIndex (hlSection); names << hlName; subMenus.at(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1); } - else if (names.tqcontains(hlName) < 1) + else if (names.contains(hlName) < 1) { names << hlName; popupMenu()->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1); @@ -576,7 +576,7 @@ void KateViewFileTypeAction::slotAboutToShow() const KateFileType *t = 0; if ((t = KateFactory::self()->fileTypeManager()->fileType (doc->fileType()))) { - int i = subMenusName.tqfindIndex (t->section); + int i = subMenusName.findIndex (t->section); if (i >= 0 && subMenus.at(i)) subMenus.at(i)->setItemChecked (doc->fileType()+1, true); else @@ -593,4 +593,4 @@ void KateViewFileTypeAction::setType (int mode) doc->updateFileType(mode-1, true); } //END KateViewFileTypeAction -// kate: space-indent on; indent-width 2; tqreplace-tabs on; +// kate: space-indent on; indent-width 2; replace-tabs on; |