summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-01 01:31:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-01 01:31:56 -0600
commit2ca85d336093fd44a5effafbc44dde7edd4e30ec (patch)
treeca18ed733e273279bab574978806068e506c241a
parent5b3b788b3748893e44b482b11bf83f045a6bc2c7 (diff)
downloadtqscintilla-2ca85d33.tar.gz
tqscintilla-2ca85d33.zip
Fix FTBFS
-rw-r--r--designer/designer.pro2
-rw-r--r--designer/qscintillaplugin.cpp4
-rw-r--r--qt/ScintillaQt.cpp2
-rw-r--r--qt/qextscintillabase.cpp12
-rwxr-xr-xsrc/Editor.h2
5 files changed, 11 insertions, 11 deletions
diff --git a/designer/designer.pro b/designer/designer.pro
index 4c8d722..78d1fce 100644
--- a/designer/designer.pro
+++ b/designer/designer.pro
@@ -4,7 +4,7 @@
TEMPLATE = lib
TARGET = qscintillaplugin
# DESTDIR = $(QTDIR)/plugins/designer
-INCLUDEPATH = ../qt
+INCLUDEPATH = ../qt /usr/include/tqt
LIBPATH += ../tmplib
CONFIG += qt warn_on release plugin
diff --git a/designer/qscintillaplugin.cpp b/designer/qscintillaplugin.cpp
index cd2b042..f93b61d 100644
--- a/designer/qscintillaplugin.cpp
+++ b/designer/qscintillaplugin.cpp
@@ -1,9 +1,9 @@
// This implements the TQScintilla plugin for TQt Designer.
-#include <tqwidgetplugin.h>
+#include <qwidgetplugin.h>
-#include "../tqt/qextscintilla.h"
+#include "../qt/qextscintilla.h"
static const char *qscintilla_pixmap[]={
diff --git a/qt/ScintillaQt.cpp b/qt/ScintillaQt.cpp
index 519e65e..322f300 100644
--- a/qt/ScintillaQt.cpp
+++ b/qt/ScintillaQt.cpp
@@ -30,7 +30,7 @@
#include <tqpainter.h>
#include "qextscintillabase.h"
-#include "ScintillaTQt.h"
+#include "ScintillaQt.h"
// We want to use the Scintilla notification names as TQt signal names.
diff --git a/qt/qextscintillabase.cpp b/qt/qextscintillabase.cpp
index 4f51877..aa58b9e 100644
--- a/qt/qextscintillabase.cpp
+++ b/qt/qextscintillabase.cpp
@@ -31,7 +31,7 @@
#include <tqptrlist.h>
#include "qextscintillabase.h"
-#include "ScintillaTQt.h"
+#include "ScintillaQt.h"
// The #defines in Scintilla.h and the enums in qextscintillabase.h conflict
@@ -80,11 +80,11 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
txtarea -> setFocusProxy(this);
tqlayout -> addWidget(txtarea,0,0);
- vsb = new TQScrollBarQt::Vertical,this);
+ vsb = new TQScrollBar(Qt::Vertical,this);
tqlayout -> addWidget(vsb,0,1);
connect(vsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleVSb(int)));
- hsb = new TQScrollBarQt::Horizontal,this);
+ hsb = new TQScrollBar(Qt::Horizontal,this);
tqlayout -> addWidget(hsb,1,0);
connect(hsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleHSb(int)));
@@ -386,9 +386,9 @@ void QextScintillaBase::mouseWheel(TQWheelEvent *we)
{
setFocus();
- if (we -> orientation() ==Qt::Horizontal || we -> state() & ShiftButton)
+ if (we -> orientation() == Qt::Horizontal || we -> state() & ShiftButton)
TQApplication::sendEvent(hsb,we);
- else if (we -> orientation() ==Qt::Vertical)
+ else if (we -> orientation() == Qt::Vertical)
TQApplication::sendEvent(vsb,we);
}
@@ -558,7 +558,7 @@ void QextScintillaBase::handleVSb(int val)
// Handle the horizontal scrollbar.
void QextScintillaBase::handleHSb(int val)
{
- sci ->Qt::HorizontalScrollTo(val);
+ sci ->HorizontalScrollTo(val);
}
diff --git a/src/Editor.h b/src/Editor.h
index d5abdbd..7dca342 100755
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -368,7 +368,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void ScrollTo(int line, bool moveThumb=true);
virtual void ScrollText(int linesToMove);
- voidQt::HorizontalScrollTo(int xPos);
+ void HorizontalScrollTo(int xPos);
void MoveCaretInsideView(bool ensureVisible=true);
int DisplayFromPosition(int pos);
void EnsureCaretVisible(bool useMargin=true, bool vert=true, bool horiz=true);