SVN_SILENT made messages (.desktop file)
[kdeartwork.git] / kscreensaver / xsavers / helpers.cpp
blob003b7f1981797822aa5e55d32a5e7adce775a86b
1 #include "helpers.h"
3 #include <kapplication.h>
5 void min_width(QWidget *w) {
6 w->setMinimumWidth(w->sizeHint().width());
9 void fixed_width(QWidget *w) {
10 w->setFixedWidth(w->sizeHint().width());
13 void min_height(QWidget *w) {
14 w->setMinimumHeight(w->sizeHint().height());
17 void fixed_height(QWidget *w) {
18 w->setFixedHeight(w->sizeHint().height());
21 void min_size(QWidget *w) {
22 w->setMinimumSize(w->sizeHint());
25 void fixed_size(QWidget *w) {
26 w->setFixedSize(w->sizeHint());
29 KConfig *klock_config()
31 QString name( kapp->argv()[0] );
32 int slash = name.lastIndexOf( '/' );
33 if ( slash )
34 name = name.mid( slash+1 );
36 return new KConfig( name + "rc" );