summaryrefslogtreecommitdiffstats
path: root/kppp/macros.h
blob: 1b5120ac98adb676c5e9cb32b9133b2f7361cf01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// helper macros for layouting

#ifndef __MACROS__H__
#define __MACROS__H__

#include <layout.h>

#define MIN_WIDTH(w) w->setMinimumWidth(w->sizeHint().width());
#define MIN_HEIGHT(w) w->setMinimumHeight(w->sizeHint().height());
#define MIN_SIZE(w) w->setMinimumSize(w->sizeHint());
#define FIXED_SIZE(w) w->setFixedSize(w->sizeHint());
#define FIXED_WIDTH(w) w->setFixedWidth(w->sizeHint().width());
#define FIXED_HEIGHT(w) w->setFixedHeight(w->sizeHint().height());

#endif