2
#include "%{APPNAMELC}view.h"
6
#include <QtGui/QLabel>
8
%{APPNAME}View::%{APPNAME}View(QWidget *)
10
ui_%{APPNAMELC}view_base.setupUi(this);
12
setAutoFillBackground(true);
15
%{APPNAME}View::~%{APPNAME}View()
20
void %{APPNAME}View::switchColors()
22
// switch the foreground/background colors of the label
23
QColor color = Settings::col_background();
24
Settings::setCol_background( Settings::col_foreground() );
25
Settings::setCol_foreground( color );
30
void %{APPNAME}View::settingsChanged()
33
pal.setColor( QPalette::Window, Settings::col_background());
34
pal.setColor( QPalette::WindowText, Settings::col_foreground());
35
ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setPalette( pal );
37
// i18n : internationalization
38
ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setText( i18n("This project is %1 days old",Settings::val_time()) );
39
emit signalChangeStatusbar( i18n("Settings changed") );
42
#include "%{APPNAMELC}view.moc"