diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/qtregexphighlighter.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/qtregexphighlighter.cpp')
-rw-r--r-- | kregexpeditor/qtregexphighlighter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kregexpeditor/qtregexphighlighter.cpp b/kregexpeditor/qtregexphighlighter.cpp index 1983b89..fdf3a81 100644 --- a/kregexpeditor/qtregexphighlighter.cpp +++ b/kregexpeditor/qtregexphighlighter.cpp @@ -16,15 +16,15 @@ * Boston, MA 02110-1301, USA. **/ #include "qtregexphighlighter.h" -#include <qregexp.h> -QtRegexpHighlighter::QtRegexpHighlighter( QTextEdit* editor ) +#include <tqregexp.h> +QtRegexpHighlighter::QtRegexpHighlighter( TQTextEdit* editor ) :RegexpHighlighter( editor ), _editor( editor ) { } -int QtRegexpHighlighter::highlightParagraph( const QString & text, int endStateOfLastPara ) +int QtRegexpHighlighter::highlightParagraph( const TQString & text, int endStateOfLastPara ) { - QRegExp regexp( _regexp ); + TQRegExp regexp( _regexp ); regexp.setCaseSensitive( _caseSensitive ); regexp.setMinimal( _minimal ); @@ -35,7 +35,7 @@ int QtRegexpHighlighter::highlightParagraph( const QString & text, int endStateO } // ------------------------------ Process with the regular expression. - QColor colors[] = { Qt::red, Qt::blue }; + TQColor colors[] = { Qt::red, Qt::blue }; int color = endStateOfLastPara; if ( color < 0 || color > 1 ) color = 0; @@ -55,7 +55,7 @@ int QtRegexpHighlighter::highlightParagraph( const QString & text, int endStateO if ( start != index ) setFormat( index, start-index, colors[color] ); - QFont font = _editor->font(); + TQFont font = _editor->font(); font.setUnderline( true ); font.setPointSize( (int) (font.pointSize() * 1.3) ); setFormat( start, length, font, colors[color] ); |