Qx
v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
qx-versionnumber.h
1
#ifndef QX_VERSIONNUMBER_H
2
#define QX_VERSIONNUMBER_H
3
4
// Shared Lib Support
5
#include "qx/core/qx_core_export.h"
6
7
// Qt Includes
8
#include <QVersionNumber>
9
10
namespace
Qx
11
{
12
13
class
QX_CORE_EXPORT
VersionNumber
:
public
QVersionNumber
14
{
15
//-Constructor-------------------------------------------------------------------------------------------------
16
public
:
17
VersionNumber
(
int
maj,
int
min,
int
mic,
int
nan);
18
VersionNumber
(
int
maj,
int
min,
int
mic);
19
VersionNumber
(
int
maj,
int
min);
20
VersionNumber
(
int
maj);
21
VersionNumber
(std::initializer_list<int> args);
22
VersionNumber
(
QList<int>
&& seg);
23
VersionNumber
(
const
QList<int>
& seg);
24
VersionNumber
();
25
26
//-Member Functions--------------------------------------------------------------------------------------------
27
public
:
28
VersionNumber
first(qsizetype n)
const
;
29
int
nanoVersion()
const
;
30
VersionNumber
normalized(qsizetype min = 0)
const
;
31
32
//-Class Functions---------------------------------------------------------------------------------------------
33
public
:
34
static
VersionNumber
commonPrefix(
const
VersionNumber
& v1,
const
VersionNumber
& v2);
35
static
VersionNumber
fromString(
const
QString
&
string
,
int
* suffixIndex =
nullptr
);
36
static
VersionNumber
fromString(
QLatin1String
string
,
int
* suffixIndex =
nullptr
);
37
static
VersionNumber
fromString(
QStringView
string
,
int
* suffixIndex =
nullptr
);
38
};
39
40
}
41
42
#endif
// QX_VERSIONNUMBER_H
Qx::VersionNumber
The VersionNumber class extends QVersionNumber to include a dedicated constructor and getter for the ...
Definition
qx-versionnumber.h:14
Qx
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition
qx-processwaiter.cpp:5
QLatin1String
QList
QString
QStringView
QVersionNumber
lib
core
include
qx
core
qx-versionnumber.h
Generated by
1.10.0