diff options
Diffstat (limited to 'kmouth/optionsdialog.cpp')
-rw-r--r-- | kmouth/optionsdialog.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kmouth/optionsdialog.cpp b/kmouth/optionsdialog.cpp index 4873167..a16e1e4 100644 --- a/kmouth/optionsdialog.cpp +++ b/kmouth/optionsdialog.cpp @@ -16,13 +16,13 @@ ***************************************************************************/ -#include <qlayout.h> -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qgrid.h> -#include <qtabwidget.h> -#include <qpixmap.h> -#include <qfile.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqgrid.h> +#include <tqtabwidget.h> +#include <tqpixmap.h> +#include <tqfile.h> #include <kcombobox.h> #include <klocale.h> @@ -39,7 +39,7 @@ #include "texttospeechconfigurationwidget.h" #include "speech.h" -PreferencesWidget::PreferencesWidget (QWidget *parent, const char *name) +PreferencesWidget::PreferencesWidget (TQWidget *parent, const char *name) : PreferencesUI (parent, name) { speakCombo->setCurrentItem (1); @@ -113,16 +113,16 @@ bool PreferencesWidget::isSpeakImmediately () { /***************************************************************************/ -OptionsDialog::OptionsDialog (QWidget *parent) +OptionsDialog::OptionsDialog (TQWidget *parent) : KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel|Help, Ok, parent, "configuration", false, true) { setHelp ("config-dialog"); - QPixmap iconGeneral = KGlobal::iconLoader()->loadIcon("configure", KIcon::NoGroup, KIcon::SizeMedium); - QGrid *pageGeneral = addGridPage (1, Qt::Horizontal, i18n("General Options"), QString::null, iconGeneral); + TQPixmap iconGeneral = KGlobal::iconLoader()->loadIcon("configure", KIcon::NoGroup, KIcon::SizeMedium); + TQGrid *pageGeneral = addGridPage (1, Qt::Horizontal, i18n("General Options"), TQString::null, iconGeneral); - tabCtl = new QTabWidget (pageGeneral, "general"); + tabCtl = new TQTabWidget (pageGeneral, "general"); behaviourWidget = new PreferencesWidget (tabCtl, "prefPage"); behaviourWidget->layout()->setMargin(KDialog::marginHint()); @@ -132,17 +132,17 @@ OptionsDialog::OptionsDialog (QWidget *parent) commandWidget->layout()->setMargin(KDialog::marginHint()); tabCtl->addTab (commandWidget, i18n("&Text-to-Speech")); - QPixmap iconCompletion = KGlobal::iconLoader()->loadIcon("keyboard", KIcon::NoGroup, KIcon::SizeMedium); - QGrid *pageCompletion = addGridPage (1, Qt::Horizontal, i18n("Word Completion"), QString::null, iconCompletion); + TQPixmap iconCompletion = KGlobal::iconLoader()->loadIcon("keyboard", KIcon::NoGroup, KIcon::SizeMedium); + TQGrid *pageCompletion = addGridPage (1, Qt::Horizontal, i18n("Word Completion"), TQString::null, iconCompletion); completionWidget = new WordCompletionWidget(pageCompletion, "Word Completion widget"); kttsd = loadKttsd(); if (kttsd != 0) { - QPixmap iconKttsd = KGlobal::iconLoader()->loadIcon("multimedia", KIcon::NoGroup, KIcon::SizeMedium); - QGrid *pageKttsd = addGridPage (1, Qt::Horizontal, i18n("KTTSD Speech Service"), + TQPixmap iconKttsd = KGlobal::iconLoader()->loadIcon("multimedia", KIcon::NoGroup, KIcon::SizeMedium); + TQGrid *pageKttsd = addGridPage (1, Qt::Horizontal, i18n("KTTSD Speech Service"), i18n("KDE Text-to-Speech Daemon Configuration"), iconKttsd); - kttsd->reparent(pageKttsd,0,QPoint(0,0),true); + kttsd->reparent(pageKttsd,0,TQPoint(0,0),true); } } @@ -202,19 +202,19 @@ bool OptionsDialog::isSpeakImmediately () { KCModule *OptionsDialog::loadKttsd () { KLibLoader *loader = KLibLoader::self(); - QString libname = "kcm_kttsd"; - KLibrary *lib = loader->library(QFile::encodeName(libname)); + TQString libname = "kcm_kttsd"; + KLibrary *lib = loader->library(TQFile::encodeName(libname)); if (lib == 0) { libname = "libkcm_kttsd"; - lib = loader->library(QFile::encodeName("libkcm_kttsd")); + lib = loader->library(TQFile::encodeName("libkcm_kttsd")); } if (lib != 0) { - QString initSym("init_"); + TQString initSym("init_"); initSym += libname; - if (lib->hasSymbol(QFile::encodeName(initSym))) { + if (lib->hasSymbol(TQFile::encodeName(initSym))) { // Reuse "lib" instead of letting createInstanceFromLibrary recreate it KLibFactory *factory = lib->factory(); if (factory != 0) { @@ -231,8 +231,8 @@ KCModule *OptionsDialog::loadKttsd () { void OptionsDialog::unloadKttsd () { KLibLoader *loader = KLibLoader::self(); - loader->unloadLibrary(QFile::encodeName("libkcm_kttsd")); - loader->unloadLibrary(QFile::encodeName("kcm_kttsd")); + loader->unloadLibrary(TQFile::encodeName("libkcm_kttsd")); + loader->unloadLibrary(TQFile::encodeName("kcm_kttsd")); } #include "optionsdialog.moc" |