File: macros.h

package info (click to toggle)
kppp 4:17.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,176 kB
  • sloc: cpp: 13,825; tcl: 49; sh: 19; xml: 15; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (9)
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 <qlayout.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