MOve files around, now they start becoming useful

This commit is contained in:
Luca Beltrame 2013-07-28 18:14:33 +02:00
parent 782a113475
commit c1bde86980
4 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,60 @@
/***************************************************************************
* Copyright (C) %{CURRENT_YEAR} by %{AUTHOR} <%{EMAIL}> *
* *
* 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. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
***************************************************************************/
#include "danbooru_clientview.h"
#include "settings.h"
#include <KLocale>
#include <QtGui/QLabel>
danbooru_clientView::danbooru_clientView(QWidget *)
{
ui_danbooru_clientview_base.setupUi(this);
settingsChanged();
setAutoFillBackground(true);
}
danbooru_clientView::~danbooru_clientView()
{
}
void danbooru_clientView::switchColors()
{
// switch the foreground/background colors of the label
QColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
settingsChanged();
}
void danbooru_clientView::settingsChanged()
{
QPalette pal;
pal.setColor( QPalette::Window, Settings::col_background());
pal.setColor( QPalette::WindowText, Settings::col_foreground());
ui_danbooru_clientview_base.kcfg_sillyLabel->setPalette( pal );
// i18n : internationalization
ui_danbooru_clientview_base.kcfg_sillyLabel->setText( i18n("This project is %1 days old",Settings::val_time()) );
emit signalChangeStatusbar( i18n("Settings changed") );
}
#include "danbooru_clientview.moc"