Qwt User's Guide 6.3.0

Loading...
Searching...
No Matches
qwt.cpp
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#include "qwt.h"
11#include <qapplication.h>
12
13#define QWT_GLOBAL_STRUT
14
15#if QT_VERSION >= 0x050000
16 #if QT_VERSION >= 0x060000 || !QT_DEPRECATED_SINCE(5, 15)
17 #undef QWT_GLOBAL_STRUT
18 #endif
19#endif
20
21QSize qwtExpandedToGlobalStrut( const QSize& size )
22{
23#ifdef QWT_GLOBAL_STRUT
24 return size.expandedTo( QApplication::globalStrut() );
25#else
26 return size;
27#endif
28}