diff options
Diffstat (limited to 'parts/snippet/snippet_part.cpp')
-rw-r--r-- | parts/snippet/snippet_part.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/parts/snippet/snippet_part.cpp b/parts/snippet/snippet_part.cpp index f7564109..eb1c47ac 100644 --- a/parts/snippet/snippet_part.cpp +++ b/parts/snippet/snippet_part.cpp @@ -7,17 +7,17 @@ */ #include "snippet_part.h" -#include <qwhatsthis.h> +#include <tqwhatsthis.h> #include <kaction.h> #include <kiconloader.h> #include <klocale.h> #include <kaboutdata.h> -#include <qvbox.h> +#include <tqvbox.h> #include <kdialogbase.h> #include <klineedit.h> -#include <qcheckbox.h> -#include <qbuttongroup.h> +#include <tqcheckbox.h> +#include <tqbuttongroup.h> #include <ktrader.h> #include "kdevcore.h" @@ -37,7 +37,7 @@ static const KDevPluginInfo data("kdevsnippet"); typedef KDevGenericFactory<SnippetPart> snippetFactory; K_EXPORT_COMPONENT_FACTORY( libkdevsnippet, snippetFactory( data ) ) -SnippetPart::SnippetPart(QObject *parent, const char *name, const QStringList& ) +SnippetPart::SnippetPart(TQObject *parent, const char *name, const TQStringList& ) : KDevPlugin(&data, parent, name ? name : "SnippetPart" ) { setInstance(snippetFactory::instance()); @@ -47,16 +47,16 @@ SnippetPart::SnippetPart(QObject *parent, const char *name, const QStringList& ) m_widget->setCaption(i18n("Code Snippets")); m_widget->setIcon(SmallIcon( info()->icon() )); - QWhatsThis::add(m_widget, i18n("<b>Code Snippet</b><p>This is a list of available snippets.")); + TQWhatsThis::add(m_widget, i18n("<b>Code Snippet</b><p>This is a list of available snippets.")); mainWindow()->embedSelectViewRight( m_widget, i18n("Code Snippets"), i18n("Insert a code snippet") ); - connect( core(), SIGNAL( configWidget( KDialogBase * ) ), this, SLOT( slotConfigWidget( KDialogBase * ) ) ); + connect( core(), TQT_SIGNAL( configWidget( KDialogBase * ) ), this, TQT_SLOT( slotConfigWidget( KDialogBase * ) ) ); /*The next two connects are used to check if certain SnippetGroups need to be opened according to the languages supported by this project*/ - connect( core(), SIGNAL( projectOpened() ), m_widget, SLOT( languageChanged() ) ); - connect( core(), SIGNAL( languageChanged() ), m_widget, SLOT( languageChanged() ) ); + connect( core(), TQT_SIGNAL( projectOpened() ), m_widget, TQT_SLOT( languageChanged() ) ); + connect( core(), TQT_SIGNAL( languageChanged() ), m_widget, TQT_SLOT( languageChanged() ) ); setupActions(); } @@ -73,7 +73,7 @@ SnippetPart::~SnippetPart() void SnippetPart::setupActions() { - new KAction( i18n("Show Snippet Tree"), CTRL+ALT+SHIFT+Key_S, this, SLOT(slotShowView()), actionCollection(), "snippet_showview"); + new KAction( i18n("Show Snippet Tree"), CTRL+ALT+SHIFT+Key_S, this, TQT_SLOT(slotShowView()), actionCollection(), "snippet_showview"); } /*! @@ -97,7 +97,7 @@ KAboutData* SnippetPart::aboutData() */ void SnippetPart::slotConfigWidget( KDialogBase *dlg ) { - QVBox *vbox = dlg->addVBoxPage( i18n("Code Snippets"), i18n("Code Snippets"), BarIcon( info()->icon(), KIcon::SizeMedium ) ); + TQVBox *vbox = dlg->addVBoxPage( i18n("Code Snippets"), i18n("Code Snippets"), BarIcon( info()->icon(), KIcon::SizeMedium ) ); SnippetSettings * w = new SnippetSettings( m_widget, vbox ); @@ -105,22 +105,22 @@ void SnippetPart::slotConfigWidget( KDialogBase *dlg ) w->leDelimiter->setText(m_widget->getSnippetConfig()->getDelimiter()); w->cbToolTip->setChecked(m_widget->getSnippetConfig()->useToolTips()); w->btnGroupAutoOpen->setButton(m_widget->getSnippetConfig()->getAutoOpenGroups()); - connect( dlg, SIGNAL(okClicked()), w, SLOT(slotOKClicked()) ); + connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotOKClicked()) ); } -QStringList SnippetPart::getAllLanguages() +TQStringList SnippetPart::getAllLanguages() { KTrader::OfferList languageSupportOffers = - KTrader::self()->query(QString::fromLatin1("KDevelop/LanguageSupport"), - QString::fromLatin1("[X-KDevelop-Version] == %1" + KTrader::self()->query(TQString::fromLatin1("KDevelop/LanguageSupport"), + TQString::fromLatin1("[X-KDevelop-Version] == %1" ).arg( KDEVELOP_PLUGIN_VERSION )); - QStringList languages; + TQStringList languages; for (KTrader::OfferList::ConstIterator it = languageSupportOffers.begin(); it != languageSupportOffers.end(); ++it) { - QString language = (*it)->property("X-KDevelop-Language").toString(); + TQString language = (*it)->property("X-KDevelop-Language").toString(); languages.append(language); kdDebug(9035) << "Found language: " << (*it)->property("X-KDevelop-Language").toString() << endl << @@ -132,13 +132,13 @@ QStringList SnippetPart::getAllLanguages() } -QStringList SnippetPart::getProjectLanguages() +TQStringList SnippetPart::getProjectLanguages() { - QStringList languages; + TQStringList languages; if (!projectDom()) return languages; - QDomDocument m_projectDom = *projectDom(); + TQDomDocument m_projectDom = *projectDom(); if (m_widget->getSnippetConfig()->getAutoOpenGroups() == 1) languages = DomUtil::readListEntry(m_projectDom, "/general/secondaryLanguages", "language"); |