summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoAutoFormatDia.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/KoAutoFormatDia.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'lib/kotext/KoAutoFormatDia.cpp')
-rw-r--r--lib/kotext/KoAutoFormatDia.cpp452
1 files changed, 226 insertions, 226 deletions
diff --git a/lib/kotext/KoAutoFormatDia.cpp b/lib/kotext/KoAutoFormatDia.cpp
index 20502404..6a602c92 100644
--- a/lib/kotext/KoAutoFormatDia.cpp
+++ b/lib/kotext/KoAutoFormatDia.cpp
@@ -28,29 +28,29 @@
#include <klistview.h>
#include <kstandarddirs.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qapplication.h>
-
-KoAutoFormatLineEdit::KoAutoFormatLineEdit ( QWidget * parent, const char * name )
- : QLineEdit(parent,name)
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqapplication.h>
+
+KoAutoFormatLineEdit::KoAutoFormatLineEdit ( TQWidget * tqparent, const char * name )
+ : TQLineEdit(tqparent,name)
{
}
-void KoAutoFormatLineEdit::keyPressEvent ( QKeyEvent *ke )
+void KoAutoFormatLineEdit::keyPressEvent ( TQKeyEvent *ke )
{
- if( ke->key() == QKeyEvent::Key_Return ||
- ke->key() == QKeyEvent::Key_Enter )
+ if( ke->key() == Qt::Key_Return ||
+ ke->key() == Qt::Key_Enter )
{
emit keyReturnPressed();
return;
}
- QLineEdit::keyPressEvent (ke);
+ TQLineEdit::keyPressEvent (ke);
}
@@ -58,63 +58,63 @@ void KoAutoFormatLineEdit::keyPressEvent ( QKeyEvent *ke )
/* Class: KoAutoFormatExceptionWidget */
/******************************************************************/
-KoAutoFormatExceptionWidget::KoAutoFormatExceptionWidget(QWidget *parent, const QString &name,const QStringList &_list, bool _autoInclude, bool _abreviation)
- :QWidget( parent )
+KoAutoFormatExceptionWidget::KoAutoFormatExceptionWidget(TQWidget *tqparent, const TQString &name,const TQStringList &_list, bool _autoInclude, bool _abreviation)
+ :TQWidget( tqparent )
{
m_bAbbreviation=_abreviation;
m_listException=_list;
- QGridLayout *grid = new QGridLayout(this, 4, 2, 0, KDialog::spacingHint());
+ TQGridLayout *grid = new TQGridLayout(this, 4, 2, 0, KDialog::spacingHint());
- QLabel *lab=new QLabel(name,this);
+ TQLabel *lab=new TQLabel(name,this);
grid->addMultiCellWidget(lab,0,0,0,1);
exceptionLine = new KoAutoFormatLineEdit( this );
grid->addWidget(exceptionLine,1,0);
- connect(exceptionLine,SIGNAL(keyReturnPressed()),SLOT(slotAddException()));
- connect(exceptionLine ,SIGNAL(textChanged ( const QString & )),
- SLOT(textChanged ( const QString & )));
+ connect(exceptionLine,TQT_SIGNAL(keyReturnPressed()),TQT_SLOT(slotAddException()));
+ connect(exceptionLine ,TQT_SIGNAL(textChanged ( const TQString & )),
+ TQT_SLOT(textChanged ( const TQString & )));
- pbAddException=new QPushButton(i18n("Add"),this);
- connect(pbAddException, SIGNAL(clicked()),SLOT(slotAddException()));
+ pbAddException=new TQPushButton(i18n("Add"),this);
+ connect(pbAddException, TQT_SIGNAL(clicked()),TQT_SLOT(slotAddException()));
grid->addWidget(pbAddException,1,1);
pbAddException->setEnabled(false);
- pbRemoveException=new QPushButton(i18n("Remove"),this);
- connect(pbRemoveException, SIGNAL(clicked()),SLOT(slotRemoveException()));
- grid->addWidget(pbRemoveException,2,1,Qt::AlignTop);
+ pbRemoveException=new TQPushButton(i18n("Remove"),this);
+ connect(pbRemoveException, TQT_SIGNAL(clicked()),TQT_SLOT(slotRemoveException()));
+ grid->addWidget(pbRemoveException,2,1,TQt::AlignTop);
- exceptionList=new QListBox(this);
+ exceptionList=new TQListBox(this);
exceptionList->insertStringList(m_listException);
exceptionList->sort();
grid->addWidget(exceptionList,2,0);
grid->setRowStretch( 2, 1 );
- connect( exceptionList , SIGNAL(selectionChanged () ),
- this,SLOT(slotExceptionListSelected()) );
+ connect( exceptionList , TQT_SIGNAL(selectionChanged () ),
+ this,TQT_SLOT(slotExceptionListSelected()) );
pbRemoveException->setEnabled( exceptionList->currentItem()!=-1);
- cbAutoInclude = new QCheckBox( i18n("Autoinclude"), this );
+ cbAutoInclude = new TQCheckBox( i18n("Autoinclude"), this );
grid->addWidget(cbAutoInclude,3,0);
cbAutoInclude->setChecked( _autoInclude );
}
-void KoAutoFormatExceptionWidget::textChanged ( const QString &_text )
+void KoAutoFormatExceptionWidget::textChanged ( const TQString &_text )
{
pbAddException->setEnabled(!_text.isEmpty());
}
void KoAutoFormatExceptionWidget::slotAddException()
{
- QString text=exceptionLine->text().stripWhiteSpace();
+ TQString text=exceptionLine->text().stripWhiteSpace();
if(!text.isEmpty())
{
if(text.at(text.length()-1)!='.' && m_bAbbreviation)
text=text+".";
- if( m_listException.findIndex( text )==-1)
+ if( m_listException.tqfindIndex( text )==-1)
{
m_listException<<text;
@@ -146,7 +146,7 @@ bool KoAutoFormatExceptionWidget::autoInclude()
return cbAutoInclude->isChecked();
}
-void KoAutoFormatExceptionWidget::setListException( const QStringList &list)
+void KoAutoFormatExceptionWidget::setListException( const TQStringList &list)
{
exceptionList->clear();
exceptionList->insertStringList(list);
@@ -166,10 +166,10 @@ void KoAutoFormatExceptionWidget::slotExceptionListSelected()
/* Class: KoAutoFormatDia */
/******************************************************************/
-KoAutoFormatDia::KoAutoFormatDia( QWidget *parent, const char *name,
+KoAutoFormatDia::KoAutoFormatDia( TQWidget *tqparent, const char *name,
KoAutoFormat * autoFormat )
: KDialogBase( Tabbed, i18n("Autocorrection"), Ok | Cancel | User1, Ok,
- parent, name, true, true, KGuiItem( i18n( "&Reset" ), "undo" )),
+ tqparent, name, true, true, KGuiItem( i18n( "&Reset" ), "undo" )),
oSimpleBegin( autoFormat->getConfigTypographicSimpleQuotes().begin ),
oSimpleEnd( autoFormat->getConfigTypographicSimpleQuotes().end ),
oDoubleBegin( autoFormat->getConfigTypographicDoubleQuotes().begin ),
@@ -187,8 +187,8 @@ KoAutoFormatDia::KoAutoFormatDia( QWidget *parent, const char *name,
setupTab2();
setupTab3();
setupTab4();
- setInitialSize( QSize(500, 300) );
- connect( this, SIGNAL( user1Clicked() ), this, SLOT(slotResetConf()));
+ setInitialSize( TQSize(500, 300) );
+ connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotResetConf()));
noSignal=false;
}
@@ -220,25 +220,25 @@ void KoAutoFormatDia::slotResetConf()
void KoAutoFormatDia::setupTab1()
{
tab1 = addPage( i18n( "Simple Autocorrection" ) );
- QVBoxLayout *vbox = new QVBoxLayout(tab1, 0, KDialog::spacingHint());
+ TQVBoxLayout *vbox = new TQVBoxLayout(tab1, 0, KDialog::spacingHint());
- cbUpperCase = new QCheckBox( tab1 );
+ cbUpperCase = new TQCheckBox( tab1 );
cbUpperCase->setText( i18n(
"Convert &first letter of a sentence automatically to uppercase\n"
"(e.g. \"my house. in this town\" to \"my house. In this town\")"
) );
- QWhatsThis::add( cbUpperCase, i18n(
+ TQWhatsThis::add( cbUpperCase, i18n(
"Detect when a new sentence is started and always ensure that"
" the first character is an uppercase character."));
vbox->addWidget(cbUpperCase);
- cbUpperUpper = new QCheckBox( tab1 );
+ cbUpperUpper = new TQCheckBox( tab1 );
cbUpperUpper->setText( i18n(
"Convert &two uppercase characters to one uppercase and one"
" lowercase character\n (e.g. PErfect to Perfect)" ) );
- QWhatsThis::add( cbUpperUpper, i18n(
+ TQWhatsThis::add( cbUpperUpper, i18n(
"All words are checked for the common mistake of holding the "
"shift key down a bit too long. If some words must have two "
"uppercase characters, then those exceptions should be added in "
@@ -246,57 +246,57 @@ void KoAutoFormatDia::setupTab1()
vbox->addWidget(cbUpperUpper);
- cbDetectUrl=new QCheckBox( tab1 );
+ cbDetectUrl=new TQCheckBox( tab1 );
cbDetectUrl->setText( i18n( "Autoformat &URLs" ) );
- QWhatsThis::add( cbDetectUrl, i18n(
+ TQWhatsThis::add( cbDetectUrl, i18n(
"Detect when a URL (Uniform Resource Locator) is typed and "
"provide formatting that matches the way an Internet browser "
"would show a URL."));
vbox->addWidget(cbDetectUrl);
- cbIgnoreDoubleSpace=new QCheckBox( tab1 );
+ cbIgnoreDoubleSpace=new TQCheckBox( tab1 );
cbIgnoreDoubleSpace->setText( i18n( "&Suppress double spaces" ) );
- QWhatsThis::add( cbIgnoreDoubleSpace, i18n(
+ TQWhatsThis::add( cbIgnoreDoubleSpace, i18n(
"Make sure that more than one space cannot be typed, as this is a "
"common mistake which is quite hard to find in formatted text."));
vbox->addWidget(cbIgnoreDoubleSpace);
- cbRemoveSpaceBeginEndLine=new QCheckBox( tab1 );
+ cbRemoveSpaceBeginEndLine=new TQCheckBox( tab1 );
cbRemoveSpaceBeginEndLine->setText( i18n(
"R&emove spaces at the beginning and end of paragraphs" ) );
- QWhatsThis::add( cbRemoveSpaceBeginEndLine, i18n(
+ TQWhatsThis::add( cbRemoveSpaceBeginEndLine, i18n(
"Keep correct formatting and indenting of sentences by "
"automatically removing spaces typed at the beginning and end of "
"a paragraph."));
vbox->addWidget(cbRemoveSpaceBeginEndLine);
- cbAutoChangeFormat=new QCheckBox( tab1 );
+ cbAutoChangeFormat=new TQCheckBox( tab1 );
cbAutoChangeFormat->setText( i18n(
"Automatically do &bold and underline formatting") );
- QWhatsThis::add( cbAutoChangeFormat, i18n(
+ TQWhatsThis::add( cbAutoChangeFormat, i18n(
"When you use _underline_ or *bold*, the text between the "
"underscores or asterisks will be converted to underlined or "
"bold text.") );
vbox->addWidget(cbAutoChangeFormat);
- cbAutoReplaceNumber=new QCheckBox( tab1 );
+ cbAutoReplaceNumber=new TQCheckBox( tab1 );
cbAutoReplaceNumber->setText( i18n(
"We add the 1/2 char at the %1", "Re&place 1/2... with %1..." )
- .arg( QString( "½" ) ) );
- QWhatsThis::add( cbAutoReplaceNumber, i18n(
+ .tqarg( TQString( "�" ) ) );
+ TQWhatsThis::add( cbAutoReplaceNumber, i18n(
"Most standard fraction notations will be converted when available"
) );
vbox->addWidget(cbAutoReplaceNumber);
- cbUseNumberStyle=new QCheckBox( tab1 );
+ cbUseNumberStyle=new TQCheckBox( tab1 );
cbUseNumberStyle->setText( i18n(
"Use &autonumbering for numbered paragraphs" ) );
- QWhatsThis::add( cbUseNumberStyle, i18n(
+ TQWhatsThis::add( cbUseNumberStyle, i18n(
"When typing '1)' or similar in front of a paragraph, "
"automatically convert the paragraph to use that numbering style. "
"This has the advantage that further paragraphs will also be "
@@ -304,38 +304,38 @@ void KoAutoFormatDia::setupTab1()
vbox->addWidget(cbUseNumberStyle);
- cbAutoSuperScript = new QCheckBox( tab1 );
+ cbAutoSuperScript = new TQCheckBox( tab1 );
cbAutoSuperScript->setText( i18n("Rep&lace 1st... with 1^st..."));
cbAutoSuperScript->setEnabled( m_docAutoFormat->nbSuperScriptEntry()>0 );
vbox->addWidget(cbAutoSuperScript);
- cbCapitalizeDaysName = new QCheckBox( tab1 );
+ cbCapitalizeDaysName = new TQCheckBox( tab1 );
cbCapitalizeDaysName->setText( i18n("Capitalize name of days"));
vbox->addWidget(cbCapitalizeDaysName);
- cbUseBulletStyle=new QCheckBox( tab1 );
+ cbUseBulletStyle=new TQCheckBox( tab1 );
cbUseBulletStyle->setText( i18n(
"Use l&ist-formatting for bulleted paragraphs" ) );
- QWhatsThis::add( cbUseBulletStyle, i18n(
+ TQWhatsThis::add( cbUseBulletStyle, i18n(
"When typing '*' or '-' in front of a paragraph, automatically "
"convert the paragraph to use that list-style. Using a list-style "
"formatting means that a correct bullet is used to draw the list."
) );
- connect( cbUseBulletStyle, SIGNAL( toggled( bool ) ),
- SLOT( slotBulletStyleToggled( bool ) ) );
+ connect( cbUseBulletStyle, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( slotBulletStyleToggled( bool ) ) );
vbox->addWidget(cbUseBulletStyle);
- QHBoxLayout *hbox = new QHBoxLayout();
+ TQHBoxLayout *hbox = new TQHBoxLayout();
hbox->addSpacing( 20 );
hbox->setSpacing(KDialog::spacingHint());
- pbBulletStyle = new QPushButton( tab1 );
- pbBulletStyle->setFixedSize( pbBulletStyle->sizeHint() );
+ pbBulletStyle = new TQPushButton( tab1 );
+ pbBulletStyle->setFixedSize( pbBulletStyle->tqsizeHint() );
hbox->addWidget( pbBulletStyle );
- pbDefaultBulletStyle = new QPushButton( tab1 );
+ pbDefaultBulletStyle = new TQPushButton( tab1 );
pbDefaultBulletStyle->setText(i18n("Default"));
- pbDefaultBulletStyle->setFixedSize( pbDefaultBulletStyle->sizeHint() );
+ pbDefaultBulletStyle->setFixedSize( pbDefaultBulletStyle->tqsizeHint() );
hbox->addWidget( pbDefaultBulletStyle );
hbox->addStretch( 1 );
@@ -345,9 +345,9 @@ void KoAutoFormatDia::setupTab1()
initTab1();
- connect( pbBulletStyle, SIGNAL( clicked() ), SLOT( chooseBulletStyle() ) );
- connect( pbDefaultBulletStyle, SIGNAL( clicked()),
- SLOT( defaultBulletStyle() ) );
+ connect( pbBulletStyle, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseBulletStyle() ) );
+ connect( pbDefaultBulletStyle, TQT_SIGNAL( clicked()),
+ TQT_SLOT( defaultBulletStyle() ) );
}
void KoAutoFormatDia::initTab1()
@@ -378,27 +378,27 @@ void KoAutoFormatDia::setupTab2()
{
tab2 = addPage( i18n( "Custom Quotes" ) );
- QVBoxLayout *vbox = new QVBoxLayout(tab2, 0, KDialog::spacingHint());
+ TQVBoxLayout *vbox = new TQVBoxLayout(tab2, 0, KDialog::spacingHint());
- cbTypographicDoubleQuotes = new QCheckBox( tab2 );
+ cbTypographicDoubleQuotes = new TQCheckBox( tab2 );
cbTypographicDoubleQuotes->setText( i18n(
"Replace &double quotes with typographical quotes" ) );
- connect( cbTypographicDoubleQuotes,SIGNAL(toggled ( bool)),
- SLOT(slotChangeStateDouble(bool)));
+ connect( cbTypographicDoubleQuotes,TQT_SIGNAL(toggled ( bool)),
+ TQT_SLOT(slotChangeStateDouble(bool)));
vbox->addWidget( cbTypographicDoubleQuotes );
- QHBoxLayout *hbox = new QHBoxLayout( );
+ TQHBoxLayout *hbox = new TQHBoxLayout( );
hbox->addSpacing( 20 );
- pbDoubleQuote1 = new QPushButton( tab2 );
- pbDoubleQuote1->setFixedSize( pbDoubleQuote1->sizeHint() );
+ pbDoubleQuote1 = new TQPushButton( tab2 );
+ pbDoubleQuote1->setFixedSize( pbDoubleQuote1->tqsizeHint() );
- pbDoubleQuote2 = new QPushButton( tab2 );
- pbDoubleQuote2->setFixedSize( pbDoubleQuote2->sizeHint() );
+ pbDoubleQuote2 = new TQPushButton( tab2 );
+ pbDoubleQuote2->setFixedSize( pbDoubleQuote2->tqsizeHint() );
- if (QApplication::reverseLayout()) {
+ if (TQApplication::reverseLayout()) {
hbox->addWidget( pbDoubleQuote2 );
hbox->addWidget( pbDoubleQuote1 );
} else {
@@ -408,38 +408,38 @@ void KoAutoFormatDia::setupTab2()
hbox->addSpacing( KDialog::spacingHint() );
- pbDoubleDefault = new QPushButton( tab2 );
+ pbDoubleDefault = new TQPushButton( tab2 );
pbDoubleDefault->setText(i18n("Default"));
- pbDoubleDefault->setFixedSize( pbDoubleDefault->sizeHint() );
+ pbDoubleDefault->setFixedSize( pbDoubleDefault->tqsizeHint() );
hbox->addWidget( pbDoubleDefault );
hbox->addStretch( 1 );
- connect(pbDoubleQuote1, SIGNAL( clicked() ), SLOT( chooseDoubleQuote1() ));
- connect(pbDoubleQuote2, SIGNAL( clicked() ), SLOT( chooseDoubleQuote2() ));
- connect(pbDoubleDefault, SIGNAL( clicked()), SLOT( defaultDoubleQuote() ));
+ connect(pbDoubleQuote1, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseDoubleQuote1() ));
+ connect(pbDoubleQuote2, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseDoubleQuote2() ));
+ connect(pbDoubleDefault, TQT_SIGNAL( clicked()), TQT_SLOT( defaultDoubleQuote() ));
vbox->addItem( hbox );
- cbTypographicSimpleQuotes = new QCheckBox( tab2 );
+ cbTypographicSimpleQuotes = new TQCheckBox( tab2 );
cbTypographicSimpleQuotes->setText( i18n(
"Replace &single quotes with typographical quotes" ) );
- connect( cbTypographicSimpleQuotes,SIGNAL(toggled ( bool)),
- SLOT(slotChangeStateSimple(bool)));
+ connect( cbTypographicSimpleQuotes,TQT_SIGNAL(toggled ( bool)),
+ TQT_SLOT(slotChangeStateSimple(bool)));
vbox->addWidget( cbTypographicSimpleQuotes );
- hbox = new QHBoxLayout( );
+ hbox = new TQHBoxLayout( );
hbox->addSpacing( 20 );
- pbSimpleQuote1 = new QPushButton( tab2 );
- pbSimpleQuote1->setFixedSize( pbSimpleQuote1->sizeHint() );
+ pbSimpleQuote1 = new TQPushButton( tab2 );
+ pbSimpleQuote1->setFixedSize( pbSimpleQuote1->tqsizeHint() );
- pbSimpleQuote2 = new QPushButton( tab2 );
- pbSimpleQuote2->setFixedSize( pbSimpleQuote2->sizeHint() );
+ pbSimpleQuote2 = new TQPushButton( tab2 );
+ pbSimpleQuote2->setFixedSize( pbSimpleQuote2->tqsizeHint() );
- if (QApplication::reverseLayout()) {
+ if (TQApplication::reverseLayout()) {
hbox->addWidget( pbSimpleQuote2 );
hbox->addWidget( pbSimpleQuote1 );
} else {
@@ -449,16 +449,16 @@ void KoAutoFormatDia::setupTab2()
hbox->addSpacing( KDialog::spacingHint() );
- pbSimpleDefault = new QPushButton( tab2 );
+ pbSimpleDefault = new TQPushButton( tab2 );
pbSimpleDefault->setText(i18n("Default"));
- pbSimpleDefault->setFixedSize( pbSimpleDefault->sizeHint() );
+ pbSimpleDefault->setFixedSize( pbSimpleDefault->tqsizeHint() );
hbox->addWidget( pbSimpleDefault );
hbox->addStretch( 1 );
- connect(pbSimpleQuote1, SIGNAL( clicked() ), SLOT( chooseSimpleQuote1() ));
- connect(pbSimpleQuote2, SIGNAL( clicked() ), SLOT( chooseSimpleQuote2() ));
- connect(pbSimpleDefault, SIGNAL( clicked()), SLOT( defaultSimpleQuote() ));
+ connect(pbSimpleQuote1, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseSimpleQuote1() ));
+ connect(pbSimpleQuote2, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseSimpleQuote2() ));
+ connect(pbSimpleDefault, TQT_SIGNAL( clicked()), TQT_SLOT( defaultSimpleQuote() ));
vbox->addItem( hbox );
vbox->addStretch( 1 );
@@ -468,13 +468,13 @@ void KoAutoFormatDia::setupTab2()
void KoAutoFormatDia::initTab2()
{
- bool state=m_autoFormat.getConfigTypographicDoubleQuotes().replace;
+ bool state=m_autoFormat.getConfigTypographicDoubleQuotes().tqreplace;
cbTypographicDoubleQuotes->setChecked( state );
pbDoubleQuote1->setText( oDoubleBegin );
pbDoubleQuote2->setText(oDoubleEnd );
slotChangeStateDouble(state);
- state=m_autoFormat.getConfigTypographicSimpleQuotes().replace;
+ state=m_autoFormat.getConfigTypographicSimpleQuotes().tqreplace;
cbTypographicSimpleQuotes->setChecked( state );
pbSimpleQuote1->setText( oSimpleBegin );
pbSimpleQuote2->setText(oSimpleEnd );
@@ -486,34 +486,34 @@ void KoAutoFormatDia::setupTab3()
{
tab3 = addPage( i18n( "Advanced Autocorrection" ) );
- QLabel *lblFind, *lblReplace;
+ TQLabel *lblFind, *lblReplace;
- QGridLayout *grid = new QGridLayout( tab3, 11, 7, 0, KDialog::spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( tab3, 11, 7, 0, KDialog::spacingHint() );
- autoFormatLanguage = new QComboBox(tab3);
+ autoFormatLanguage = new TQComboBox(tab3);
- QStringList lst;
+ TQStringList lst;
lst<<i18n("Default");
lst<<i18n("All Languages");
exceptionLanguageName.insert( i18n("Default"), "");
exceptionLanguageName.insert( i18n("All Languages"), "all_languages");
KStandardDirs *standard = new KStandardDirs();
- QStringList tmp = standard->findDirs("data", "koffice/autocorrect/");
- QString path = *(tmp.end());
- for ( QStringList::Iterator it = tmp.begin(); it != tmp.end(); ++it )
+ TQStringList tmp = standard->findDirs("data", "koffice/autocorrect/");
+ TQString path = *(tmp.end());
+ for ( TQStringList::Iterator it = tmp.begin(); it != tmp.end(); ++it )
{
path =*it;
}
delete standard;
- QDir dir( path);
- tmp =dir.entryList (QDir::Files);
- for ( QStringList::Iterator it = tmp.begin(); it != tmp.end(); ++it )
+ TQDir dir( path);
+ tmp =dir.entryList (TQDir::Files);
+ for ( TQStringList::Iterator it = tmp.begin(); it != tmp.end(); ++it )
{
- if ( !(*it).contains("autocorrect"))
+ if ( !(*it).tqcontains("autocorrect"))
{
- QString readableName = KGlobal::locale()->twoAlphaToCountryName((*it).left((*it).length()-4));
- QString tmp;
+ TQString readableName = KGlobal::locale()->twoAlphaToCountryName((*it).left((*it).length()-4));
+ TQString tmp;
if ( readableName.isEmpty() )
tmp =(*it).left((*it).length()-4);
else
@@ -524,65 +524,65 @@ void KoAutoFormatDia::setupTab3()
}
autoFormatLanguage->insertStringList(lst);
- connect(autoFormatLanguage->listBox(), SIGNAL(selected ( const QString & )), this, SLOT(changeAutoformatLanguage(const QString & )));
+ connect(autoFormatLanguage->listBox(), TQT_SIGNAL(selected ( const TQString & )), this, TQT_SLOT(changeAutoformatLanguage(const TQString & )));
grid->addMultiCellWidget( autoFormatLanguage, 0, 0, 4, 6 );
- QLabel *lblAutoFormatLanguage = new QLabel( i18n("Replacements and exceptions for language:"), tab3);
+ TQLabel *lblAutoFormatLanguage = new TQLabel( i18n("Replacements and exceptions for language:"), tab3);
grid->addMultiCellWidget( lblAutoFormatLanguage, 0, 0, 0, 3 );
- cbAdvancedAutoCorrection = new QCheckBox( tab3 );
+ cbAdvancedAutoCorrection = new TQCheckBox( tab3 );
cbAdvancedAutoCorrection->setText( i18n("Enable word replacement") );
- connect( cbAdvancedAutoCorrection, SIGNAL(clicked ()), this, SLOT( slotChangeAdvancedAutoCorrection()));
+ connect( cbAdvancedAutoCorrection, TQT_SIGNAL(clicked ()), this, TQT_SLOT( slotChangeAdvancedAutoCorrection()));
grid->addMultiCellWidget( cbAdvancedAutoCorrection, 1, 1, 0, 6 );
- cbAutoCorrectionWithFormat = new QCheckBox( tab3 );
+ cbAutoCorrectionWithFormat = new TQCheckBox( tab3 );
cbAutoCorrectionWithFormat->setText( i18n("Replace text with format") );
grid->addMultiCellWidget( cbAutoCorrectionWithFormat, 2, 2, 0, 6 );
- lblFind = new QLabel( i18n( "&Find:" ), tab3 );
+ lblFind = new TQLabel( i18n( "&Find:" ), tab3 );
grid->addWidget( lblFind, 3, 0 );
- m_find = new KoAutoFormatLineEdit( tab3 );
- grid->addWidget( m_find, 3, 1 );
+ m_tqfind = new KoAutoFormatLineEdit( tab3 );
+ grid->addWidget( m_tqfind, 3, 1 );
- lblFind->setBuddy( m_find );
+ lblFind->setBuddy( m_tqfind );
- connect( m_find, SIGNAL( textChanged( const QString & ) ),
- SLOT( slotfind( const QString & ) ) );
- connect( m_find, SIGNAL( keyReturnPressed() ),
- SLOT( slotAddEntry()));
+ connect( m_tqfind, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( slottqfind( const TQString & ) ) );
+ connect( m_tqfind, TQT_SIGNAL( keyReturnPressed() ),
+ TQT_SLOT( slotAddEntry()));
- pbSpecialChar1 = new QPushButton( "...", tab3 );
- QToolTip::add( pbSpecialChar1, i18n( "Insert a special character..." ) );
+ pbSpecialChar1 = new TQPushButton( "...", tab3 );
+ TQToolTip::add( pbSpecialChar1, i18n( "Insert a special character..." ) );
pbSpecialChar1->setFixedWidth( 40 );
grid->addWidget( pbSpecialChar1, 3, 2 );
- connect(pbSpecialChar1,SIGNAL(clicked()), SLOT(chooseSpecialChar1()));
+ connect(pbSpecialChar1,TQT_SIGNAL(clicked()), TQT_SLOT(chooseSpecialChar1()));
- lblReplace = new QLabel( i18n( "&Replace:" ), tab3 );
+ lblReplace = new TQLabel( i18n( "&Replace:" ), tab3 );
grid->addWidget( lblReplace, 3, 3 );
- m_replace = new KoAutoFormatLineEdit( tab3 );
- grid->addWidget( m_replace, 3, 4 );
+ m_tqreplace = new KoAutoFormatLineEdit( tab3 );
+ grid->addWidget( m_tqreplace, 3, 4 );
- lblReplace->setBuddy( m_replace );
+ lblReplace->setBuddy( m_tqreplace );
- connect( m_replace, SIGNAL( textChanged( const QString & ) ),
- SLOT( slotfind2( const QString & ) ) );
- connect( m_replace, SIGNAL( keyReturnPressed() ),
- SLOT( slotAddEntry()));
+ connect( m_tqreplace, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( slottqfind2( const TQString & ) ) );
+ connect( m_tqreplace, TQT_SIGNAL( keyReturnPressed() ),
+ TQT_SLOT( slotAddEntry()));
- pbSpecialChar2 = new QPushButton( "...", tab3 );
- QToolTip::add( pbSpecialChar2, i18n( "Insert a special character..." ) );
+ pbSpecialChar2 = new TQPushButton( "...", tab3 );
+ TQToolTip::add( pbSpecialChar2, i18n( "Insert a special character..." ) );
pbSpecialChar2->setFixedWidth( 40 );
grid->addWidget( pbSpecialChar2, 3, 5 );
- connect(pbSpecialChar2,SIGNAL(clicked()), SLOT(chooseSpecialChar2()));
+ connect(pbSpecialChar2,TQT_SIGNAL(clicked()), TQT_SLOT(chooseSpecialChar2()));
- pbAdd = new QPushButton( i18n( "&Add"), tab3 );
+ pbAdd = new TQPushButton( i18n( "&Add"), tab3 );
grid->addWidget( pbAdd, 3, 6 );
- connect(pbAdd,SIGNAL(clicked()),this, SLOT(slotAddEntry()));
+ connect(pbAdd,TQT_SIGNAL(clicked()),this, TQT_SLOT(slotAddEntry()));
m_pListView = new KListView( tab3 );
m_pListView->addColumn( i18n( "Find" ) );
@@ -590,25 +590,25 @@ void KoAutoFormatDia::setupTab3()
m_pListView->setAllColumnsShowFocus( true );
grid->addMultiCellWidget( m_pListView, 4, 10, 0, 5 );
- connect(m_pListView, SIGNAL(doubleClicked ( QListViewItem * )),
- SLOT(slotChangeTextFormatEntry()) );
- connect(m_pListView, SIGNAL(clicked ( QListViewItem * ) ),
- SLOT(slotEditEntry()) );
+ connect(m_pListView, TQT_SIGNAL(doubleClicked ( TQListViewItem * )),
+ TQT_SLOT(slotChangeTextFormatEntry()) );
+ connect(m_pListView, TQT_SIGNAL(clicked ( TQListViewItem * ) ),
+ TQT_SLOT(slotEditEntry()) );
- pbRemove = new QPushButton( i18n( "Remove" ), tab3 );
- grid->addWidget( pbRemove, 4, 6, Qt::AlignTop );
+ pbRemove = new TQPushButton( i18n( "Remove" ), tab3 );
+ grid->addWidget( pbRemove, 4, 6, TQt::AlignTop );
- connect(pbRemove,SIGNAL(clicked()), SLOT(slotRemoveEntry()));
+ connect(pbRemove,TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveEntry()));
- pbChangeFormat= new QPushButton( i18n( "Change Format..." ), tab3 );
- grid->addWidget( pbChangeFormat, 5, 6, Qt::AlignTop );
+ pbChangeFormat= new TQPushButton( i18n( "Change Format..." ), tab3 );
+ grid->addWidget( pbChangeFormat, 5, 6, TQt::AlignTop );
- connect( pbChangeFormat, SIGNAL(clicked()), SLOT(slotChangeTextFormatEntry()));
+ connect( pbChangeFormat, TQT_SIGNAL(clicked()), TQT_SLOT(slotChangeTextFormatEntry()));
- pbClearFormat= new QPushButton( i18n( "Clear Format" ), tab3 );
- grid->addWidget( pbClearFormat, 6, 6, Qt::AlignTop );
+ pbClearFormat= new TQPushButton( i18n( "Clear Format" ), tab3 );
+ grid->addWidget( pbClearFormat, 6, 6, TQt::AlignTop );
- connect( pbClearFormat, SIGNAL(clicked()), SLOT(slotClearTextFormatEntry()));
+ connect( pbClearFormat, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearTextFormatEntry()));
grid->setRowStretch( 10, 1 );
initTab3();
@@ -652,10 +652,10 @@ void KoAutoFormatDia::initTab3()
cbAutoCorrectionWithFormat->setChecked( m_autoFormat.getConfigCorrectionWithFormat());
m_pListView->clear();
- QDictIterator<KoAutoFormatEntry> it( m_docAutoFormat->getAutoFormatEntries());
+ TQDictIterator<KoAutoFormatEntry> it( m_docAutoFormat->getAutoFormatEntries());
for( ; it.current(); ++it )
{
- ( void )new QListViewItem( m_pListView, it.currentKey(), it.current()->replace() );
+ ( void )new TQListViewItem( m_pListView, it.currentKey(), it.current()->tqreplace() );
}
}
@@ -665,12 +665,12 @@ void KoAutoFormatDia::slotChangeAdvancedAutoCorrection()
cbAutoCorrectionWithFormat->setEnabled( state );
pbSpecialChar2->setEnabled( state );
pbSpecialChar1->setEnabled( state );
- m_replace->setEnabled( state);
- m_find->setEnabled( state);
+ m_tqreplace->setEnabled( state);
+ m_tqfind->setEnabled( state);
m_pListView->setEnabled( state);
- state = state && !m_replace->text().isEmpty() && !m_find->text().isEmpty();
- KoAutoFormatEntry * entry=m_docAutoFormat->findFormatEntry(m_find->text());
+ state = state && !m_tqreplace->text().isEmpty() && !m_tqfind->text().isEmpty();
+ KoAutoFormatEntry * entry=m_docAutoFormat->findFormatEntry(m_tqfind->text());
pbRemove->setEnabled(state && entry);
pbChangeFormat->setEnabled(state && entry);
pbClearFormat->setEnabled(state && entry);
@@ -678,13 +678,13 @@ void KoAutoFormatDia::slotChangeAdvancedAutoCorrection()
}
-void KoAutoFormatDia::changeAutoformatLanguage(const QString & text)
+void KoAutoFormatDia::changeAutoformatLanguage(const TQString & text)
{
if ( text==i18n("Default"))
- m_docAutoFormat->configAutoFormatLanguage( QString::null);
+ m_docAutoFormat->configAutoFormatLanguage( TQString());
else
{
- m_docAutoFormat->configAutoFormatLanguage( exceptionLanguageName.find(text).data());
+ m_docAutoFormat->configAutoFormatLanguage( exceptionLanguageName.tqfind(text).data());
}
if ( !noSignal )
{
@@ -708,7 +708,7 @@ void KoAutoFormatDia::changeAutoformatLanguage(const QString & text)
void KoAutoFormatDia::setupTab4()
{
tab4 = addPage( i18n( "Exceptions" ) );
- QVBoxLayout *vbox = new QVBoxLayout(tab4, 0, KDialog::spacingHint());
+ TQVBoxLayout *vbox = new TQVBoxLayout(tab4, 0, KDialog::spacingHint());
abbreviation=new KoAutoFormatExceptionWidget(tab4,
i18n("Do not treat as the end of a sentence:"),
@@ -765,10 +765,10 @@ void KoAutoFormatDia::slotChangeTextFormatEntry()
KoAutoFormatEntry *entry = 0L;
if ( addNewEntry )
{
- if ( m_replace->text().isEmpty() )
+ if ( m_tqreplace->text().isEmpty() )
return;
if ( !newEntry )
- newEntry = new KoAutoFormatEntry( m_replace->text());
+ newEntry = new KoAutoFormatEntry( m_tqreplace->text());
entry =newEntry;
}
else
@@ -813,28 +813,28 @@ void KoAutoFormatDia::slotRemoveEntry()
}
-void KoAutoFormatDia::slotfind( const QString & )
+void KoAutoFormatDia::slottqfind( const TQString & )
{
- KoAutoFormatEntry *entry = m_docAutoFormat->findFormatEntry(m_find->text());
+ KoAutoFormatEntry *entry = m_docAutoFormat->findFormatEntry(m_tqfind->text());
if ( entry )
{
- m_replace->setText(entry->replace().latin1());
+ m_tqreplace->setText(entry->tqreplace().latin1());
pbAdd->setText(i18n("&Modify"));
- m_pListView->setCurrentItem(m_pListView->findItem(m_find->text(),0));
+ m_pListView->setCurrentItem(m_pListView->tqfindItem(m_tqfind->text(),0));
} else {
- m_replace->clear();
+ m_tqreplace->clear();
pbAdd->setText(i18n("&Add"));
m_pListView->setCurrentItem(0L);
}
- slotfind2("");
+ slottqfind2("");
}
-void KoAutoFormatDia::slotfind2( const QString & )
+void KoAutoFormatDia::slottqfind2( const TQString & )
{
- bool state = !m_replace->text().isEmpty() && !m_find->text().isEmpty();
- KoAutoFormatEntry * entry=m_docAutoFormat->findFormatEntry(m_find->text());
+ bool state = !m_tqreplace->text().isEmpty() && !m_tqfind->text().isEmpty();
+ KoAutoFormatEntry * entry=m_docAutoFormat->findFormatEntry(m_tqfind->text());
pbRemove->setEnabled(state && entry);
if ( state && entry )
{
@@ -850,13 +850,13 @@ void KoAutoFormatDia::slotfind2( const QString & )
void KoAutoFormatDia::refreshEntryList()
{
m_pListView->clear();
- QDictIterator<KoAutoFormatEntry> it( m_docAutoFormat->getAutoFormatEntries());
+ TQDictIterator<KoAutoFormatEntry> it( m_docAutoFormat->getAutoFormatEntries());
for( ; it.current(); ++it )
{
- ( void )new QListViewItem( m_pListView, it.currentKey(), it.current()->replace() );
+ ( void )new TQListViewItem( m_pListView, it.currentKey(), it.current()->tqreplace() );
}
m_pListView->setCurrentItem(m_pListView->firstChild ());
- bool state = !(m_replace->text().isEmpty()) && !(m_find->text().isEmpty());
+ bool state = !(m_tqreplace->text().isEmpty()) && !(m_tqfind->text().isEmpty());
//we can delete item, as we search now in listbox and not in m_find lineedit
pbRemove->setEnabled(m_pListView->currentItem() && m_pListView->selectedItem()!=0 );
pbChangeFormat->setEnabled(state && m_pListView->currentItem() && m_pListView->selectedItem()!=0 );
@@ -866,14 +866,14 @@ void KoAutoFormatDia::refreshEntryList()
}
-void KoAutoFormatDia::addEntryList(const QString &key, KoAutoFormatEntry *_autoEntry)
+void KoAutoFormatDia::addEntryList(const TQString &key, KoAutoFormatEntry *_autoEntry)
{
m_docAutoFormat->addAutoFormatEntry( key, _autoEntry );
}
-void KoAutoFormatDia::editEntryList(const QString &key,const QString &newFindString, KoAutoFormatEntry *_autoEntry)
+void KoAutoFormatDia::editEntryList(const TQString &key,const TQString &newFindString, KoAutoFormatEntry *_autoEntry)
{
if ( m_docAutoFormat->findFormatEntry(key) && m_docAutoFormat->findFormatEntry(key)->formatEntryContext())
_autoEntry->setFormatEntryContext( new KoSearchContext(*(m_docAutoFormat->findFormatEntry(key)->formatEntryContext()) ));
@@ -886,14 +886,14 @@ void KoAutoFormatDia::slotAddEntry()
{
if(!pbAdd->isEnabled())
return;
- QString repl = m_replace->text();
- QString find = m_find->text();
- if(repl.isEmpty() || find.isEmpty())
+ TQString repl = m_tqreplace->text();
+ TQString tqfind = m_tqfind->text();
+ if(repl.isEmpty() || tqfind.isEmpty())
{
KMessageBox::sorry( 0L, i18n( "An area is empty" ) );
return;
}
- if(repl==find)
+ if(repl==tqfind)
{
KMessageBox::sorry( 0L, i18n( "Find string is the same as replace string!" ) );
return;
@@ -904,18 +904,18 @@ void KoAutoFormatDia::slotAddEntry()
{
if ( newEntry )
{
- newEntry->changeReplace( m_replace->text());
- addEntryList(find, newEntry);
+ newEntry->changeReplace( m_tqreplace->text());
+ addEntryList(tqfind, newEntry);
delete tmp;
newEntry = 0L;
}
else
- addEntryList(find, tmp);
+ addEntryList(tqfind, tmp);
}
else
- editEntryList(find, find, tmp);
- m_replace->clear();
- m_find->clear();
+ editEntryList(tqfind, tqfind, tmp);
+ m_tqreplace->clear();
+ m_tqfind->clear();
refreshEntryList();
autocorrectionEntryChanged= true;
@@ -924,42 +924,42 @@ void KoAutoFormatDia::slotAddEntry()
void KoAutoFormatDia::chooseSpecialChar1()
{
- QString f = font().family();
- QChar c = ' ';
- bool const focus = m_find->hasFocus();
+ TQString f = font().family();
+ TQChar c = ' ';
+ bool const focus = m_tqfind->hasFocus();
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
- int const cursorpos = m_find->cursorPosition();
+ int const cursorpos = m_tqfind->cursorPosition();
if (focus)
- m_find->setText( m_find->text().insert( cursorpos, c ) );
+ m_tqfind->setText( m_tqfind->text().insert( cursorpos, c ) );
else
- m_find->setText( m_find->text().append(c) );
- m_find->setCursorPosition( cursorpos+1 );
+ m_tqfind->setText( m_tqfind->text().append(c) );
+ m_tqfind->setCursorPosition( cursorpos+1 );
}
}
void KoAutoFormatDia::chooseSpecialChar2()
{
- QString f = font().family();
- QChar c = ' ';
- bool const focus = m_replace->hasFocus();
+ TQString f = font().family();
+ TQChar c = ' ';
+ bool const focus = m_tqreplace->hasFocus();
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
- int const cursorpos = m_replace->cursorPosition();
+ int const cursorpos = m_tqreplace->cursorPosition();
if (focus)
- m_replace->setText( m_replace->text().insert(m_replace->cursorPosition(), c ) );
+ m_tqreplace->setText( m_tqreplace->text().insert(m_tqreplace->cursorPosition(), c ) );
else
- m_replace->setText( m_replace->text().append(c) );
- m_replace->setCursorPosition( cursorpos+1 );
+ m_tqreplace->setText( m_tqreplace->text().append(c) );
+ m_tqreplace->setCursorPosition( cursorpos+1 );
}
}
-void KoAutoFormatDia::slotItemRenamed(QListViewItem *, const QString & , int )
+void KoAutoFormatDia::slotItemRenamed(TQListViewItem *, const TQString & , int )
{
// Wow. This need a redesign (we don't have the old key anymore at this point !)
- // -> inherit QListViewItem and store the KoAutoFormatEntry pointer in it.
+ // -> inherit TQListViewItem and store the KoAutoFormatEntry pointer in it.
}
@@ -969,9 +969,9 @@ void KoAutoFormatDia::slotEditEntry()
return;
delete newEntry;
newEntry=0L;
- m_find->setText(m_pListView->currentItem()->text(0));
- m_replace->setText(m_pListView->currentItem()->text(1));
- bool state = !m_replace->text().isEmpty() && !m_find->text().isEmpty();
+ m_tqfind->setText(m_pListView->currentItem()->text(0));
+ m_tqreplace->setText(m_pListView->currentItem()->text(1));
+ bool state = !m_tqreplace->text().isEmpty() && !m_tqfind->text().isEmpty();
pbRemove->setEnabled(state);
pbChangeFormat->setEnabled( state );
pbClearFormat->setEnabled(state);
@@ -983,13 +983,13 @@ bool KoAutoFormatDia::applyConfig()
{
// First tab
KoAutoFormat::TypographicQuotes tq = m_autoFormat.getConfigTypographicSimpleQuotes();
- tq.replace = cbTypographicSimpleQuotes->isChecked();
+ tq.tqreplace = cbTypographicSimpleQuotes->isChecked();
tq.begin = pbSimpleQuote1->text()[ 0 ];
tq.end = pbSimpleQuote2->text()[ 0 ];
m_docAutoFormat->configTypographicSimpleQuotes( tq );
tq = m_autoFormat.getConfigTypographicDoubleQuotes();
- tq.replace = cbTypographicDoubleQuotes->isChecked();
+ tq.tqreplace = cbTypographicDoubleQuotes->isChecked();
tq.begin = pbDoubleQuote1->text()[ 0 ];
tq.end = pbDoubleQuote2->text()[ 0 ];
m_docAutoFormat->configTypographicDoubleQuotes( tq );
@@ -1024,9 +1024,9 @@ bool KoAutoFormatDia::applyConfig()
m_docAutoFormat->configIncludeTwoUpperUpperLetterException( twoUpperLetter->autoInclude());
m_docAutoFormat->configIncludeAbbreviation( abbreviation->autoInclude());
- QString lang = exceptionLanguageName.find(autoFormatLanguage->currentText()).data();
+ TQString lang = exceptionLanguageName.tqfind(autoFormatLanguage->currentText()).data();
if ( lang == i18n("Default") )
- m_docAutoFormat->configAutoFormatLanguage(QString::null);
+ m_docAutoFormat->configAutoFormatLanguage(TQString());
else
m_docAutoFormat->configAutoFormatLanguage(lang);
@@ -1056,8 +1056,8 @@ void KoAutoFormatDia::slotCancel()
void KoAutoFormatDia::chooseDoubleQuote1()
{
- QString f = font().family();
- QChar c = oDoubleBegin;
+ TQString f = font().family();
+ TQChar c = oDoubleBegin;
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
pbDoubleQuote1->setText( c );
@@ -1067,8 +1067,8 @@ void KoAutoFormatDia::chooseDoubleQuote1()
void KoAutoFormatDia::chooseDoubleQuote2()
{
- QString f = font().family();
- QChar c = oDoubleEnd;
+ TQString f = font().family();
+ TQChar c = oDoubleEnd;
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
pbDoubleQuote2->setText( c );
@@ -1084,8 +1084,8 @@ void KoAutoFormatDia::defaultDoubleQuote()
void KoAutoFormatDia::chooseSimpleQuote1()
{
- QString f = font().family();
- QChar c = oSimpleBegin;
+ TQString f = font().family();
+ TQChar c = oSimpleBegin;
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
pbSimpleQuote1->setText( c );
@@ -1094,8 +1094,8 @@ void KoAutoFormatDia::chooseSimpleQuote1()
void KoAutoFormatDia::chooseSimpleQuote2()
{
- QString f = font().family();
- QChar c = oSimpleEnd;
+ TQString f = font().family();
+ TQChar c = oSimpleEnd;
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
pbSimpleQuote2->setText( c );
@@ -1112,8 +1112,8 @@ void KoAutoFormatDia::defaultSimpleQuote()
void KoAutoFormatDia::chooseBulletStyle()
{
- QString f = font().family();
- QChar c = bulletStyle;
+ TQString f = font().family();
+ TQChar c = bulletStyle;
if ( KoCharSelectDia::selectChar( f, c, false ) )
{
pbBulletStyle->setText( c );