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
.findRev( '/' );
34 name
= name
.mid( slash
+1 );
36 return new KConfig( name
+ "rc" );