summaryrefslogtreecommitdiffabout
path: root/microkde/ktextedit.cpp
Side-by-side diff
Diffstat (limited to 'microkde/ktextedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/ktextedit.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/microkde/ktextedit.cpp b/microkde/ktextedit.cpp
index 4dd6875..d74706b 100644
--- a/microkde/ktextedit.cpp
+++ b/microkde/ktextedit.cpp
@@ -4,2 +4,4 @@
#include <qpe/qpeapplication.h>
+//Added by qt3to4:
+#include <QMouseEvent>
#endif
@@ -7,3 +9,3 @@
-KTextEdit::KTextEdit ( QWidget *parent ) : QMultiLineEdit( parent )
+KTextEdit::KTextEdit ( QWidget *parent ) : Q3MultiLineEdit( parent )
{
@@ -19,3 +21,3 @@ void KTextEdit::mousePressEvent(QMouseEvent *e)
{
- if ( e->button() == LeftButton ) {
+ if ( e->button() == Qt::LeftButton ) {
mAllowPopupMenu = true;
@@ -24,5 +26,5 @@ void KTextEdit::mousePressEvent(QMouseEvent *e)
}
- if ( e->button() == RightButton && !mAllowPopupMenu )
+ if ( e->button() == Qt::RightButton && !mAllowPopupMenu )
return;
- if ( e->button() == LeftButton ) {
+ if ( e->button() == Qt::LeftButton ) {
if ( hasMarkedText () )
@@ -34,3 +36,3 @@ void KTextEdit::mousePressEvent(QMouseEvent *e)
}
- QMultiLineEdit::mousePressEvent( e );
+ Q3MultiLineEdit::mousePressEvent( e );
}
@@ -39,3 +41,3 @@ void KTextEdit::mouseReleaseEvent(QMouseEvent *e)
{
- QMultiLineEdit::mouseReleaseEvent(e);
+ Q3MultiLineEdit::mouseReleaseEvent(e);
}
@@ -50,3 +52,3 @@ void KTextEdit::mouseMoveEvent(QMouseEvent *e)
mAllowPopupMenu = false;
- QMultiLineEdit::mouseMoveEvent(e);
+ Q3MultiLineEdit::mouseMoveEvent(e);
}