From 8e1816900bb891be1f9e1268e2971d2e151e23a9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 27 Aug 2023 21:28:15 +0900 Subject: Drop USE_TQT4 code Signed-off-by: Michele Calgaro (cherry picked from commit 014f6d2586905e03681aa6fb9a85c2c8190e53f4) --- konsole/konsole/TEWidget.cpp | 4 ---- konsole/konsole/konsole.h | 2 +- konsole/konsole/schema.h | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'konsole') diff --git a/konsole/konsole/TEWidget.cpp b/konsole/konsole/TEWidget.cpp index 88b5c8dce..0d0b11994 100644 --- a/konsole/konsole/TEWidget.cpp +++ b/konsole/konsole/TEWidget.cpp @@ -636,11 +636,7 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect, if (pm) paint.setBackgroundMode( Qt::TransparentMode ); if (clear || (blinking && (attr->r & RE_BLINK))) { -#ifdef USE_QT4 - paint.eraseRect(rect); -#else // USE_QT4 erase(rect); -#endif // USE_QT4 } } else diff --git a/konsole/konsole/konsole.h b/konsole/konsole/konsole.h index 43ef2203e..95e99cdcd 100644 --- a/konsole/konsole/konsole.h +++ b/konsole/konsole/konsole.h @@ -297,7 +297,7 @@ private: TQPtrDict session2action; TQPtrList sessions; - TQIntDict no2command; //QT4 - convert to QList + TQIntDict no2command; KSimpleConfig* m_defaultSession; TQString m_defaultSessionFilename; diff --git a/konsole/konsole/schema.h b/konsole/konsole/schema.h index 618683c17..c32f26221 100644 --- a/konsole/konsole/schema.h +++ b/konsole/konsole/schema.h @@ -187,10 +187,6 @@ public: uint count() const { return TQPtrList::count(); } ; const ColorSchema *at(unsigned int i) { return TQPtrList::at(i); } ; -#ifdef USE_QT4 - const ColorSchema *at(unsigned int i) - { return at(i); } ; -#endif // USE_QT4 void sort() {TQPtrList::sort();}; -- cgit v1.2.1