summaryrefslogtreecommitdiffstats
path: root/qt/PlatQt.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-21 14:08:48 -0600
committerTimothy Pearson <[email protected]>2011-12-21 14:08:48 -0600
commitb3566a6c6754f013b55063c28b90995be612da96 (patch)
treedd590262fefe39114300e6d376b68df0b435c0f2 /qt/PlatQt.cpp
parent1aef904f94a86fecbc71888bc94a790ff36f0403 (diff)
downloadtqscintilla-b3566a6c6754f013b55063c28b90995be612da96.tar.gz
tqscintilla-b3566a6c6754f013b55063c28b90995be612da96.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'qt/PlatQt.cpp')
-rw-r--r--qt/PlatQt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt/PlatQt.cpp b/qt/PlatQt.cpp
index 1f09377..3b563c6 100644
--- a/qt/PlatQt.cpp
+++ b/qt/PlatQt.cpp
@@ -194,7 +194,7 @@ public:
void SetClip(PRectangle rc);
void FlushCachedState() {painter -> flush();}
- void SetUnicodeMode(bool tqunicodeMode_) {tqunicodeMode = tqunicodeMode_;}
+ void SetUnicodeMode(bool unicodeMode_) {unicodeMode = unicodeMode_;}
void SetDBCSMode(int codePage) {}
void DrawXPM(PRectangle rc,const XPM *xpm);
@@ -207,7 +207,7 @@ private:
static TQColor convertTQColor(const ColourAllocated &col,
unsigned alpha = 0xff);
- bool tqunicodeMode;
+ bool unicodeMode;
bool mypainter;
TQPainter *painter;
};
@@ -217,7 +217,7 @@ Surface *Surface::Allocate()
return new SurfaceImpl;
}
-SurfaceImpl::SurfaceImpl() : tqunicodeMode(false), mypainter(false), painter(0)
+SurfaceImpl::SurfaceImpl() : unicodeMode(false), mypainter(false), painter(0)
{
}
@@ -448,7 +448,7 @@ void SurfaceImpl::MeasureWidths(Font &font_,const char *s,int len,
{
totalWidth += fm.width(qs[i]);
- int l = (tqunicodeMode ? TQString(qs[i]).utf8().length() : 1);
+ int l = (unicodeMode ? TQString(qs[i]).utf8().length() : 1);
while (l--)
positions[ui++] = totalWidth;
@@ -533,7 +533,7 @@ bool SurfaceImpl::setFont(Font &font_)
// Convert a Scintilla string to a TQt Unicode string.
TQString SurfaceImpl::convertText(const char *s,int len)
{
- if (tqunicodeMode)
+ if (unicodeMode)
return TQString::fromUtf8(s,len);
TQString qs;