summaryrefslogtreecommitdiffstats
path: root/kppp/macros.h
blob: b631516a460c568688eb9d03cc3d63b483895c4d (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 <tqlayout.h>

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

#endif