diff options
Diffstat (limited to 'qt/qextscintillalexerproperties.cpp')
-rw-r--r-- | qt/qextscintillalexerproperties.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/qt/qextscintillalexerproperties.cpp b/qt/qextscintillalexerproperties.cpp index fb35123..914b1ff 100644 --- a/qt/qextscintillalexerproperties.cpp +++ b/qt/qextscintillalexerproperties.cpp @@ -3,32 +3,32 @@ // Copyright (c) 2006 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> // -// This file is part of QScintilla. +// This file is part of TQScintilla. // -// This copy of QScintilla is free software; you can redistribute it and/or +// This copy of TQScintilla is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2, or (at your option) any // later version. // -// QScintilla is supplied in the hope that it will be useful, but WITHOUT ANY +// TQScintilla is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// QScintilla; see the file LICENSE. If not, write to the Free Software +// TQScintilla; see the file LICENSE. If not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include <qcolor.h> -#include <qfont.h> -#include <qsettings.h> +#include <tqcolor.h> +#include <tqfont.h> +#include <tqsettings.h> -#include "qextscintillalexerproperties.h" +#include "tqextscintillalexerproperties.h" // The ctor. -QextScintillaLexerProperties::QextScintillaLexerProperties(QObject *parent,const char *name) +QextScintillaLexerProperties::QextScintillaLexerProperties(TQObject *parent,const char *name) : QextScintillaLexer(parent,name), fold_compact(TRUE) { } @@ -57,26 +57,26 @@ const char *QextScintillaLexerProperties::lexer() const // Return the string of characters that comprise a word. const char *QextScintillaLexerProperties::wordCharacters() const { - return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; + return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ-"; } // Returns the foreground colour of the text for a style. -QColor QextScintillaLexerProperties::color(int style) const +TQColor QextScintillaLexerProperties::color(int style) const { switch (style) { case Comment: - return QColor(0x00,0x7f,0x7f); + return TQColor(0x00,0x7f,0x7f); case Section: - return QColor(0x7f,0x00,0x7f); + return TQColor(0x7f,0x00,0x7f); case Assignment: - return QColor(0xb0,0x60,0x00); + return TQColor(0xb0,0x60,0x00); case DefaultValue: - return QColor(0x7f,0x7f,0x00); + return TQColor(0x7f,0x7f,0x00); } return QextScintillaLexer::color(style); @@ -91,15 +91,15 @@ bool QextScintillaLexerProperties::eolFill(int style) const // Returns the font of the text for a style. -QFont QextScintillaLexerProperties::font(int style) const +TQFont QextScintillaLexerProperties::font(int style) const { - QFont f; + TQFont f; if (style == Comment) #if defined(Q_OS_WIN) - f = QFont("Comic Sans MS",9); + f = TQFont("Comic Sans MS",9); #else - f = QFont("Bitstream Vera Serif",9); + f = TQFont("Bitstream Vera Serif",9); #endif else f = QextScintillaLexer::font(style); @@ -109,7 +109,7 @@ QFont QextScintillaLexerProperties::font(int style) const // Returns the user name of a style. -QString QextScintillaLexerProperties::description(int style) const +TQString QextScintillaLexerProperties::description(int style) const { switch (style) { @@ -129,15 +129,15 @@ QString QextScintillaLexerProperties::description(int style) const return tr("Default value"); } - return QString::null; + return TQString(); } // Returns the background colour of the text for a style. -QColor QextScintillaLexerProperties::paper(int style) const +TQColor QextScintillaLexerProperties::paper(int style) const { if (style == Section) - return QColor(0xe0,0xf0,0xf0); + return TQColor(0xe0,0xf0,0xf0); return QextScintillaLexer::paper(style); } @@ -151,7 +151,7 @@ void QextScintillaLexerProperties::refreshProperties() // Read properties from the settings. -bool QextScintillaLexerProperties::readProperties(QSettings &qs,const QString &prefix) +bool QextScintillaLexerProperties::readProperties(TQSettings &qs,const TQString &prefix) { int rc = TRUE; bool ok, flag; @@ -169,7 +169,7 @@ bool QextScintillaLexerProperties::readProperties(QSettings &qs,const QString &p // Write properties to the settings. -bool QextScintillaLexerProperties::writeProperties(QSettings &qs,const QString &prefix) const +bool QextScintillaLexerProperties::writeProperties(TQSettings &qs,const TQString &prefix) const { int rc = TRUE; |