summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/syntaxhighlighter_html.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/syntaxhighlighter_html.cpp')
-rw-r--r--kdevdesigner/designer/syntaxhighlighter_html.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdevdesigner/designer/syntaxhighlighter_html.cpp b/kdevdesigner/designer/syntaxhighlighter_html.cpp
index 76443305..baa6a9f5 100644
--- a/kdevdesigner/designer/syntaxhighlighter_html.cpp
+++ b/kdevdesigner/designer/syntaxhighlighter_html.cpp
@@ -2,15 +2,15 @@
**
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
-** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
-** licenses may use this file in accordance with the Qt Commercial License
+** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition
+** licenses may use this file in accordance with the TQt Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
@@ -18,7 +18,7 @@
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
-** information about Qt Commercial License Agreements.
+** information about TQt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
@@ -32,27 +32,27 @@
SyntaxHighlighter_HTML::SyntaxHighlighter_HTML()
- : QTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
+ : TQTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
- addFormat(Standard, new QTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
- addFormat(Keyword, new QTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
- addFormat(Attribute, new QTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
- addFormat(AttribValue, new QTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
+ addFormat(Standard, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
+ addFormat(Keyword, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
+ addFormat(Attribute, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
+ addFormat(AttribValue, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
}
SyntaxHighlighter_HTML::~SyntaxHighlighter_HTML()
{
}
-void SyntaxHighlighter_HTML::process( QTextDocument *doc, QTextParagraph *string, int, bool invalidate )
+void SyntaxHighlighter_HTML::process( TQTextDocument *doc, TQTextParagraph *string, int, bool tqinvalidate )
{
- QTextFormat *formatStandard = format( Standard );
- QTextFormat *formatKeyword = format( Keyword );
- QTextFormat *formatAttribute = format( Attribute );
- QTextFormat *formatAttribValue = format( AttribValue );
+ TQTextFormat *formatStandard = format( Standard );
+ TQTextFormat *formatKeyword = format( Keyword );
+ TQTextFormat *formatAttribute = format( Attribute );
+ TQTextFormat *formatAttribValue = format( AttribValue );
const int StateStandard = 0;
const int StateTag = 1;
@@ -131,9 +131,9 @@ void SyntaxHighlighter_HTML::process( QTextDocument *doc, QTextParagraph *string
string->setEndState( state );
string->setFirstPreProcess( FALSE );
- if ( invalidate && string->next() &&
+ if ( tqinvalidate && string->next() &&
!string->next()->firstPreProcess() && string->next()->endState() != -1 ) {
- QTextParagraph *p = string->next();
+ TQTextParagraph *p = string->next();
while ( p ) {
if ( p->endState() == -1 )
return;
@@ -143,18 +143,18 @@ void SyntaxHighlighter_HTML::process( QTextDocument *doc, QTextParagraph *string
}
}
-QTextFormat *SyntaxHighlighter_HTML::format( int id )
+TQTextFormat *SyntaxHighlighter_HTML::format( int id )
{
if ( lastFormatId == id && lastFormat )
return lastFormat;
- QTextFormat *f = formats[ id ];
+ TQTextFormat *f = formats[ id ];
lastFormat = f ? f : formats[ 0 ];
lastFormatId = id;
return lastFormat;
}
-void SyntaxHighlighter_HTML::addFormat( int id, QTextFormat *f )
+void SyntaxHighlighter_HTML::addFormat( int id, TQTextFormat *f )
{
formats.insert( id, f );
}