diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrConfig.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrConfig.cpp')
-rw-r--r-- | kpresenter/KPrConfig.cpp | 352 |
1 files changed, 176 insertions, 176 deletions
diff --git a/kpresenter/KPrConfig.cpp b/kpresenter/KPrConfig.cpp index 6722edd2..e6498bc3 100644 --- a/kpresenter/KPrConfig.cpp +++ b/kpresenter/KPrConfig.cpp @@ -37,15 +37,15 @@ #include <KoSpeaker.h> -#include <qgroupbox.h> -#include <qvgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qvbox.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qtabwidget.h> -#include <qwhatsthis.h> +#include <tqgroupbox.h> +#include <tqvgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqvbox.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqtabwidget.h> +#include <tqwhatsthis.h> #include "KPrPenStyleWidget.h" #include "KPrBrushProperty.h" @@ -61,9 +61,9 @@ #include <float.h> #include <knumvalidator.h> -#include <qlineedit.h> +#include <tqlineedit.h> #include "KPrCommand.h" -#include <qvgroupbox.h> +#include <tqvgroupbox.h> #include <kfontdialog.h> #include <klineedit.h> #include <KoRect.h> @@ -79,50 +79,50 @@ #include <kspell2/broker.h> using namespace KSpell2; -KPrConfig::KPrConfig( KPrView* parent ) +KPrConfig::KPrConfig( KPrView* tqparent ) : KDialogBase(KDialogBase::IconList,i18n("Configure KPresenter") , KDialogBase::Ok | KDialogBase::Apply | KDialogBase::Cancel| KDialogBase::Default, - KDialogBase::Ok, parent) + KDialogBase::Ok, tqparent) { - m_doc = parent->kPresenterDoc(); - QVBox *page = addVBoxPage( i18n("Interface"), i18n("Interface"), + m_doc = tqparent->kPresenterDoc(); + TQVBox *page = addVBoxPage( i18n("Interface"), i18n("Interface"), BarIcon("misc", KIcon::SizeMedium) ); - _interfacePage=new KPrConfigureInterfacePage( parent, page ); + _interfacePage=new KPrConfigureInterfacePage( tqparent, page ); page = addVBoxPage( i18n("Color"), i18n("Color"), BarIcon("colorize", KIcon::SizeMedium) ); - _colorBackground = new KPrConfigureColorBackground( parent, page ); + _colorBackground = new KPrConfigureColorBackground( tqparent, page ); page = addVBoxPage( i18n("Spelling"), i18n("Spellchecker Behavior"), BarIcon("spellcheck", KIcon::SizeMedium) ); - _spellPage=new KPrConfigureSpellPage(parent, page); + _spellPage=new KPrConfigureSpellPage(tqparent, page); page = addVBoxPage( i18n("Misc"), i18n("Misc"), BarIcon("misc", KIcon::SizeMedium) ); - _miscPage=new KPrConfigureMiscPage(parent, page); + _miscPage=new KPrConfigureMiscPage(tqparent, page); page = addVBoxPage( i18n("Document"), i18n("Document Settings"), BarIcon("kpresenter_kpr", KIcon::SizeMedium) ); - _defaultDocPage=new KPrConfigureDefaultDocPage(parent, page); + _defaultDocPage=new KPrConfigureDefaultDocPage(tqparent, page); page = addVBoxPage( i18n("Tools"), i18n("Default Tools Settings"), BarIcon("configure", KIcon::SizeMedium) ); - _toolsPage=new KPrConfigureToolsPage(parent, page); + _toolsPage=new KPrConfigureToolsPage(tqparent, page); page = addVBoxPage( i18n("Paths"), i18n("Path Settings"), BarIcon("path") ); - m_pathPage=new KPrConfigurePathPage(parent, page); + m_pathPage=new KPrConfigurePathPage(tqparent, page); if (KoSpeaker::isKttsdInstalled()) { page = addVBoxPage( i18n("Abbreviation for Text-to-Speech", "TTS"), i18n("Text-to-Speech Settings"), BarIcon("access", KIcon::SizeMedium) ); - m_ttsPage=new KPrConfigureTTSPage(parent, page); + m_ttsPage=new KPrConfigureTTSPage(tqparent, page); } else m_ttsPage = 0; - connect( this, SIGNAL( okClicked() ),this, SLOT( slotApply() ) ); + connect( this, TQT_SIGNAL( okClicked() ),this, TQT_SLOT( slotApply() ) ); } void KPrConfig::openPage(int flags) @@ -203,10 +203,10 @@ void KPrConfig::slotDefault() } } -KPrConfigureInterfacePage::KPrConfigureInterfacePage( KPrView *_view, QWidget *parent , char *name ) - :QWidget ( parent,name ) +KPrConfigureInterfacePage::KPrConfigureInterfacePage( KPrView *_view, TQWidget *tqparent , char *name ) + :TQWidget ( tqparent,name ) { - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); m_pView=_view; config = KPrFactory::global()->config(); @@ -227,13 +227,13 @@ KPrConfigureInterfacePage::KPrConfigureInterfacePage( KPrView *_view, QWidget *p } - showRuler= new QCheckBox(i18n("Show rulers"),this); - QWhatsThis::add(showRuler, i18n( "When checked, both vertical and horizontal rulers are shown on the KPresenter slide (this is the default). When unchecked, the rulers are not shown on any slide." ) ); + showRuler= new TQCheckBox(i18n("Show rulers"),this); + TQWhatsThis::add(showRuler, i18n( "When checked, both vertical and horizontal rulers are shown on the KPresenter slide (this is the default). When unchecked, the rulers are not shown on any slide." ) ); showRuler->setChecked(bShowRuler); box->addWidget(showRuler); - showStatusBar = new QCheckBox(i18n("Show status bar"),this); - QWhatsThis::add(showStatusBar, i18n( "Toggle the statusbar, which is shown by default." ) ); + showStatusBar = new TQCheckBox(i18n("Show status bar"),this); + TQWhatsThis::add(showStatusBar, i18n( "Toggle the statusbar, which is shown by default." ) ); showStatusBar->setChecked(oldShowStatusBar); box->addWidget(showStatusBar); @@ -241,11 +241,11 @@ KPrConfigureInterfacePage::KPrConfigureInterfacePage( KPrView *_view, QWidget *p recentFiles=new KIntNumInput( oldNbRecentFiles, this); recentFiles->setRange(1, 20, 1); recentFiles->setLabel(i18n("Number of recent files:")); - QWhatsThis::add(recentFiles, i18n( "Set the number of recent files which will be opened using the File->Open Recent menu. Default is to remember 10 filenames. The maximum you can set is 20 and the minimum is 1." ) ); + TQWhatsThis::add(recentFiles, i18n( "Set the number of recent files which will be opened using the File->Open Recent menu. Default is to remember 10 filenames. The maximum you can set is 20 and the minimum is 1." ) ); box->addWidget(recentFiles); - QString suffix = KoUnit::unitName( unit ).prepend(' '); + TQString suffix = KoUnit::unitName( unit ).prepend(' '); indent = new KDoubleNumInput( this ); indent->setValue( KoUnit::toUserValue( ptIndent, unit ) ); indent->setRange(KoUnit::toUserValue( 0.1, unit ), KoUnit::toUserValue( 50, unit ), KoUnit::toUserValue( 0.1, unit )); @@ -253,11 +253,11 @@ KPrConfigureInterfacePage::KPrConfigureInterfacePage( KPrView *_view, QWidget *p indent->setSuffix( suffix ); indent->setLabel(i18n("Text indentation depth:")); - QWhatsThis::add(indent, i18n( "This setting is used by Increase Depth and Decrease Depth menu items (in the Text menu) to change the indentation depth. The Default is 1 centimeter." ) ); + TQWhatsThis::add(indent, i18n( "This setting is used by Increase Depth and Decrease Depth menu items (in the Text menu) to change the indentation depth. The Default is 1 centimeter." ) ); box->addWidget(indent); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); box->addItem( spacer); } @@ -312,19 +312,19 @@ void KPrConfigureInterfacePage::slotDefault() showStatusBar->setChecked(true); } -KPrConfigureColorBackground::KPrConfigureColorBackground( KPrView* _view, QWidget *parent , char *name ) - :QWidget ( parent,name ) +KPrConfigureColorBackground::KPrConfigureColorBackground( KPrView* _view, TQWidget *tqparent , char *name ) + :TQWidget ( tqparent,name ) { m_pView = _view; config = KPrFactory::global()->config(); oldBgColor = m_pView->kPresenterDoc()->txtBackCol(); oldGridColor = m_pView->kPresenterDoc()->gridColor(); - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); - QLabel *lab = new QLabel( this, "label20" ); + TQLabel *lab = new TQLabel( this, "label20" ); lab->setText( i18n( "Background object color:" ) ); - QWhatsThis::add(lab, i18n( "Change the background color of the text box. The background is white by default. If you have a dark background color and you want to put some white text on it, you can change the color of the text box so that you can see what you are typing. When you have finished, the area around the text will revert to the background color. The Defaults button restores the original settings." ) ); + TQWhatsThis::add(lab, i18n( "Change the background color of the text box. The background is white by default. If you have a dark background color and you want to put some white text on it, you can change the color of the text box so that you can see what you are typing. When you have finished, the area around the text will revert to the background color. The Defaults button restores the original settings." ) ); box->addWidget(lab); bgColor = new KColorButton( oldBgColor, @@ -334,16 +334,16 @@ KPrConfigureColorBackground::KPrConfigureColorBackground( KPrView* _view, QWidge box->addWidget(bgColor); - lab = new QLabel( this, "label20" ); + lab = new TQLabel( this, "label20" ); lab->setText( i18n( "Grid color:" ) ); - QWhatsThis::add(lab, i18n( "Here you can change the grid color, which is black by default." ) ); + TQWhatsThis::add(lab, i18n( "Here you can change the grid color, which is black by default." ) ); box->addWidget(lab); gridColor = new KColorButton( oldGridColor, oldGridColor, this ); box->addWidget(gridColor); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); box->addItem( spacer); } @@ -351,43 +351,43 @@ KPrConfigureColorBackground::KPrConfigureColorBackground( KPrView* _view, QWidge void KPrConfigureColorBackground::apply() { KPrDocument * doc = m_pView->kPresenterDoc(); - bool repaintNeeded = false; - QColor _col = bgColor->color(); + bool tqrepaintNeeded = false; + TQColor _col = bgColor->color(); if( oldBgColor != _col ) { config->setGroup( "KPresenter Color" ); config->writeEntry( "BackgroundColor", _col ); doc->setTxtBackCol( _col ); doc->replaceObjs(); oldBgColor=_col; - repaintNeeded = true; + tqrepaintNeeded = true; } _col = gridColor->color(); if( oldGridColor != _col ) { config->setGroup( "KPresenter Color" ); config->writeEntry( "GridColor", _col ); - doc->repaint( false ); + doc->tqrepaint( false ); doc->setGridColor( _col ); oldGridColor=_col; - repaintNeeded = true; + tqrepaintNeeded = true; } - if (repaintNeeded) - doc->repaint( false ); + if (tqrepaintNeeded) + doc->tqrepaint( false ); } void KPrConfigureColorBackground::slotDefault() { - bgColor->setColor( Qt::white ); - gridColor->setColor( Qt::black ); + bgColor->setColor( TQt::white ); + gridColor->setColor( TQt::black ); } -KPrConfigureSpellPage::KPrConfigureSpellPage( KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigureSpellPage::KPrConfigureSpellPage( KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { m_pView=_view; config = KPrFactory::global()->config(); - m_spellConfigWidget = new ConfigWidget( _view->broker(), parent ); + m_spellConfigWidget = new ConfigWidget( _view->broker(), tqparent ); m_spellConfigWidget->setBackgroundCheckingButtonShown( true ); } @@ -410,18 +410,18 @@ void KPrConfigureSpellPage::slotDefault() m_spellConfigWidget->slotDefault(); } -KPrConfigureMiscPage::KPrConfigureMiscPage( KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigureMiscPage::KPrConfigureMiscPage( KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); m_pView=_view; config = KPrFactory::global()->config(); - QGroupBox* tmpQGroupBox = new QGroupBox( 0, Qt::Vertical, i18n("Misc"), this, "GroupBox" ); - tmpQGroupBox->layout()->setSpacing(KDialog::spacingHint()); - tmpQGroupBox->layout()->setMargin(KDialog::marginHint()); - QGridLayout *grid = new QGridLayout( tmpQGroupBox->layout(), 8, 1 ); + TQGroupBox* tmpTQGroupBox = new TQGroupBox( 0, Qt::Vertical, i18n("Misc"), this, "GroupBox" ); + tmpTQGroupBox->tqlayout()->setSpacing(KDialog::spacingHint()); + tmpTQGroupBox->tqlayout()->setMargin(KDialog::marginHint()); + TQGridLayout *grid = new TQGridLayout( tmpTQGroupBox->tqlayout(), 8, 1 ); m_oldNbRedo=30; m_printNotes=true; @@ -432,68 +432,68 @@ KPrConfigureMiscPage::KPrConfigureMiscPage( KPrView *_view, QWidget *parent, cha m_printNotes = config->readBoolEntry("PrintNotes", true); } - m_undoRedoLimit=new KIntNumInput( m_oldNbRedo, tmpQGroupBox ); + m_undoRedoLimit=new KIntNumInput( m_oldNbRedo, tmpTQGroupBox ); m_undoRedoLimit->setLabel(i18n("Undo/redo limit:")); m_undoRedoLimit->setRange(10, 60, 1); - QWhatsThis::add(m_undoRedoLimit, i18n( "Set the number of actions you can undo and redo (how many actions KPresenter keeps in its Undo buffer). This ranges from a minimum of 10 to a maximum of 60 (the default is 30). Once the number of actions reaches the number set here, earlier actions will be forgotten." ) ); + TQWhatsThis::add(m_undoRedoLimit, i18n( "Set the number of actions you can undo and redo (how many actions KPresenter keeps in its Undo buffer). This ranges from a minimum of 10 to a maximum of 60 (the default is 30). Once the number of actions reaches the number set here, earlier actions will be forgotten." ) ); grid->addWidget(m_undoRedoLimit,0,0); KPrDocument* doc = m_pView->kPresenterDoc(); - m_displayLink=new QCheckBox(i18n("Display links"),tmpQGroupBox); - QWhatsThis::add(m_displayLink, i18n( "When you want to include a link in your slide, you can use the Insert->Link... menu, which allows you to insert URL, mail or file links. If the option Display links is checked, all links will be active and displayed in a different color (this is the default behavior). If the option is unchecked, the links will be inactive and the same color as the text. This affects both the edited slides and the slide show." ) ); + m_displayLink=new TQCheckBox(i18n("Display links"),tmpTQGroupBox); + TQWhatsThis::add(m_displayLink, i18n( "When you want to include a link in your slide, you can use the Insert->Link... menu, which allows you to insert URL, mail or file links. If the option Display links is checked, all links will be active and displayed in a different color (this is the default behavior). If the option is unchecked, the links will be inactive and the same color as the text. This affects both the edited slides and the slide show." ) ); grid->addWidget(m_displayLink,3,0); m_displayLink->setChecked(doc->getVariableCollection()->variableSetting()->displayLink()); - m_underlineLink=new QCheckBox(i18n("&Underline all links"),tmpQGroupBox); + m_underlineLink=new TQCheckBox(i18n("&Underline all links"),tmpTQGroupBox); m_underlineLink->setChecked(doc->getVariableCollection()->variableSetting()->underlineLink()); - QWhatsThis::add(m_underlineLink, i18n( "If this is checked, all links will be underlined (this is the default). If it is not checked, the links will not be underlined." ) ); + TQWhatsThis::add(m_underlineLink, i18n( "If this is checked, all links will be underlined (this is the default). If it is not checked, the links will not be underlined." ) ); grid->addWidget(m_underlineLink,4,0); - m_displayComment=new QCheckBox(i18n("Display comments"),tmpQGroupBox); + m_displayComment=new TQCheckBox(i18n("Display comments"),tmpTQGroupBox); m_displayComment->setChecked(doc->getVariableCollection()->variableSetting()->displayComment()); - QWhatsThis::add(m_displayComment, i18n( "Comments are inserted in the text at the cursor using the Insert->Comment... menu. Comments can only be viewed in edit mode and not in the slide show. If this option is checked (default) then each comment will be shown as a small yellow rectangle. You can then right-click on them to edit them, remove them or copy the text." ) ); + TQWhatsThis::add(m_displayComment, i18n( "Comments are inserted in the text at the cursor using the Insert->Comment... menu. Comments can only be viewed in edit mode and not in the slide show. If this option is checked (default) then each comment will be shown as a small yellow rectangle. You can then right-click on them to edit them, remove them or copy the text." ) ); grid->addWidget(m_displayComment,5,0); - m_displayFieldCode=new QCheckBox(i18n("Display field code"),tmpQGroupBox); + m_displayFieldCode=new TQCheckBox(i18n("Display field code"),tmpTQGroupBox); m_displayFieldCode->setChecked(doc->getVariableCollection()->variableSetting()->displayFieldCode()); - QWhatsThis::add(m_displayFieldCode, i18n( "In editor mode (not in slide show) this option will display all the variable codes as well as Link at links location. This is very useful to see what variable is displayed. Variables are inserted using the Insert -> Variable menu." ) ); + TQWhatsThis::add(m_displayFieldCode, i18n( "In editor mode (not in slide show) this option will display all the variable codes as well as Link at links location. This is very useful to see what variable is displayed. Variables are inserted using the Insert -> Variable menu." ) ); grid->addWidget(m_displayFieldCode,6,0); - m_cbPrintNotes=new QCheckBox(i18n("Print slide notes"),tmpQGroupBox); + m_cbPrintNotes=new TQCheckBox(i18n("Print slide notes"),tmpTQGroupBox); m_cbPrintNotes->setChecked(m_printNotes); - QWhatsThis::add(m_cbPrintNotes, i18n( "If checked, all notes will be printed on paper. The notes will all be printed separately on the last page, from the first slide to the last and finally the Master Page Note. You can see the notes for each slide using the View->Show notebar menu." ) ); + TQWhatsThis::add(m_cbPrintNotes, i18n( "If checked, all notes will be printed on paper. The notes will all be printed separately on the last page, from the first slide to the last and finally the Master Page Note. You can see the notes for each slide using the View->Show notebar menu." ) ); grid->addWidget(m_cbPrintNotes,7,0); - box->addWidget(tmpQGroupBox); + box->addWidget(tmpTQGroupBox); - tmpQGroupBox = new QGroupBox( 0, Qt::Vertical, i18n("Grid"), this, "GroupBox" ); - tmpQGroupBox->layout()->setSpacing(KDialog::spacingHint()); - tmpQGroupBox->layout()->setMargin(KDialog::marginHint()); - grid = new QGridLayout( tmpQGroupBox->layout(), 8, 1 ); + tmpTQGroupBox = new TQGroupBox( 0, Qt::Vertical, i18n("Grid"), this, "GroupBox" ); + tmpTQGroupBox->tqlayout()->setSpacing(KDialog::spacingHint()); + tmpTQGroupBox->tqlayout()->setMargin(KDialog::marginHint()); + grid = new TQGridLayout( tmpTQGroupBox->tqlayout(), 8, 1 ); KoRect rect = doc->masterPage()->getPageRect(); - QLabel *lab=new QLabel(i18n("Horizontal grid size:"), tmpQGroupBox); - QWhatsThis::add(lab, i18n( "Set the space in millimeters between two horizontal points on the grid. Default is 5 millimeters." ) ); + TQLabel *lab=new TQLabel(i18n("Horizontal grid size:"), tmpTQGroupBox); + TQWhatsThis::add(lab, i18n( "Set the space in millimeters between two horizontal points on the grid. Default is 5 millimeters." ) ); grid->addWidget(lab,0,0); KoUnit::Unit unit = doc->unit(); - resolutionX = new KoUnitDoubleSpinBox(tmpQGroupBox, 5.0,rect.width(),1,doc->getGridX() ); + resolutionX = new KoUnitDoubleSpinBox(tmpTQGroupBox, 5.0,rect.width(),1,doc->getGridX() ); resolutionX->setUnit( unit ); grid->addWidget(resolutionX,1,0); - lab=new QLabel(i18n("Vertical grid size:"), tmpQGroupBox); - QWhatsThis::add(lab, i18n( "Set the space in millimeters between two vertical points on the grid. Default is 5 millimeters." ) ); + lab=new TQLabel(i18n("Vertical grid size:"), tmpTQGroupBox); + TQWhatsThis::add(lab, i18n( "Set the space in millimeters between two vertical points on the grid. Default is 5 millimeters." ) ); grid->addWidget(lab,2,0); - resolutionY = new KoUnitDoubleSpinBox(tmpQGroupBox, 5.0,rect.height(),1,doc->getGridY() ); + resolutionY = new KoUnitDoubleSpinBox(tmpTQGroupBox, 5.0,rect.height(),1,doc->getGridY() ); resolutionY->setUnit( unit ); grid->addWidget(resolutionY, 3, 0); - box->addWidget(tmpQGroupBox); + box->addWidget(tmpTQGroupBox); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); box->addItem( spacer); @@ -567,7 +567,7 @@ KCommand * KPrConfigureMiscPage::apply() doc->setGridValue( resolutionX->value(), resolutionY->value(), true); - doc->repaint( false ); + doc->tqrepaint( false ); config->sync(); @@ -588,10 +588,10 @@ void KPrConfigureMiscPage::slotDefault() resolutionX->setValue( MM_TO_POINT( 5.0 )); } -KPrConfigureDefaultDocPage::KPrConfigureDefaultDocPage(KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigureDefaultDocPage::KPrConfigureDefaultDocPage(KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); m_pView=_view; config = KPrFactory::global()->config(); @@ -608,62 +608,62 @@ KPrConfigureDefaultDocPage::KPrConfigureDefaultDocPage(KPrView *_view, QWidget * m_oldHyphenation = config->readBoolEntry( "hyphenation", m_oldHyphenation); } - QVGroupBox* gbDocumentDefaults = new QVGroupBox( i18n("Document Defaults"), this, "GroupBox" ); + TQVGroupBox* gbDocumentDefaults = new TQVGroupBox( i18n("Document Defaults"), this, "GroupBox" ); gbDocumentDefaults->setMargin( KDialog::marginHint() ); gbDocumentDefaults->setInsideSpacing( 5 ); - QWidget *fontContainer = new QWidget(gbDocumentDefaults); - QGridLayout * fontLayout = new QGridLayout(fontContainer, 1, 3); + TQWidget *fontContainer = new TQWidget(gbDocumentDefaults); + TQGridLayout * fontLayout = new TQGridLayout(fontContainer, 1, 3); fontLayout->setColStretch(0, 0); fontLayout->setColStretch(1, 1); fontLayout->setColStretch(2, 0); - QLabel *fontTitle = new QLabel(i18n("Default font:"), fontContainer); + TQLabel *fontTitle = new TQLabel(i18n("Default font:"), fontContainer); - font= new QFont( doc->defaultFont() ); + font= new TQFont( doc->defaultFont() ); - QString labelName = font->family() + ' ' + QString::number(font->pointSize()); - fontName = new QLabel(labelName, fontContainer); + TQString labelName = font->family() + ' ' + TQString::number(font->pointSize()); + fontName = new TQLabel(labelName, fontContainer); fontName->setFont(*font); - fontName->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); + fontName->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); - QPushButton *chooseButton = new QPushButton(i18n("Choose..."), fontContainer); - QWhatsThis::add(chooseButton, i18n( "Click here if you want to set a new font. The KDE default Select Font dialog will then be displayed." ) ); - connect(chooseButton, SIGNAL(clicked()), this, SLOT(selectNewDefaultFont())); + TQPushButton *chooseButton = new TQPushButton(i18n("Choose..."), fontContainer); + TQWhatsThis::add(chooseButton, i18n( "Click here if you want to set a new font. The KDE default Select Font dialog will then be displayed." ) ); + connect(chooseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectNewDefaultFont())); fontLayout->addWidget(fontTitle, 0, 0); fontLayout->addWidget(fontName, 0, 1); fontLayout->addWidget(chooseButton, 0, 2); - QWidget *languageContainer = new QWidget(gbDocumentDefaults); - QGridLayout * languageLayout = new QGridLayout(languageContainer, 1, 3); + TQWidget *languageContainer = new TQWidget(gbDocumentDefaults); + TQGridLayout * languageLayout = new TQGridLayout(languageContainer, 1, 3); languageLayout->setColStretch(0, 0); languageLayout->setColStretch(1, 1); - QLabel *languageTitle = new QLabel(i18n("Global language:"), languageContainer); - QWhatsThis::add(languageTitle, i18n( "Use this drop down box to determine the default language for the document. This setting is used by the hyphenation and spelling tools." ) ); + TQLabel *languageTitle = new TQLabel(i18n("Global language:"), languageContainer); + TQWhatsThis::add(languageTitle, i18n( "Use this drop down box to determine the default language for the document. This setting is used by the hyphenation and spelling tools." ) ); - m_globalLanguage = new QComboBox( languageContainer ); + m_globalLanguage = new TQComboBox( languageContainer ); m_globalLanguage->insertStringList( KoGlobal::listOfLanguages() ); m_globalLanguage->setCurrentText( KoGlobal::languageFromTag( doc->globalLanguage() ) ); languageLayout->addWidget(languageTitle, 0, 0); languageLayout->addWidget(m_globalLanguage, 0, 1); - m_autoHyphenation = new QCheckBox( i18n("Automatic hyphenation"), gbDocumentDefaults); - QWhatsThis::add(m_autoHyphenation, i18n( "Check this box if you want KPresenter to automatically hyphenate long words when it determines the word wrap in text frames. This is not set by default." ) ); + m_autoHyphenation = new TQCheckBox( i18n("Automatic hyphenation"), gbDocumentDefaults); + TQWhatsThis::add(m_autoHyphenation, i18n( "Check this box if you want KPresenter to automatically hyphenate long words when it determines the word wrap in text frames. This is not set by default." ) ); m_autoHyphenation->setChecked( m_oldHyphenation ); box->addWidget(gbDocumentDefaults); - QVGroupBox* gbDocumentSettings = new QVGroupBox( i18n("Document Settings"), this ); + TQVGroupBox* gbDocumentSettings = new TQVGroupBox( i18n("Document Settings"), this ); gbDocumentSettings->setMargin( KDialog::marginHint() ); gbDocumentSettings->setInsideSpacing( KDialog::spacingHint() ); - m_createBackupFile = new QCheckBox( i18n("Create backup file"), gbDocumentSettings); - QWhatsThis::add(m_createBackupFile, i18n( "If checked, this will create a .<name>.kpr.autosave.kpr in the folder where your file is. This backup file can then be used in case of a problem.\nThe backup file is updated every time you save your document or every time there is an autosave." ) ); + m_createBackupFile = new TQCheckBox( i18n("Create backup file"), gbDocumentSettings); + TQWhatsThis::add(m_createBackupFile, i18n( "If checked, this will create a .<name>.kpr.autosave.kpr in the folder where your file is. This backup file can then be used in case of a problem.\nThe backup file is updated every time you save your document or every time there is an autosave." ) ); m_createBackupFile->setChecked( m_oldBackupFile ); @@ -672,39 +672,39 @@ KPrConfigureDefaultDocPage::KPrConfigureDefaultDocPage(KPrView *_view, QWidget * autoSave->setLabel( i18n("Autosave (min):") ); autoSave->setSpecialValueText( i18n("No autosave") ); autoSave->setSuffix( i18n("min") ); - QWhatsThis::add(autoSave, i18n( "You can use this to adjust how often KPresenter saves a temporary file. If you set this value to No autosave, KPresenter will not autosave. You can adjust the autosave from 1 to 60 minutes." ) ); + TQWhatsThis::add(autoSave, i18n( "You can use this to adjust how often KPresenter saves a temporary file. If you set this value to No autosave, KPresenter will not autosave. You can adjust the autosave from 1 to 60 minutes." ) ); - new QLabel(i18n("Starting page number:"), gbDocumentSettings); + new TQLabel(i18n("Starting page number:"), gbDocumentSettings); m_oldStartingPage=doc->getVariableCollection()->variableSetting()->startingPageNumber(); m_variableNumberOffset=new KIntNumInput(gbDocumentSettings); m_variableNumberOffset->setRange(1, 9999, 1, false); m_variableNumberOffset->setValue(m_oldStartingPage); - QWhatsThis::add(m_variableNumberOffset, i18n( "Here you can change the number for the first page. It is set to 1 by default.\nTip: this is helpful if you have split a single document into multiple files." ) ); + TQWhatsThis::add(m_variableNumberOffset, i18n( "Here you can change the number for the first page. It is set to 1 by default.\nTip: this is helpful if you have split a single document into multiple files." ) ); - new QLabel(i18n("Tab stop:"), gbDocumentSettings); + new TQLabel(i18n("Tab stop:"), gbDocumentSettings); m_oldTabStopWidth = doc->tabStopValue(); KoRect rect = doc->masterPage()->getPageRect(); m_tabStopWidth = new KoUnitDoubleSpinBox( gbDocumentSettings , MM_TO_POINT(2), rect.width() ,0.1, m_oldTabStopWidth ); m_tabStopWidth->setUnit( doc->unit() ); - QWhatsThis::add(m_tabStopWidth, i18n( "Each KPresenter document has a default set of tab stops. If you add tab stops to your document, the newly added tab stops override the default ones. You can use this text box to define the spacing between default tab stops. As an example, if you enter 1.5 in this text box, and the unit of measurement is in centimeters, the first default tab stop will be located 1.5 cm to the right of the frame's left-hand margin. The second default tab stop will be located at 3 cm from the left-hand margin, and so on." ) ); + TQWhatsThis::add(m_tabStopWidth, i18n( "Each KPresenter document has a default set of tab stops. If you add tab stops to your document, the newly added tab stops override the default ones. You can use this text box to define the spacing between default tab stops. As an example, if you enter 1.5 in this text box, and the unit of measurement is in centimeters, the first default tab stop will be located 1.5 cm to the right of the frame's left-hand margin. The second default tab stop will be located at 3 cm from the left-hand margin, and so on." ) ); box->addWidget(gbDocumentSettings); - QVGroupBox* gbDocumentCursor = new QVGroupBox( i18n("Cursor"), this ); + TQVGroupBox* gbDocumentCursor = new TQVGroupBox( i18n("Cursor"), this ); gbDocumentCursor->setMargin( KDialog::marginHint() ); gbDocumentCursor->setInsideSpacing( KDialog::spacingHint() ); - m_cursorInProtectedArea= new QCheckBox(i18n("Cursor in protected area"),gbDocumentCursor); + m_cursorInProtectedArea= new TQCheckBox(i18n("Cursor in protected area"),gbDocumentCursor); m_cursorInProtectedArea->setChecked(doc->cursorInProtectedArea()); - QWhatsThis::add(m_cursorInProtectedArea, i18n( "When this box is checked and you click in a protected frame within your document, a cursor will appear. When this box is unchecked, and you click in a protected frame, no cursor will be visible." ) ); + TQWhatsThis::add(m_cursorInProtectedArea, i18n( "When this box is checked and you click in a protected frame within your document, a cursor will appear. When this box is unchecked, and you click in a protected frame, no cursor will be visible." ) ); - m_directInsertCursor= new QCheckBox(i18n("Direct insert cursor"),gbDocumentCursor); + m_directInsertCursor= new TQCheckBox(i18n("Direct insert cursor"),gbDocumentCursor); m_directInsertCursor->setChecked(doc->insertDirectCursor()); - QWhatsThis::add(m_directInsertCursor, i18n( "When this box is checked, you can select a section of text using your mouse. Move the mouse to a new area in your document and click once with the middle mouse button and a copy of the selected text will be copied and pasted to the new location in the document.\nWhen this box is unchecked, in order to copy text from one section to another, you must select the text, manually copy the text to the clipboard, then manually paste the text in the new location." ) ); + TQWhatsThis::add(m_directInsertCursor, i18n( "When this box is checked, you can select a section of text using your mouse. Move the mouse to a new area in your document and click once with the middle mouse button and a copy of the selected text will be copied and pasted to the new location in the document.\nWhen this box is unchecked, in order to copy text from one section to another, you must select the text, manually copy the text to the clipboard, then manually paste the text in the new location." ) ); box->addWidget(gbDocumentCursor); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); box->addItem(spacer); } @@ -718,7 +718,7 @@ KCommand *KPrConfigureDefaultDocPage::apply() { config->setGroup( "Document defaults" ); KPrDocument* doc = m_pView->kPresenterDoc(); - config->writeEntry("DefaultFont",font->toString()); + config->writeEntry("DefaultFont",TQString(font->toString())); config->setGroup( "Interface" ); int autoSaveVal = autoSave->value(); @@ -749,7 +749,7 @@ KCommand *KPrConfigureDefaultDocPage::apply() //Laurent Todo add a message box to inform user that //global language will change after re-launch kword - const QString lang = KoGlobal::tagOfLanguage( m_globalLanguage->currentText() ); + const TQString lang = KoGlobal::tagOfLanguage( m_globalLanguage->currentText() ); config->writeEntry( "language" , lang); m_oldLanguage = lang; //don't call this function otherwise we can have a textobject with @@ -797,30 +797,30 @@ void KPrConfigureDefaultDocPage::slotDefault() } void KPrConfigureDefaultDocPage::selectNewDefaultFont() { - QStringList list; + TQStringList list; KFontChooser::getFontList(list, KFontChooser::SmoothScalableFonts); KFontDialog dlg( this, "Font Selector", false, true, list, true ); dlg.setFont(*font); int result = dlg.exec(); if (KDialog::Accepted == result) { delete font; - font = new QFont(dlg.font()); - fontName->setText(font->family() + ' ' + QString::number(font->pointSize())); + font = new TQFont(dlg.font()); + fontName->setText(font->family() + ' ' + TQString::number(font->pointSize())); fontName->setFont(*font); m_pView->kPresenterDoc()->setDefaultFont( *font ); } } -KPrConfigureToolsPage::KPrConfigureToolsPage( KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigureToolsPage::KPrConfigureToolsPage( KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); m_pView = _view; config = KPrFactory::global()->config(); m_pView->getCanvas()->deSelectAllObj(); - QTabWidget *tab = new QTabWidget(this); + TQTabWidget *tab = new TQTabWidget(this); KoPenCmd::Pen pen( m_pView->getPen(), m_pView->getLineBegin(), m_pView->getLineEnd() ); m_confPenDia = new KPrPenStyleWidget(tab, 0, pen, true ); @@ -904,11 +904,11 @@ void KPrConfigureToolsPage::apply() void KPrConfigureToolsPage::slotDefault() { - KoPenCmd::Pen pen( KoPen(black, 1.0, SolidLine), L_NORMAL, L_NORMAL ); + KoPenCmd::Pen pen( KoPen(black, 1.0, Qt::SolidLine), L_NORMAL, L_NORMAL ); m_confPenDia->setPen( pen ); m_pView->getActionPenColor()->setCurrentColor( pen.pen.color() ); - KPrBrushCmd::Brush brush( QBrush( white, SolidPattern ), red, green, + KPrBrushCmd::Brush brush( TQBrush( white, SolidPattern ), red, green, BCT_GHORZ, FT_BRUSH, false, 100, 100 ); m_brushProperty->setBrush( brush ); m_pView->getActionBrushColor()->setCurrentColor( brush.brush.color() ); @@ -930,44 +930,44 @@ void KPrConfigureToolsPage::slotDefault() pieValues.pieLength = 270 * 16; } -KPrConfigurePathPage::KPrConfigurePathPage( KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigurePathPage::KPrConfigurePathPage( KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); m_pView=_view; KPrDocument* doc = m_pView->kPresenterDoc(); config = KPrFactory::global()->config(); m_pPathView = new KListView( this ); - m_pPathView->setResizeMode(QListView::NoColumn); + m_pPathView->setResizeMode(TQListView::NoColumn); m_pPathView->addColumn( i18n( "Type" ) ); m_pPathView->addColumn( i18n( "Path" ) ); - (void) new QListViewItem( m_pPathView, i18n("Picture Path"),doc->picturePath() ); - (void) new QListViewItem( m_pPathView, i18n("Backup Path"),doc->backupPath() ); - QWhatsThis::add(m_pPathView, i18n( "There are two paths that are set here: the Backup Path and the Picture Path. The Backup path is the folder where your backup files are saved and the Picture Path is the folder where your pictures are saved." ) ); + (void) new TQListViewItem( m_pPathView, i18n("Picture Path"),doc->picturePath() ); + (void) new TQListViewItem( m_pPathView, i18n("Backup Path"),doc->backupPath() ); + TQWhatsThis::add(m_pPathView, i18n( "There are two paths that are set here: the Backup Path and the Picture Path. The Backup path is the folder where your backup files are saved and the Picture Path is the folder where your pictures are saved." ) ); box->addWidget(m_pPathView); - m_modifyPath = new QPushButton( i18n("Modify Path..."), this); - connect( m_modifyPath, SIGNAL( clicked ()), this, SLOT( slotModifyPath())); - connect( m_pPathView, SIGNAL( doubleClicked (QListViewItem *, const QPoint &, int )), - this, SLOT( slotModifyPath())); - connect( m_pPathView, SIGNAL( selectionChanged ( QListViewItem * )), - this, SLOT( slotSelectionChanged(QListViewItem * ))); + m_modifyPath = new TQPushButton( i18n("Modify Path..."), this); + connect( m_modifyPath, TQT_SIGNAL( clicked ()), this, TQT_SLOT( slotModifyPath())); + connect( m_pPathView, TQT_SIGNAL( doubleClicked (TQListViewItem *, const TQPoint &, int )), + this, TQT_SLOT( slotModifyPath())); + connect( m_pPathView, TQT_SIGNAL( selectionChanged ( TQListViewItem * )), + this, TQT_SLOT( slotSelectionChanged(TQListViewItem * ))); slotSelectionChanged(m_pPathView->currentItem()); - QWhatsThis::add(m_modifyPath, i18n( "When you click this button, a small dialog will appear and, if Default path is unchecked, you can either enter a path yourself or choose one using the standard KDE file dialog." ) ); + TQWhatsThis::add(m_modifyPath, i18n( "When you click this button, a small dialog will appear and, if Default path is unchecked, you can either enter a path yourself or choose one using the standard KDE file dialog." ) ); box->addWidget(m_modifyPath); } -void KPrConfigurePathPage::slotSelectionChanged(QListViewItem * item) +void KPrConfigurePathPage::slotSelectionChanged(TQListViewItem * item) { m_modifyPath->setEnabled( item ); } void KPrConfigurePathPage::slotModifyPath() { - QListViewItem *item = m_pPathView->currentItem (); + TQListViewItem *item = m_pPathView->currentItem (); if ( item ) { if ( item->text(0)==i18n("Picture Path")) @@ -992,20 +992,20 @@ void KPrConfigurePathPage::slotModifyPath() void KPrConfigurePathPage::slotDefault() { - QListViewItem * item = m_pPathView->findItem(i18n("Picture Path"), 0); + TQListViewItem * item = m_pPathView->tqfindItem(i18n("Picture Path"), 0); if ( item ) item->setText(1, KGlobalSettings::documentPath()); - item = m_pPathView->findItem(i18n("Backup Path"), 0); + item = m_pPathView->tqfindItem(i18n("Backup Path"), 0); if ( item ) - item->setText(1, QString::null ); + item->setText(1, TQString() ); } void KPrConfigurePathPage::apply() { - QListViewItem *item = m_pPathView->findItem(i18n("Backup Path"), 0); + TQListViewItem *item = m_pPathView->tqfindItem(i18n("Backup Path"), 0); if ( item ) { - QString res = item->text(1 ); + TQString res = item->text(1 ); if ( res != m_pView->kPresenterDoc()->backupPath()) { config->setGroup( "Kpresenter Path" ); @@ -1017,10 +1017,10 @@ void KPrConfigurePathPage::apply() #endif } } - item = m_pPathView->findItem(i18n("Picture Path"), 0); + item = m_pPathView->tqfindItem(i18n("Picture Path"), 0); if ( item ) { - QString res = item->text(1 ); + TQString res = item->text(1 ); if ( res != m_pView->kPresenterDoc()->picturePath()) { config->setGroup( "Kpresenter Path" ); @@ -1036,38 +1036,38 @@ void KPrConfigurePathPage::apply() //// -KPrConfigureTTSPage::KPrConfigureTTSPage( KPrView *_view, QWidget *parent, char *name ) - : QWidget( parent, name ) +KPrConfigureTTSPage::KPrConfigureTTSPage( KPrView *_view, TQWidget *tqparent, char *name ) + : TQWidget( tqparent, name ) { Q_UNUSED(_view); - QVBoxLayout *box = new QVBoxLayout( this, 0, 0 ); + TQVBoxLayout *box = new TQVBoxLayout( this, 0, 0 ); - m_cbSpeakPointerWidget = new QCheckBox(i18n("Speak widget under &mouse pointer"), this); - m_cbSpeakFocusWidget = new QCheckBox(i18n("Speak widget with &focus"), this); - m_gbScreenReaderOptions = new QVGroupBox("", this); + m_cbSpeakPointerWidget = new TQCheckBox(i18n("Speak widget under &mouse pointer"), this); + m_cbSpeakFocusWidget = new TQCheckBox(i18n("Speak widget with &focus"), this); + m_gbScreenReaderOptions = new TQVGroupBox("", this); box->add(m_cbSpeakPointerWidget); box->add(m_cbSpeakFocusWidget); box->add(m_gbScreenReaderOptions); m_gbScreenReaderOptions->setMargin( KDialog::marginHint() ); m_gbScreenReaderOptions->setInsideSpacing( KDialog::spacingHint() ); - m_cbSpeakTooltips = new QCheckBox(i18n("Speak &tool tips"), m_gbScreenReaderOptions); - m_cbSpeakWhatsThis = new QCheckBox(i18n("Speak &What's This?"), m_gbScreenReaderOptions); - m_cbSpeakDisabled = new QCheckBox(i18n("Verbal indication if widget is disabled (grayed)", + m_cbSpeakTooltips = new TQCheckBox(i18n("Speak &tool tips"), m_gbScreenReaderOptions); + m_cbSpeakWhatsThis = new TQCheckBox(i18n("Speak &What's This?"), m_gbScreenReaderOptions); + m_cbSpeakDisabled = new TQCheckBox(i18n("Verbal indication if widget is disabled (grayed)", "&Say whether disabled"), m_gbScreenReaderOptions); - m_cbSpeakAccelerators = new QCheckBox(i18n("Spea&k accelerators"), m_gbScreenReaderOptions); - QHBox* hbAcceleratorPrefix = new QHBox(m_gbScreenReaderOptions); - QWidget* spacer = new QWidget(hbAcceleratorPrefix); + m_cbSpeakAccelerators = new TQCheckBox(i18n("Spea&k accelerators"), m_gbScreenReaderOptions); + TQHBox* hbAcceleratorPrefix = new TQHBox(m_gbScreenReaderOptions); + TQWidget* spacer = new TQWidget(hbAcceleratorPrefix); spacer->setMinimumWidth(2 * KDialog::marginHint()); m_lblAcceleratorPrefix = - new QLabel(i18n("A word spoken before another word", "Pr&efaced by the word:"), + new TQLabel(i18n("A word spoken before another word", "Pr&efaced by the word:"), hbAcceleratorPrefix); - m_leAcceleratorPrefixWord = new QLineEdit(i18n("Keyboard accelerator, such as Alt+F", "Accelerator"), + m_leAcceleratorPrefixWord = new TQLineEdit(i18n("Keyboard accelerator, such as Alt+F", "Accelerator"), hbAcceleratorPrefix); m_lblAcceleratorPrefix->setBuddy(m_leAcceleratorPrefixWord); - QHBox* hbPollingInterval = new QHBox(m_gbScreenReaderOptions); + TQHBox* hbPollingInterval = new TQHBox(m_gbScreenReaderOptions); hbPollingInterval->setMargin( 0 ); - QLabel* lblPollingInterval = new QLabel(i18n("&Polling interval:"), hbPollingInterval); + TQLabel* lblPollingInterval = new TQLabel(i18n("&Polling interval:"), hbPollingInterval); m_iniPollingInterval = new KIntNumInput(hbPollingInterval); m_iniPollingInterval->setSuffix(" ms"); m_iniPollingInterval->setRange(100, 5000, 100, true); @@ -1086,9 +1086,9 @@ KPrConfigureTTSPage::KPrConfigureTTSPage( KPrView *_view, QWidget *parent, char m_iniPollingInterval->setValue(config->readNumEntry("PollingInterval", 600)); screenReaderOptionChanged(); - connect(m_cbSpeakPointerWidget, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged())); - connect(m_cbSpeakFocusWidget, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged())); - connect(m_cbSpeakAccelerators, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged())); + connect(m_cbSpeakPointerWidget, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged())); + connect(m_cbSpeakFocusWidget, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged())); + connect(m_cbSpeakAccelerators, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged())); } void KPrConfigureTTSPage::slotDefault() |