Back to index

kdeartwork  4.3.2
Functions
helpers.cpp File Reference
#include "helpers.h"
#include <kapplication.h>

Go to the source code of this file.

Functions

void min_width (QWidget *w)
void fixed_width (QWidget *w)
void min_height (QWidget *w)
void fixed_height (QWidget *w)
void min_size (QWidget *w)
void fixed_size (QWidget *w)
KConfig * klock_config ()

Function Documentation

void fixed_height ( QWidget *  w)

Definition at line 17 of file helpers.cpp.

                              {
  w->setFixedHeight(w->sizeHint().height());
}
void fixed_size ( QWidget *  w)

Definition at line 25 of file helpers.cpp.

                            {
  w->setFixedSize(w->sizeHint());
}
void fixed_width ( QWidget *  w)

Definition at line 9 of file helpers.cpp.

                             {
  w->setFixedWidth(w->sizeHint().width());
}
KConfig* klock_config ( )

Definition at line 29 of file helpers.cpp.

{
    QString name( kapp->argv()[0] );
    int slash = name.lastIndexOf( '/' );
    if ( slash )
       name = name.mid( slash+1 );

    return new KConfig( name + "rc" );
}

Here is the caller graph for this function:

void min_height ( QWidget *  w)

Definition at line 13 of file helpers.cpp.

                            {
  w->setMinimumHeight(w->sizeHint().height());
}

Here is the caller graph for this function:

void min_size ( QWidget *  w)

Definition at line 21 of file helpers.cpp.

                          {
  w->setMinimumSize(w->sizeHint());
}

Here is the caller graph for this function:

void min_width ( QWidget *  w)

Definition at line 5 of file helpers.cpp.

                           {
  w->setMinimumWidth(w->sizeHint().width());
}