summaryrefslogtreecommitdiffstats
path: root/parts/documentation/docglobalconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/docglobalconfigwidget.cpp')
-rw-r--r--parts/documentation/docglobalconfigwidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp
index 5cd6ff31..0184c4c9 100644
--- a/parts/documentation/docglobalconfigwidget.cpp
+++ b/parts/documentation/docglobalconfigwidget.cpp
@@ -23,10 +23,10 @@
***************************************************************************/
#include "docglobalconfigwidget.h"
-#include <qlayout.h>
-#include <qtoolbox.h>
-#include <qcheckbox.h>
-#include <qwidgetstack.h>
+#include <tqlayout.h>
+#include <tqtoolbox.h>
+#include <tqcheckbox.h>
+#include <tqwidgetstack.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -51,13 +51,13 @@
#include "docutils.h"
DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
- DocumentationWidget *widget, QWidget *parent, const char *name, WFlags fl)
+ DocumentationWidget *widget, TQWidget *parent, const char *name, WFlags fl)
:DocGlobalConfigWidgetBase(parent, name, fl), m_part(part), m_widget(widget)
{
m_View = new DocConfigListView( viewHolder );
viewHolder->addWidget( m_View );
viewHolder->raiseWidget( m_View );
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->loadCatalogConfiguration( m_View );
@@ -66,7 +66,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
KConfig *config = m_part->config();
//read full text search settings
config->setGroup("htdig");
- QString databaseDir = kapp->dirs()->saveLocation("data",
+ TQString databaseDir = kapp->dirs()->saveLocation("data",
"kdevdocumentation/search");
databaseDirEdit->setURL(config->readPathEntry("databaseDir", databaseDir));
htdigbinEdit->setURL(config->readPathEntry("htdigbin", kapp->dirs()->findExe("htdig")));
@@ -74,15 +74,15 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
htsearchbinEdit->setURL(config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch")));
if (config->readBoolEntry("IsSetup", false) == false)
{
- QFileInfo fi(htsearchbinEdit->url());
+ TQFileInfo fi(htsearchbinEdit->url());
if (!fi.exists())
{
//try to guess htsearch location on Debian
- QFileInfo fi("/usr/lib/cgi-bin/htsearch");
+ TQFileInfo fi("/usr/lib/cgi-bin/htsearch");
if (!fi.exists())
{
//try to guess htsearch location on SuSE
- QFileInfo fi("/srv/www/cgi-bin/htsearch");
+ TQFileInfo fi("/srv/www/cgi-bin/htsearch");
if (fi.exists())
htsearchbinEdit->setURL("/srv/www/cgi-bin/htsearch");
}
@@ -165,12 +165,12 @@ KListView *DocGlobalConfigWidget::activeView()
void DocGlobalConfigWidget::accept()
{
//write catalog settings
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->saveCatalogConfiguration( m_View );
//@todo: take restrictions into account
- (*it)->reinit(m_widget->contents(), m_widget->index(), QStringList());
+ (*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList());
}
KConfig *config = m_part->config();
@@ -182,17 +182,17 @@ void DocGlobalConfigWidget::accept()
config->writePathEntry("htsearchbin", DocUtils::envURL(htsearchbinEdit));
//write full text search locations file
- QString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
- QFile f(ftsLocationsFile);
- QStringList locs;
+ TQString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
+ TQFile f(ftsLocationsFile);
+ TQStringList locs;
if (f.open(IO_ReadWrite | IO_Truncate))
{
- QTextStream str(&f);
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ TQTextStream str(&f);
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++ it)
{
- QStringList app = (*it)->fullTextSearchLocations();
- for (QStringList::const_iterator it2 = app.constBegin();
+ TQStringList app = (*it)->fullTextSearchLocations();
+ for (TQStringList::const_iterator it2 = app.constBegin();
it2 != app.constEnd(); ++it2)
{
if (!locs.contains(*it2))