Perceptual Color

version.in.hpp File Reference
#include "importexport.h"
#include <qglobal.h>
#include <qversionnumber.h>
Include dependency graph for version.in.hpp:

Go to the source code of this file.

Namespaces

namespace  PerceptualColor
 

Macros

#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION   (QT_VERSION_CHECK(PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MAJOR, PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MINOR, PERCEPTUALCOLOR_COMPILE_TIME_VERSION_PATCH))
 
#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MAJOR   (@MAJOR_VERSION@)
 
#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MINOR   (@MINOR_VERSION@)
 
#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_PATCH   (@PATCH_VERSION@)
 

Functions

QVersionNumber PerceptualColor::perceptualColorRunTimeVersion ()
 

Detailed Description

This file provides version information for this library at compile time and at run time.

Note
Do not include this file itself! Instead, include version.h.

Definition in file version.in.hpp.

Macro Definition Documentation

◆ PERCEPTUALCOLOR_COMPILE_TIME_VERSION

Against which version of this library you are compiling.

This macro has the same semantic as QT_VERSION

Returns
This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that specifies the version number. Note that there is no pre-release identifier included. For example, if you compile your application against version 1.2.3-alpha of this library, the macro will expand to 0x010203. You can use this macro to use the latest features where available. Example:
// Either with macros:
#if (PERCEPTUALCOLOR_COMPILE_TIME_VERSION >= QT_VERSION_CHECK(1, 2, 3))
// Some code…
#else
// Some different code…
#endif
// Or with C++ “if constexpr”. Works only if both(!) code paths can
// potentially compile without errors at all versions:
if constexpr (PERCEPTUALCOLOR_COMPILE_TIME_VERSION >= QT_VERSION_CHECK(1, 2, 3)) {
// Some code…
} else {
// Some different code…
}

To use this macro, include version.h

See also
Version information at compiletime and runtime

Definition at line 82 of file version.in.hpp.

◆ PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MAJOR

#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MAJOR   (@MAJOR_VERSION@)
Returns
The major version (as integer) of this library against which you are compiling. You can use this macro to use the latest features where available.

To use this macro, include version.h

See also
Version information at compiletime and runtime

Definition at line 40 of file version.in.hpp.

◆ PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MINOR

#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_MINOR   (@MINOR_VERSION@)
Returns
The minor version (as integer) of this library against which you are compiling. You can use this macro to use the latest features where available.

To use this macro, include version.h

See also
Version information at compiletime and runtime

Definition at line 51 of file version.in.hpp.

◆ PERCEPTUALCOLOR_COMPILE_TIME_VERSION_PATCH

#define PERCEPTUALCOLOR_COMPILE_TIME_VERSION_PATCH   (@PATCH_VERSION@)
Returns
The patch version (as integer) of this library against which you are compiling. You can use this macro to use the latest features where available.

To use this macro, include version.h

See also
Version information at compiletime and runtime

Definition at line 62 of file version.in.hpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.