From 5c50dcac16345515a81f7de5766fa240eaa99d31 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 13 Jul 2023 21:45:56 +0900 Subject: Removed Qt4 specific code and template files Signed-off-by: Michele Calgaro (cherry picked from commit 60598ea23e9fec7b4320985aad848c5ffee033c2) --- languages/cpp/app_templates/kde4app/kapp4view.cpp | 42 ----------------------- 1 file changed, 42 deletions(-) delete mode 100644 languages/cpp/app_templates/kde4app/kapp4view.cpp (limited to 'languages/cpp/app_templates/kde4app/kapp4view.cpp') diff --git a/languages/cpp/app_templates/kde4app/kapp4view.cpp b/languages/cpp/app_templates/kde4app/kapp4view.cpp deleted file mode 100644 index af95aa15..00000000 --- a/languages/cpp/app_templates/kde4app/kapp4view.cpp +++ /dev/null @@ -1,42 +0,0 @@ -%{CPP_TEMPLATE} -#include "%{APPNAMELC}view.h" -#include "settings.h" - -#include -#include - -%{APPNAME}View::%{APPNAME}View(TQWidget *) -{ - ui_%{APPNAMELC}view_base.setupUi(this); - settingsChanged(); - setAutoFillBackground(true); -} - -%{APPNAME}View::~%{APPNAME}View() -{ - -} - -void %{APPNAME}View::switchColors() -{ - // switch the foreground/background colors of the label - TQColor color = Settings::col_background(); - Settings::setCol_background( Settings::col_foreground() ); - Settings::setCol_foreground( color ); - - settingsChanged(); -} - -void %{APPNAME}View::settingsChanged() -{ - TQPalette pal; - pal.setColor( TQPalette::Window, Settings::col_background()); - pal.setColor( TQPalette::WindowText, Settings::col_foreground()); - ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setPalette( pal ); - - // i18n : internationalization - ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setText( i18n("This project is %1 days old",Settings::val_time()) ); - emit signalChangeStatusbar( i18n("Settings changed") ); -} - -#include "%{APPNAMELC}view.moc" -- cgit v1.2.1