summaryrefslogtreecommitdiffstats
path: root/parts/ctags2/ctags2_settingswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/ctags2/ctags2_settingswidget.cpp')
-rw-r--r--parts/ctags2/ctags2_settingswidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/parts/ctags2/ctags2_settingswidget.cpp b/parts/ctags2/ctags2_settingswidget.cpp
index 4bcdb122..d7458a85 100644
--- a/parts/ctags2/ctags2_settingswidget.cpp
+++ b/parts/ctags2/ctags2_settingswidget.cpp
@@ -9,9 +9,9 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qheader.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqheader.h>
#include <klineedit.h>
#include <klistview.h>
@@ -30,7 +30,7 @@
#include "ctags2_createtagfile.h"
-CTags2SettingsWidget::CTags2SettingsWidget( CTags2Part * part, QWidget* parent, const char* name, WFlags fl )
+CTags2SettingsWidget::CTags2SettingsWidget( CTags2Part * part, TQWidget* parent, const char* name, WFlags fl )
: CTags2SettingsWidgetBase( parent, name, fl ), m_part( part )
{
binaryPath->completionObject()->setMode( KURLCompletion::FileCompletion );
@@ -55,23 +55,23 @@ CTags2SettingsWidget::~CTags2SettingsWidget()
void CTags2SettingsWidget::loadSettings()
{
- QDomDocument & dom = *m_part->projectDom();
+ TQDomDocument & dom = *m_part->projectDom();
- QString customArgs = DomUtil::readEntry( dom, "/ctagspart/customArguments" );
+ TQString customArgs = DomUtil::readEntry( dom, "/ctagspart/customArguments" );
if ( !customArgs.isEmpty() )
{
tagfileCustomBox->setChecked( true );
tagfileCustomEdit->setText( customArgs );
}
- QString customTagfile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
+ TQString customTagfile = DomUtil::readEntry( dom, "/ctagspart/customTagfilePath" );
if (customTagfile.isEmpty())
{
customTagfile = m_part->project()->projectDirectory() + "/tags";
}
tagfilePath->setURL(customTagfile);
- QStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
+ TQStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
KConfig * config = kapp->config();
config->setGroup( "CTAGS" );
@@ -79,18 +79,18 @@ void CTags2SettingsWidget::loadSettings()
showDefinitionBox->setChecked( config->readBoolEntry( "ShowDefinition", true ) );
showLookupBox->setChecked( config->readBoolEntry( "ShowLookup", true ) );
jumpToFirstBox->setChecked( config->readBoolEntry( "JumpToFirst", false ) );
- QString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
+ TQString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
if ( !ctagsBinary.isEmpty() )
{
binaryPath->setURL( ctagsBinary );
}
config->setGroup( "CTAGS-tagsfiles" );
- QMap<QString,QString> entryMap = config->entryMap( "CTAGS-tagsfiles" );
- QMap<QString,QString>::const_iterator it = entryMap.begin();
+ TQMap<TQString,TQString> entryMap = config->entryMap( "CTAGS-tagsfiles" );
+ TQMap<TQString,TQString>::const_iterator it = entryMap.begin();
while ( it != entryMap.end() )
{
- QString file = config->readPathEntry( it.key() );
+ TQString file = config->readPathEntry( it.key() );
new TagsItem( otherTagFiles, it.key(), file, activeTagsFiles.contains( file ) );
++it;
}
@@ -98,7 +98,7 @@ void CTags2SettingsWidget::loadSettings()
void CTags2SettingsWidget::storeSettings()
{
- QDomDocument & dom = *m_part->projectDom();
+ TQDomDocument & dom = *m_part->projectDom();
DomUtil::writeEntry( dom, "/ctagspart/customArguments", tagfileCustomEdit->text() );
DomUtil::writeEntry( dom, "/ctagspart/customTagfilePath", tagfilePath->url() );
@@ -113,7 +113,7 @@ void CTags2SettingsWidget::storeSettings()
config->deleteGroup( "CTAGS-tagsfiles" );
config->setGroup( "CTAGS-tagsfiles" );
- QStringList activeTagsFiles;
+ TQStringList activeTagsFiles;
TagsItem * item = static_cast<TagsItem*>( otherTagFiles->firstChild() );
while ( item )
{
@@ -142,7 +142,7 @@ void CTags2SettingsWidget::slotAccept( )
void CTags2SettingsWidget::createNewTagSlot()
{
CreateTagFile* dlg = new CreateTagFile;
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
{
m_part->createTagsFile( dlg->tagsfilePath(), dlg->directory() );
new TagsItem( otherTagFiles, dlg->name(), dlg->tagsfilePath(), true );
@@ -153,7 +153,7 @@ void CTags2SettingsWidget::addNewTagFile()
{
SelectTagFile* dlg = new SelectTagFile;
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == TQDialog::Accepted )
{
new TagsItem( otherTagFiles, dlg->name(), dlg->tagsfilePath(), true );
}