summaryrefslogtreecommitdiffstats
path: root/kword
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 11:54:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-16 23:37:57 +0900
commitef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch)
tree03df826633e4ba084d133ca977c4fc37c74f21ac /kword
parent895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff)
downloadkoffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz
koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kword')
-rw-r--r--kword/KWCanvas.cpp24
-rw-r--r--kword/KWCanvas.h2
-rw-r--r--kword/KWConfigFootNoteDia.cpp2
-rw-r--r--kword/KWEditPersonnalExpression.cpp2
-rw-r--r--kword/KWFootNoteDia.cpp2
-rw-r--r--kword/KWFrame.cpp4
-rw-r--r--kword/KWFrameDia.cpp8
-rw-r--r--kword/KWFrameSet.cpp2
-rw-r--r--kword/KWFrameStyleManager.cpp4
-rw-r--r--kword/KWInsertPageDia.cpp2
-rw-r--r--kword/KWPictureFrameSet.cpp4
-rw-r--r--kword/KWSortDia.cpp2
-rw-r--r--kword/KWTableStyleManager.cpp2
-rw-r--r--kword/KWTableTemplateSelector.cpp2
-rw-r--r--kword/KWTextFrameSet.cpp14
-rw-r--r--kword/KWView.cpp6
-rw-r--r--kword/dtd/kword.dtd6
17 files changed, 44 insertions, 44 deletions
diff --git a/kword/KWCanvas.cpp b/kword/KWCanvas.cpp
index 6dc6bbb3..fb0889f6 100644
--- a/kword/KWCanvas.cpp
+++ b/kword/KWCanvas.cpp
@@ -413,13 +413,13 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
KoPoint docPoint = m_doc->unzoomPoint( normalPoint );
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
{
m_mousePressed = true;
}
// Only edit-mode (and only LMB) allowed on read-only documents (to select text)
- if ( !m_doc->isReadWrite() && ( m_mouseMode != MM_EDIT || e->button() != Qt::LeftButton ) )
+ if ( !m_doc->isReadWrite() && ( m_mouseMode != MM_EDIT || e->button() != TQt::LeftButton ) )
return;
if ( m_printing )
return;
@@ -450,7 +450,7 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
// RMB inside a frame unselects too, except when
// right-clicking on a selected frame
KWFrameView *view = m_frameViewManager->view( docPoint, KWFrameViewManager::frameOnTop );
- if ( ! ( e->button() == Qt::RightButton && view && view->selected() ) )
+ if ( ! ( e->button() == TQt::RightButton && view && view->selected() ) )
selectAllFrames( false );
KWFrame * frame = view ? view->frame() : 0L;
@@ -529,18 +529,18 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
break;
case MM_CREATE_TEXT: case MM_CREATE_PART: case MM_CREATE_TABLE:
case MM_CREATE_FORMULA:
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
mpCreate( normalPoint, e->state() & TQt::ShiftButton);
break;
case MM_CREATE_PIX:
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
mpCreatePixmap( normalPoint, e->state() & TQt::ShiftButton );
break;
default: break;
}
m_scrollTimer->start( 50 );
- if ( e->button() == Qt::MidButton ) {
+ if ( e->button() == TQt::MidButton ) {
if ( m_doc->isReadWrite() && m_currentFrameSetEdit && m_mouseMode == MM_EDIT )
{
TQApplication::clipboard()->setSelectionMode( true );
@@ -548,7 +548,7 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
TQApplication::clipboard()->setSelectionMode( false );
}
}
- else if ( e->button() == Qt::RightButton ) {
+ else if ( e->button() == TQt::RightButton ) {
if(!m_doc->isReadWrite()) // The popups are not available in readonly mode, since the GUI isn't built...
return;
if ( m_deleteMovingRect )
@@ -1816,10 +1816,10 @@ bool KWCanvas::eventFilter( TQObject *o, TQEvent *e )
TQPoint vP = m_viewMode->normalToView(normalPoint);
TQPoint gP = mapToGlobal(vP);
TQMouseEvent mevPress(TQEvent::MouseButtonPress, vP,
- gP, Qt::LeftButton, 0);
+ gP, TQt::LeftButton, 0);
contentsMousePressEvent(&mevPress);
TQMouseEvent mevRelease(TQEvent::MouseButtonRelease, vP,
- gP, Qt::LeftButton, 0);
+ gP, TQt::LeftButton, 0);
contentsMouseReleaseEvent(&mevRelease);
}
else if ( keyev->key() == TQt::Key_Escape ) {
@@ -2062,13 +2062,13 @@ InteractionPolicy::InteractionPolicy(KWCanvas *parent, bool doInit, bool include
}
InteractionPolicy* InteractionPolicy::createPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState) {
- if(buttonState & Qt::LeftButton || buttonState & Qt::RightButton) {
+ if(buttonState & TQt::LeftButton || buttonState & TQt::RightButton) {
// little inner class to make sure we don't duplicate code
class Selector {
public:
Selector(KWCanvas *canvas, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState) :
m_canvas(canvas), m_point(point), m_state(keyState) {
- m_leftClick = buttonState & Qt::LeftButton;
+ m_leftClick = buttonState & TQt::LeftButton;
KWFrameView *view = canvas->frameViewManager()->view(point,
KWFrameViewManager::frameOnTop);
m_doSomething = (view && !view->selected());
@@ -2445,7 +2445,7 @@ void FrameMovePolicy::finishInteraction() {
FrameSelectPolicy::FrameSelectPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState)
: InteractionPolicy(parent, false) {
- bool leftButton = buttonState & Qt::LeftButton;
+ bool leftButton = buttonState & TQt::LeftButton;
// this is a special case; if a frame that is curently being edited is 'selected' on the border
// we redirect that click to the text part of the frame.
// this means we give the user a lot more space to click on the left side of the frame to
diff --git a/kword/KWCanvas.h b/kword/KWCanvas.h
index cab23b9c..3538fac1 100644
--- a/kword/KWCanvas.h
+++ b/kword/KWCanvas.h
@@ -408,7 +408,7 @@ class InteractionPolicy {
* @param parent the parent canvas for things like redraw commands.
* @param meaning the mouseMeaning of as it is at 'point'
* @param point the place where the mouseDown is registred.
- * @param buttonState which button is used to click, like Qt::LeftButton
+ * @param buttonState which button is used to click, like TQt::LeftButton
* @param keyState which keys are held down at the click, like TQt::ControlButton
*/
static InteractionPolicy* createPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState);
diff --git a/kword/KWConfigFootNoteDia.cpp b/kword/KWConfigFootNoteDia.cpp
index 236c7357..0efe2000 100644
--- a/kword/KWConfigFootNoteDia.cpp
+++ b/kword/KWConfigFootNoteDia.cpp
@@ -80,7 +80,7 @@ void KWConfigFootNoteDia::setupTab3()
comment= i18n ("The separator can be positioned horizontally by picking one "
"of the three alignments.");
TQWhatsThis::add(positionGroupBox, comment);
- positionGroupBox->setColumnLayout(0, Qt::Vertical );
+ positionGroupBox->setColumnLayout(0, TQt::Vertical );
TQVBoxLayout *positionLayout = new TQVBoxLayout( positionGroupBox->layout() );
positionLayout->setAlignment( TQt::AlignTop );
diff --git a/kword/KWEditPersonnalExpression.cpp b/kword/KWEditPersonnalExpression.cpp
index dd612b75..eaa7982e 100644
--- a/kword/KWEditPersonnalExpression.cpp
+++ b/kword/KWEditPersonnalExpression.cpp
@@ -53,7 +53,7 @@ KWEditPersonnalExpression::KWEditPersonnalExpression( TQWidget *parent, const ch
TQGroupBox *expressionGroupBox = new TQGroupBox( page, "expressionGroupBox" );
expressionGroupBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, expressionGroupBox->sizePolicy().hasHeightForWidth() ) );
expressionGroupBox->setTitle( i18n( "Expressions" ) );
- expressionGroupBox->setColumnLayout(0, Qt::Vertical );
+ expressionGroupBox->setColumnLayout(0, TQt::Vertical );
expressionGroupBox->layout()->setSpacing( KDialog::spacingHint() );
expressionGroupBox->layout()->setMargin( KDialog::marginHint() );
TQVBoxLayout *expressionGroupBoxLayout = new TQVBoxLayout( expressionGroupBox->layout() );
diff --git a/kword/KWFootNoteDia.cpp b/kword/KWFootNoteDia.cpp
index 4d9ec80b..9214038a 100644
--- a/kword/KWFootNoteDia.cpp
+++ b/kword/KWFootNoteDia.cpp
@@ -65,7 +65,7 @@ KWFootNoteDia::KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering
grid->addWidget( m_footLine, 2, 1);
- grp = new TQButtonGroup( 4, Qt::Vertical, page );
+ grp = new TQButtonGroup( 4, TQt::Vertical, page );
m_rbFootNote = new TQRadioButton( i18n("&Footnote"), grp );
m_rbEndNote = new TQRadioButton( i18n("&Endnote"), grp );
diff --git a/kword/KWFrame.cpp b/kword/KWFrame.cpp
index e1cdb9d8..e591bd9b 100644
--- a/kword/KWFrame.cpp
+++ b/kword/KWFrame.cpp
@@ -422,7 +422,7 @@ void KWFrame::load( TQDomElement &frameElem, KWFrameSet* frameSet, int syntaxVer
if( frameElem.hasAttribute("bkStyle"))
- m_backgroundColor.setStyle (static_cast<Qt::BrushStyle>(KWDocument::getAttribute( frameElem, "bkStyle", TQt::SolidPattern )));
+ m_backgroundColor.setStyle (static_cast<TQt::BrushStyle>(KWDocument::getAttribute( frameElem, "bkStyle", TQt::SolidPattern )));
m_paddingLeft = frameElem.attribute( "bleftpt" ).toDouble();
m_paddingRight = frameElem.attribute( "brightpt" ).toDouble();
@@ -456,7 +456,7 @@ void KWFrame::loadBorderProperties( KoStyleStack& styleStack )
if ( styleStack.hasAttributeNS( KoXmlNS::fo, "background-transparency" ) ) {
TQString transp = styleStack.attributeNS( KoXmlNS::fo, "background-transparency" );
if ( transp == "100%" )
- m_backgroundColor.setStyle( Qt::NoBrush );
+ m_backgroundColor.setStyle( TQt::NoBrush );
}
// borders (3.11.27)
diff --git a/kword/KWFrameDia.cpp b/kword/KWFrameDia.cpp
index 66ef91b2..a74fc3e3 100644
--- a/kword/KWFrameDia.cpp
+++ b/kword/KWFrameDia.cpp
@@ -613,7 +613,7 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround
// First groupbox
m_runGroup = new TQButtonGroup( i18n( "Layout of Text in Other Frames" ), m_tab2);
- m_runGroup->setColumnLayout( 0, Qt::Vertical );
+ m_runGroup->setColumnLayout( 0, TQt::Vertical );
m_runGroup->layout()->setSpacing( KDialog::spacingHint() );
TQGridLayout *groupBox1Layout = new TQGridLayout( m_runGroup->layout() );
groupBox1Layout->setAlignment( TQt::AlignTop );
@@ -649,7 +649,7 @@ void KWFrameDia::setupTab2() { // TAB Text Runaround
// Second groupbox
m_runSideGroup = new TQButtonGroup( i18n( "Run Around Side" ), m_tab2);
- m_runSideGroup->setColumnLayout( 0, Qt::Vertical );
+ m_runSideGroup->setColumnLayout( 0, TQt::Vertical );
m_runSideGroup->layout()->setSpacing( KDialog::spacingHint() );
m_runSideGroup->layout()->setMargin( KDialog::marginHint() );
TQGridLayout *runSideLayout = new TQGridLayout( m_runSideGroup->layout() );
@@ -1288,7 +1288,7 @@ void KWFrameDia::setupTab6() // Border style
initBorderSettings();
- TQGroupBox *grp=new TQGroupBox( 0, Qt::Vertical, i18n( "Preview" ), m_tab6, "previewgrp" );
+ TQGroupBox *grp=new TQGroupBox( 0, TQt::Vertical, i18n( "Preview" ), m_tab6, "previewgrp" );
grid->addMultiCellWidget( grp , 0, 7, 1, 1 );
grp->layout()->setSpacing(KDialog::spacingHint());
grp->layout()->setMargin(KDialog::marginHint());
@@ -1561,7 +1561,7 @@ TQBrush KWFrameDia::frameBrushStyle() const
{
TQBrush brush;
- brush.setStyle( m_transparentCB->isChecked() ? Qt::NoBrush : Qt::SolidPattern );
+ brush.setStyle( m_transparentCB->isChecked() ? TQt::NoBrush : TQt::SolidPattern );
#if 0
switch ( brushStyle->currentItem() )
diff --git a/kword/KWFrameSet.cpp b/kword/KWFrameSet.cpp
index 1195815a..d612be05 100644
--- a/kword/KWFrameSet.cpp
+++ b/kword/KWFrameSet.cpp
@@ -260,7 +260,7 @@ void KWFrameSet::drawFrameBorder( TQPainter *painter, KWFrame *frame, KWFrame *s
// ...except when printing, or embedded doc, or disabled.
if ( !viewMode || !viewMode->drawFrameBorders() )
{
- viewSetting = TQPen(Qt::NoPen);
+ viewSetting = TQPen(TQt::NoPen);
minBorder = 0;
}
diff --git a/kword/KWFrameStyleManager.cpp b/kword/KWFrameStyleManager.cpp
index f3c81135..dddfbac9 100644
--- a/kword/KWFrameStyleManager.cpp
+++ b/kword/KWFrameStyleManager.cpp
@@ -234,7 +234,7 @@ void KWFrameStyleManager::addGeneralTab()
tabLayout->setSpacing( KDialog::spacingHint() );
tabLayout->setMargin( KDialog::marginHint() );
- previewBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Preview" ), tab );
+ previewBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Preview" ), tab );
previewBox->layout()->setSpacing(KDialog::spacingHint());
previewBox->layout()->setMargin(KDialog::marginHint());
TQGridLayout *previewLayout = new TQGridLayout( previewBox->layout() );
@@ -568,7 +568,7 @@ KWFrameStyleBackgroundTab::KWFrameStyleBackgroundTab( TQWidget * parent )
: KWFrameStyleManagerTab( parent )
{
bgwidget = this;
- m_backgroundColor.setStyle( Qt::SolidPattern );
+ m_backgroundColor.setStyle( TQt::SolidPattern );
grid = new TQGridLayout( bgwidget, 7, 2, KDialog::marginHint(), KDialog::spacingHint() );
diff --git a/kword/KWInsertPageDia.cpp b/kword/KWInsertPageDia.cpp
index 1a818cb3..97fb081d 100644
--- a/kword/KWInsertPageDia.cpp
+++ b/kword/KWInsertPageDia.cpp
@@ -32,7 +32,7 @@ KWInsertPageDia::KWInsertPageDia( TQWidget *parent, const char* name )
{
TQVBox *page = makeVBoxMainWidget();
- TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Insert Page" ),page );
+ TQButtonGroup *grp = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Insert Page" ),page );
grp->setRadioButtonExclusive( TRUE );
grp->layout();
m_after = new TQRadioButton( i18n("After"), grp );
diff --git a/kword/KWPictureFrameSet.cpp b/kword/KWPictureFrameSet.cpp
index 62f8ce2c..c79c1f5c 100644
--- a/kword/KWPictureFrameSet.cpp
+++ b/kword/KWPictureFrameSet.cpp
@@ -184,7 +184,7 @@ void KWPictureFrameSet::loadOasis( const TQDomElement& frame, const TQDomElement
{
TQCString data = binaryData.toElement().text().latin1();
m_picture.loadFromBase64( data );
- key = KoPictureKey("nofile", TQDateTime::currentDateTime(Qt::UTC));
+ key = KoPictureKey("nofile", TQDateTime::currentDateTime(TQt::UTC));
m_picture.setKey(key);
}
else
@@ -199,7 +199,7 @@ void KWPictureFrameSet::loadOasis( const TQDomElement& frame, const TQDomElement
strExtension=href.mid(result+1); // As we are using KoPicture, the extension should be without the dot.
}
TQString filename(href/*.mid(1)*/);
- key = KoPictureKey(filename, TQDateTime::currentDateTime(Qt::UTC));
+ key = KoPictureKey(filename, TQDateTime::currentDateTime(TQt::UTC));
m_picture.setKey(key);
KoStore* store = context.store();
diff --git a/kword/KWSortDia.cpp b/kword/KWSortDia.cpp
index 9fab03f9..9a8c5ecf 100644
--- a/kword/KWSortDia.cpp
+++ b/kword/KWSortDia.cpp
@@ -32,7 +32,7 @@ KWSortDia::KWSortDia( TQWidget *parent, const char* name )
{
TQVBox *page = makeVBoxMainWidget();
- TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Sort" ),page );
+ TQButtonGroup *grp = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Sort" ),page );
grp->setRadioButtonExclusive( TRUE );
grp->layout();
m_increase = new TQRadioButton( i18n("Increase"), grp );
diff --git a/kword/KWTableStyleManager.cpp b/kword/KWTableStyleManager.cpp
index 915042b8..64e9ba13 100644
--- a/kword/KWTableStyleManager.cpp
+++ b/kword/KWTableStyleManager.cpp
@@ -292,7 +292,7 @@ void KWTableStyleManager::setupMain()
mainLayout->addWidget( nameLabel, 0, 0 );
- TQGroupBox *adjustBox = new TQGroupBox( 0, Qt::Vertical, i18n("Adjust"), main);
+ TQGroupBox *adjustBox = new TQGroupBox( 0, TQt::Vertical, i18n("Adjust"), main);
adjustBox->layout()->setSpacing(KDialog::spacingHint());
adjustBox->layout()->setMargin(KDialog::marginHint());
TQGridLayout *adjustLayout = new TQGridLayout( adjustBox->layout() );
diff --git a/kword/KWTableTemplateSelector.cpp b/kword/KWTableTemplateSelector.cpp
index 476fb9b9..cff93a81 100644
--- a/kword/KWTableTemplateSelector.cpp
+++ b/kword/KWTableTemplateSelector.cpp
@@ -572,7 +572,7 @@ KWTableTemplateSelector::KWTableTemplateSelector( KWDocument *_doc, TQWidget *_p
preview = new KWTableTemplatePreview( i18n( "Preview" ), m_doc->tableStyleCollection()->findStyle("Plain"), this );
grid->addWidget( preview, 0, 1 );
- bgCustomize = new TQButtonGroup( 3,Qt::Horizontal, i18n( "Apply To" ), this );
+ bgCustomize = new TQButtonGroup( 3,TQt::Horizontal, i18n( "Apply To" ), this );
cbFirstRow = new TQCheckBox( i18n( "First row" ), bgCustomize );
cbLastRow = new TQCheckBox( i18n( "Last row" ), bgCustomize );
diff --git a/kword/KWTextFrameSet.cpp b/kword/KWTextFrameSet.cpp
index c2e668be..195ecd5d 100644
--- a/kword/KWTextFrameSet.cpp
+++ b/kword/KWTextFrameSet.cpp
@@ -531,19 +531,19 @@ void KWTextFrameSet::drawContents( TQPainter *p, const TQRect & crect, const TQC
switch( m_doc->footNoteSeparatorLineType())
{
case SLT_SOLID:
- pen.setStyle( Qt::SolidLine );
+ pen.setStyle( TQt::SolidLine );
break;
case SLT_DASH:
- pen.setStyle( Qt::DashLine );
+ pen.setStyle( TQt::DashLine );
break;
case SLT_DOT:
- pen.setStyle( Qt::DotLine );
+ pen.setStyle( TQt::DotLine );
break;
case SLT_DASH_DOT:
- pen.setStyle( Qt::DashDotLine );
+ pen.setStyle( TQt::DashDotLine );
break;
case SLT_DASH_DOT_DOT:
- pen.setStyle( Qt::DashDotDotLine );
+ pen.setStyle( TQt::DashDotDotLine );
break;
}
p->setPen( pen );
@@ -3408,7 +3408,7 @@ void KWTextFrameSetEdit::keyPressEvent( TQKeyEvent* e )
// Handle moving into inline frames (e.g. formula frames).
if ( !( e->state() & ControlButton ) && !( e->state() & ShiftButton ) )
{
- if (e->state() != Qt::NoButton)
+ if (e->state() != TQt::NoButton)
removeToolTipCompletion();
switch ( e->key() ) {
case Key_Left: {
@@ -3508,7 +3508,7 @@ void KWTextFrameSetEdit::mousePressEvent( TQMouseEvent *e, const TQPoint &, cons
}
// else mightStartDrag = FALSE; necessary?
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
KoVariable* var = variable();
if ( var )
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 7100a562..633e0f3d 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -7599,7 +7599,7 @@ KWGUI::KWGUI( const TQString& viewMode, TQWidget *parent, KWView *daView )
m_vertRuler = 0;
// The splitter
- m_panner = new TQSplitter( Qt::Horizontal, this );
+ m_panner = new TQSplitter( TQt::Horizontal, this );
// The left side
m_docStruct = new KWDocStruct( m_panner, doc, this );
@@ -7622,13 +7622,13 @@ KWGUI::KWGUI( const TQString& viewMode, TQWidget *parent, KWView *daView )
m_tabChooser->setReadWrite(doc->isReadWrite());
gridLayout->addWidget( m_tabChooser, 0, 0 );
- m_horRuler = new KoRuler( m_right, m_canvas->viewport(), Qt::Horizontal, layout,
+ m_horRuler = new KoRuler( m_right, m_canvas->viewport(), TQt::Horizontal, layout,
KoRuler::F_INDENTS | KoRuler::F_TABS,
doc->unit(), m_tabChooser );
m_horRuler->setReadWrite(doc->isReadWrite());
gridLayout->addWidget( m_horRuler, 0, 1 );
- m_vertRuler = new KoRuler( m_right, m_canvas->viewport(), Qt::Vertical, layout,
+ m_vertRuler = new KoRuler( m_right, m_canvas->viewport(), TQt::Vertical, layout,
0, doc->unit() );
m_vertRuler->setReadWrite(doc->isReadWrite());
gridLayout->addWidget( m_vertRuler, 1, 0 );
diff --git a/kword/dtd/kword.dtd b/kword/dtd/kword.dtd
index 1011ef63..b0ccef2d 100644
--- a/kword/dtd/kword.dtd
+++ b/kword/dtd/kword.dtd
@@ -911,9 +911,9 @@ don't put a </?xml...> at the end of the file!).
display-levels Number of levels to display (e.g. 3 means "1.2.1")
align Counter alignment. Possible values include:
- int(Qt::AlignAuto), //left for LTR text and right for RTL text
- int(Qt::AlignLeft),
- int(Qt::AlignRight).
+ int(TQt::AlignAuto), //left for LTR text and right for RTL text
+ int(TQt::AlignLeft),
+ int(TQt::AlignRight).
-->
<!ELEMENT COUNTER
EMPTY>