From c6f6aa86d3d66887d4a8384b87dca8f8b26e65b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 23 Feb 2024 19:24:48 +0900 Subject: [PATCH] Remove unused files/code Signed-off-by: Michele Calgaro --- acinclude.m4 | 163 ++----------------- krecipes/krecipes.tdevelop | 182 ---------------------- krecipes/src/dialogs/dietwizarddialog.cpp | 83 ++-------- krecipes/src/widgets/kremenu.cpp | 8 - krecipes/src/widgets/paneldeco.cpp | 8 - krecipes/templates/cpp | 9 -- krecipes/templates/h | 9 -- stamp-h.in | 0 8 files changed, 29 insertions(+), 433 deletions(-) delete mode 100644 krecipes/krecipes.tdevelop delete mode 100644 krecipes/templates/cpp delete mode 100644 krecipes/templates/h delete mode 100644 stamp-h.in diff --git a/acinclude.m4 b/acinclude.m4 index 7e75fe1..acc1c4b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -476,11 +476,7 @@ if test "$1" = "default"; then kde_servicetypesdir='\${datadir}/servicetypes' fi if test -z "$kde_moduledir"; then - if test "$kde_qtver" = "2"; then - kde_moduledir='\${libdir}/kde2' - else - kde_moduledir='\${libdir}/kde3' - fi + kde_moduledir='\${libdir}/kde3' fi if test -z "$kde_styledir"; then kde_styledir='\${libdir}/kde3/plugins/styles' @@ -499,16 +495,6 @@ if test "$1" = "default"; then fi KDE_SET_PATHS(defaults) - -else - - if test $kde_qtver = 1; then - AC_MSG_RESULT([compiling]) - KDE_1_CHECK_PATHS - else - AC_MSG_ERROR([path checking not yet supported for KDE 2]) - fi - fi ]) @@ -713,13 +699,7 @@ AC_SUBST(kde_moduledir) AC_SUBST(tdeinitdir, '$(kde_moduledir)') AC_SUBST(kde_styledir) AC_SUBST(kde_widgetdir) -if test "$kde_qtver" = 1; then - kde_minidir="$kde_icondir/mini" -else -# for KDE 1 - this breaks KDE2 apps using minidir, but -# that's the plan ;-/ - kde_minidir="/dev/null" -fi +kde_minidir="/dev/null" dnl AC_SUBST(kde_minidir) dnl AC_SUBST(kde_cgidir) dnl AC_SUBST(kde_toolbardir) @@ -1095,22 +1075,6 @@ cat > conftest.$ac_ext < #include EOF -if test "$kde_qtver" = "2"; then -cat >> conftest.$ac_ext < -#include -#include -EOF - -if test $kde_qtsubver -gt 0; then -cat >> conftest.$ac_ext <> conftest.$ac_ext < @@ -1126,18 +1090,6 @@ cat >> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext < - - - Unai Garro - ugarro@users.sourceforge.net - 0.8 - KDevKDEAutoProject - C++ - - C++ - Code - Qt - TDE - - . - false - - - - kdevsubversion - - - - src/krecipes - default - - - src/krecipes - - false - - executable - / - true - - - - - - - - false - 1 - false - - 0 - - - - - - - - - - - - - - - false - false - - - false - - true - - - - - gtk - gnustep - python - php - perl - - - /home/uga/krecipes/html/ - /home/uga/krecipes/html/ - - - - - - - - - /home/fungmeista/src/svn/kde/trunk/extragear/utils/libtool - - - true - false - false - true - - - - - - false - true - 10 - - - - - - - - - - - - -f - - -dP - - -f - -u3 -p - - - -C -d -P - - - - - false - - - .h - .cpp - true - - - - true - 2 - - - - true - true - true - false - true - true - 250 - 400 - true - 250 - - - - - set - m_,_ - theValue - true - true - - - - true - true - true - true - -C - ERROR-LOCATION-IS-NOT-SET-IN-PROJECT - - - - - - /home/fungmeista/src/svn/kde/trunk/extragear/utils/doc/krecipes/index.docbook - - - - - - - diff --git a/krecipes/src/dialogs/dietwizarddialog.cpp b/krecipes/src/dialogs/dietwizarddialog.cpp index 6c66921..15b9e18 100644 --- a/krecipes/src/dialogs/dietwizarddialog.cpp +++ b/krecipes/src/dialogs/dietwizarddialog.cpp @@ -623,78 +623,27 @@ DishTitle::~DishTitle() void DishTitle::paintEvent( TQPaintEvent * ) { - - - // Now draw the text + TQPainter painter( this ); - if ( TQT_VERSION >= 0x030200 ) { - // Case 1: TQt 3.2+ - - TQPainter painter( this ); - - // First draw the decoration - painter.setPen( TDEGlobalSettings::activeTitleColor() ); - painter.setBrush( TQBrush( TDEGlobalSettings::activeTitleColor() ) ); - painter.drawRoundRect( 0, 20, 30, height() - 40, 50, ( int ) ( 50.0 / ( height() - 40 ) * 35.0 ) ); - - // Now draw the text + // First draw the decoration + painter.setPen( TDEGlobalSettings::activeTitleColor() ); + painter.setBrush( TQBrush( TDEGlobalSettings::activeTitleColor() ) ); + painter.drawRoundRect( 0, 20, 30, height() - 40, 50, ( int ) ( 50.0 / ( height() - 40 ) * 35.0 ) ); - TQFont titleFont = TDEGlobalSettings::windowTitleFont (); - titleFont.setPointSize( 15 ); - painter.setFont( titleFont ); - painter.rotate( -90 ); - painter.setPen( TQColor( 0x00, 0x00, 0x00 ) ); - painter.drawText( 0, 0, -height(), 30, AlignCenter, titleText ); - painter.setPen( TQColor( 0xFF, 0xFF, 0xFF ) ); - painter.drawText( -1, -1, -height() - 1, 29, AlignCenter, titleText ); - painter.end(); - } - else { - // Case 2: TQt 3.1 - - // Use a pixmap - - TQSize pmSize( height(), width() ); //inverted size so we can rotate later - TQPixmap pm( pmSize ); - pm.fill( TQColor( 0xFF, 0xFF, 0xFF ) ); - TQPainter painter( &pm ); - - // First draw the decoration - painter.setPen( TDEGlobalSettings::activeTitleColor() ); - painter.setBrush( TQBrush( TDEGlobalSettings::activeTitleColor() ) ); - painter.drawRoundRect( 20, 0, height() - 40, 30, ( int ) ( 50.0 / ( height() - 40 ) * 35.0 ), 50 ); - - // Now draw the text - TQFont titleFont = TDEGlobalSettings::windowTitleFont (); - titleFont.setPointSize( 15 ); - painter.setFont( titleFont ); - painter.setPen( TQColor( 0x00, 0x00, 0x00 ) ); - painter.drawText( 0, 0, height(), 30, AlignCenter, titleText ); - painter.setPen( TQColor( 0xFF, 0xFF, 0xFF ) ); - painter.drawText( -1, -1, height() - 1, 29, AlignCenter, titleText ); - painter.end(); - - //Set the border transparent using a mask - TQBitmap mask( pm.size() ); - mask.fill( TQt::color0 ); - painter.begin( &mask ); - painter.setPen( TQt::color1 ); - painter.setBrush( TQt::color1 ); - painter.drawRoundRect( 20, 0, height() - 40, 30, ( int ) ( 50.0 / ( height() - 40 ) * 35.0 ), 50 ); - - painter.end(); - pm.setMask( mask ); - - //And Rotate - TQWMatrix m ; - m.rotate( -90 ); - pm = pm.xForm( m ); - - bitBlt( this, 0, 0, &pm ); - } + // Now draw the text + TQFont titleFont = TDEGlobalSettings::windowTitleFont (); + titleFont.setPointSize( 15 ); + painter.setFont( titleFont ); + painter.rotate( -90 ); + painter.setPen( TQColor( 0x00, 0x00, 0x00 ) ); + painter.drawText( 0, 0, -height(), 30, AlignCenter, titleText ); + painter.setPen( TQColor( 0xFF, 0xFF, 0xFF ) ); + painter.drawText( -1, -1, -height() - 1, 29, AlignCenter, titleText ); + painter.end(); } + TQSize DishTitle::sizeHint () const { return ( TQSize( 40, 200 ) ); diff --git a/krecipes/src/widgets/kremenu.cpp b/krecipes/src/widgets/kremenu.cpp index 85581b9..f252bcc 100644 --- a/krecipes/src/widgets/kremenu.cpp +++ b/krecipes/src/widgets/kremenu.cpp @@ -31,11 +31,7 @@ #include KreMenu::KreMenu( TQWidget *parent, const char *name ) : -#if TQT_VERSION >= 0x030200 TQWidget( parent, name, TQt::WNoAutoErase ) -#else - TQWidget( parent, name ) -#endif { Menu newMenu; @@ -325,11 +321,7 @@ void KreMenu::showMenu( MenuId id ) KreMenuButton::KreMenuButton( KreMenu *parent, KrePanel _panel, MenuId id, const char *name ) : -#if TQT_VERSION >= 0x030200 TQWidget( parent, name, TQt::WNoAutoErase ), -#else - TQWidget( parent, name ), -#endif panel( _panel ) { icon = 0; diff --git a/krecipes/src/widgets/paneldeco.cpp b/krecipes/src/widgets/paneldeco.cpp index 3307fc9..a2ae935 100644 --- a/krecipes/src/widgets/paneldeco.cpp +++ b/krecipes/src/widgets/paneldeco.cpp @@ -82,11 +82,7 @@ void PanelDeco::setHeader( const TQString &title, const TQString &icon ) // Left part of the decoration LeftDeco::LeftDeco( TQWidget *parent, const char *name ) : -#if TQT_VERSION >= 0x030200 TQWidget( parent, name, TQt::WNoAutoErase ) -#else - TQWidget( parent, name ) -#endif {} LeftDeco::~LeftDeco() @@ -95,11 +91,7 @@ LeftDeco::~LeftDeco() // Top part of the decoration TopDeco::TopDeco( TQWidget *parent, const char *name, const TQString &title, const TQString &iconName ) : -#if TQT_VERSION >= 0x030200 TQWidget( parent, name, TQt::WNoAutoErase ) -#else - TQWidget( parent, name ) -#endif { setMinimumHeight( 30 ); icon = 0; diff --git a/krecipes/templates/cpp b/krecipes/templates/cpp deleted file mode 100644 index 0683d11..0000000 --- a/krecipes/templates/cpp +++ /dev/null @@ -1,9 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2003 by krecipes.sourceforge.net authors * -* * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -***************************************************************************/ diff --git a/krecipes/templates/h b/krecipes/templates/h deleted file mode 100644 index 0683d11..0000000 --- a/krecipes/templates/h +++ /dev/null @@ -1,9 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2003 by krecipes.sourceforge.net authors * -* * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -***************************************************************************/ diff --git a/stamp-h.in b/stamp-h.in deleted file mode 100644 index e69de29..0000000