From 7c3b44b81086c6b99f91e294c3b438dc808b47e2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro <michele.calgaro@yahoo.it> Date: Thu, 24 Aug 2023 21:28:39 +0900 Subject: Drop USE_QT4 code Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31) --- src/kvilib/tal/kvi_tal_toolbar.cpp | 47 -------------------------------------- 1 file changed, 47 deletions(-) (limited to 'src/kvilib/tal/kvi_tal_toolbar.cpp') diff --git a/src/kvilib/tal/kvi_tal_toolbar.cpp b/src/kvilib/tal/kvi_tal_toolbar.cpp index 393b15d6..914825fe 100644 --- a/src/kvilib/tal/kvi_tal_toolbar.cpp +++ b/src/kvilib/tal/kvi_tal_toolbar.cpp @@ -41,52 +41,6 @@ #else - #ifdef COMPILE_USE_QT4 - - KviTalToolBar::KviTalToolBar(const TQString &label,TQMainWindow *w,TQT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) - //: Q3ToolBar(label,w,dock,bNewLine,nam) - : TQToolBar(label,w) - { - //setFrameStyle(TQFrame::NoFrame); - setObjectName(nam); - if(!layout()) - this->setLayout(new TQBoxLayout(TQBoxLayout::LeftToRight)); - w->addToolBar(dock,this); - } - KviTalToolBar::KviTalToolBar(TQMainWindow *w,const char * name) - : TQToolBar(w) - { - //setFrameStyle(TQFrame::NoFrame); - setObjectName(name); - if(!layout()) - this->setLayout(new TQBoxLayout(TQBoxLayout::LeftToRight)); - w->addToolBar(this); - } - - TQBoxLayout * KviTalToolBar::boxLayout() - { - return (TQBoxLayout*)this->layout(); - } - - void KviTalToolBar::setBoxLayout(TQBoxLayout * l) - { - this->setLayout(l); - } - - bool KviTalToolBar::usesBigPixmaps() - { - return (iconSize().width() > 40); - } - - void KviTalToolBar::setUsesBigPixmaps(bool b) - { - if(b)setIconSize(TQSize(48,48)); - else setIconSize(TQSize(22,22)); - } - - #include "kvi_tal_toolbar_qt4.moc" - - #else KviTalToolBar::KviTalToolBar(const TQString &label,TQMainWindow *w,TQT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) : TQToolBar(label,w,dock,bNewLine,nam) { @@ -97,7 +51,6 @@ } #include "kvi_tal_toolbar_qt3.moc" - #endif KviTalToolBar::~KviTalToolBar() { -- cgit v1.2.1