From 7c3b44b81086c6b99f91e294c3b438dc808b47e2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 24 Aug 2023 21:28:39 +0900 Subject: Drop USE_QT4 code Signed-off-by: Michele Calgaro (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31) --- src/modules/objects/class_tabwidget.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/modules/objects/class_tabwidget.cpp') diff --git a/src/modules/objects/class_tabwidget.cpp b/src/modules/objects/class_tabwidget.cpp index 3b768217..33d77841 100644 --- a/src/modules/objects/class_tabwidget.cpp +++ b/src/modules/objects/class_tabwidget.cpp @@ -216,11 +216,7 @@ bool KviKvsObject_tabwidget::functionaddTab(KviKvsObjectFunctionCall *c) TQPixmap * pix = g_pIconManager->getImage(szIcon); if(pix){ -#ifdef COMPILE_USE_QT4 - ((TQTabWidget *)widget())->addTab(((TQWidget *)(ob->object())),TQIconSet(*pix),szLabel); -#else ((TQTabWidget *)widget())->addTab(((TQWidget *)(ob->object())),TQIconSet(*pix,TQIconSet::Small),szLabel); -#endif } else((TQTabWidget *)widget())->addTab(((TQWidget *)(ob->object())),szLabel); return true; @@ -257,11 +253,7 @@ bool KviKvsObject_tabwidget::functioninsertTab(KviKvsObjectFunctionCall *c) } TQPixmap * pix = g_pIconManager->getImage(szIcon); if(pix){ - #ifdef COMPILE_USE_QT4 - ((TQTabWidget *)widget())->insertTab( ((TQWidget *)(ob->object())),TQIconSet(*pix),szLabel,uIndex); - #else ((TQTabWidget *)widget())->insertTab(((TQWidget *)(ob->object())),TQIconSet(*pix,TQIconSet::Small),szLabel,uIndex); - #endif } else ((TQTabWidget *)widget())->insertTab(((TQWidget *)(ob->object())),szLabel,uIndex); return true; @@ -499,11 +491,7 @@ bool KviKvsObject_tabwidget::functionchangeTab(KviKvsObjectFunctionCall *c) } TQPixmap * pix = g_pIconManager->getImage(szIcon); if(pix){ - #ifdef COMPILE_USE_QT4 - ((TQTabWidget *)widget())->changeTab(((TQWidget *)(ob->object())),TQIconSet(*pix),szLabel); - #else ((TQTabWidget *)widget())->changeTab(((TQWidget *)(ob->object())),TQIconSet(*pix,TQIconSet::Small),szLabel); - #endif } else ((TQTabWidget *)widget())->changeTab(((TQWidget *)(ob->object())),szLabel); return true; -- cgit v1.2.1