summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillabase.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:08:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:08:48 -0600
commitb3566a6c6754f013b55063c28b90995be612da96 (patch)
treedd590262fefe39114300e6d376b68df0b435c0f2 /qt/qextscintillabase.cpp
parent1aef904f94a86fecbc71888bc94a790ff36f0403 (diff)
downloadtqscintilla-b3566a6c6754f013b55063c28b90995be612da96.tar.gz
tqscintilla-b3566a6c6754f013b55063c28b90995be612da96.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'qt/qextscintillabase.cpp')
-rw-r--r--qt/qextscintillabase.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/qt/qextscintillabase.cpp b/qt/qextscintillabase.cpp
index 2131ab6..5aaa7b1 100644
--- a/qt/qextscintillabase.cpp
+++ b/qt/qextscintillabase.cpp
@@ -70,7 +70,7 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
{
sci = 0;
- TQGridLayout *tqlayout = new TQGridLayout(this,2,2);
+ TQGridLayout *layout = new TQGridLayout(this,2,2);
txtarea = new TQWidget(this,0,WRepaintNoErase|WResizeNoErase);
txtarea -> setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding));
@@ -78,14 +78,14 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
txtarea -> setAcceptDrops(TRUE);
txtarea -> setFocusPolicy(WheelFocus);
txtarea -> setFocusProxy(this);
- tqlayout -> addWidget(txtarea,0,0);
+ layout -> addWidget(txtarea,0,0);
vsb = new TQScrollBar(Qt::Vertical,this);
- tqlayout -> addWidget(vsb,0,1);
+ layout -> addWidget(vsb,0,1);
connect(vsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleVSb(int)));
hsb = new TQScrollBar(Qt::Horizontal,this);
- tqlayout -> addWidget(hsb,1,0);
+ layout -> addWidget(hsb,1,0);
connect(hsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleHSb(int)));
txtarea -> installEventFilter(this);
@@ -104,7 +104,7 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
lexersLinked = TRUE;
}
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
if (cb -> supportsSelection())
connect(cb,TQT_SIGNAL(selectionChanged()),TQT_SLOT(handleSelection()));
@@ -329,7 +329,7 @@ void QextScintillaBase::mousePress(TQMouseEvent *me)
case MidButton:
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
if (cb -> supportsSelection())
{
@@ -488,7 +488,7 @@ void QextScintillaBase::keyPressEvent(TQKeyEvent *ke)
// key.
if (ke -> text().length() == 1)
{
- if ((key = ke -> text()[0].tqunicode()) >= 0x80)
+ if ((key = ke -> text()[0].unicode()) >= 0x80)
key = 0;
}
else
@@ -577,6 +577,6 @@ TQSize QextScintillaBase::sizeHint() const
// Handle the selection changing.
void QextScintillaBase::handleSelection()
{
- if (!TQApplication::tqclipboard() -> ownsSelection())
+ if (!TQApplication::clipboard() -> ownsSelection())
sci -> UnclaimSelection();
}