summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/editorchooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/editorchooser.cpp')
-rw-r--r--interfaces/ktexteditor/editorchooser.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/interfaces/ktexteditor/editorchooser.cpp b/interfaces/ktexteditor/editorchooser.cpp
index a7211ab49..96cf3649e 100644
--- a/interfaces/ktexteditor/editorchooser.cpp
+++ b/interfaces/ktexteditor/editorchooser.cpp
@@ -1,15 +1,15 @@
#include <editorchooser.h>
#include <editorchooser.moc>
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <ktrader.h>
#include <kconfig.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kservice.h>
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kapplication.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include "editorchooser_ui.h"
@@ -26,19 +26,19 @@ namespace KTextEditor
~PrivateEditorChooser(){}
// Data Members
EditorChooser_UI *chooser;
- QStringList ElementNames;
- QStringList elements;
+ TQStringList ElementNames;
+ TQStringList elements;
};
}
-EditorChooser::EditorChooser(QWidget *parent,const char *name) :
- QWidget (parent,name)
+EditorChooser::EditorChooser(TQWidget *parent,const char *name) :
+ TQWidget (parent,name)
{
d = new PrivateEditorChooser ();
// sizemanagment
- QGridLayout *grid = new QGridLayout( this, 1, 1 );
+ TQGridLayout *grid = new TQGridLayout( this, 1, 1 );
d->chooser = new EditorChooser_UI (this, name);
@@ -49,7 +49,7 @@ EditorChooser::EditorChooser(QWidget *parent,const char *name) :
KTrader::OfferList offers = KTrader::self()->query("text/plain", "'KTextEditor/Document' in ServiceTypes");
KConfig *config=new KConfig("default_components");
config->setGroup("KTextEditor");
- QString editor = config->readPathEntry("embeddedEditor");
+ TQString editor = config->readPathEntry("embeddedEditor");
if (editor.isEmpty()) editor="katepart";
@@ -74,11 +74,11 @@ EditorChooser:: ~EditorChooser(){
delete d;
}
-void EditorChooser::readAppSetting(const QString& postfix){
+void EditorChooser::readAppSetting(const TQString& postfix){
KConfig *cfg=kapp->config();
- QString previousGroup=cfg->group();
+ TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix);
- QString editor=cfg->readPathEntry("editor");
+ TQString editor=cfg->readPathEntry("editor");
if (editor.isEmpty()) d->chooser->editorCombo->setCurrentItem(0);
else
{
@@ -89,26 +89,26 @@ void EditorChooser::readAppSetting(const QString& postfix){
cfg->setGroup(previousGroup);
}
-void EditorChooser::writeAppSetting(const QString& postfix){
+void EditorChooser::writeAppSetting(const TQString& postfix){
KConfig *cfg=kapp->config();
- QString previousGroup=cfg->group();
+ TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix);
cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES");
cfg->writePathEntry("editor", (d->chooser->editorCombo->currentItem()==0) ?
- QString::null : (*d->elements.at(d->chooser->editorCombo->currentItem()-1)));
+ TQString::null : (*d->elements.at(d->chooser->editorCombo->currentItem()-1)));
cfg->sync();
cfg->setGroup(previousGroup);
}
-KTextEditor::Document *EditorChooser::createDocument(QObject *parent,const char* name, const QString& postfix,bool fallBackToKatePart){
+KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char* name, const TQString& postfix,bool fallBackToKatePart){
KTextEditor::Document *tmpDoc=0;
KConfig *cfg=kapp->config();
- QString previousGroup=cfg->group();
+ TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix);
- QString editor=cfg->readPathEntry("editor");
+ TQString editor=cfg->readPathEntry("editor");
cfg->setGroup(previousGroup);
if (editor.isEmpty())
{
@@ -130,15 +130,15 @@ KTextEditor::Document *EditorChooser::createDocument(QObject *parent,const char*
return 0;
}
-KTextEditor::Editor *EditorChooser::createEditor(QWidget *parentWidget,QObject *parent,const char* widgetName,
- const char* name,const QString& postfix,bool fallBackToKatePart){
+KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName,
+ const char* name,const TQString& postfix,bool fallBackToKatePart){
KTextEditor::Editor *tmpEd=0;
KConfig *cfg=kapp->config();
- QString previousGroup=cfg->group();
+ TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix);
- QString editor=cfg->readPathEntry("editor");
+ TQString editor=cfg->readPathEntry("editor");
cfg->setGroup(previousGroup);
if (editor.isEmpty())
{