Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / macros.h
blob134ec2cfe4bd49cd450d95ef7d03a388a3838a9f
1 // helper macros for layouting
3 #ifndef __MACROS__H__
4 #define __MACROS__H__
6 #include <qlayout.h>
8 #define MIN_WIDTH(w) w->setMinimumWidth(w->sizeHint().width());
9 #define MIN_HEIGHT(w) w->setMinimumHeight(w->sizeHint().height());
10 #define MIN_SIZE(w) w->setMinimumSize(w->sizeHint());
11 #define FIXED_SIZE(w) w->setFixedSize(w->sizeHint());
12 #define FIXED_WIDTH(w) w->setFixedWidth(w->sizeHint().width());
13 #define FIXED_HEIGHT(w) w->setFixedHeight(w->sizeHint().height());
15 #endif