1 |
// qsamplerMainForm.cpp |
// qsamplerMainForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2021, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007-2019 Christian Schoenebeck |
Copyright (C) 2007-2019 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
74 |
#endif |
#endif |
75 |
|
|
76 |
#ifdef CONFIG_LIBGIG |
#ifdef CONFIG_LIBGIG |
77 |
|
#pragma GCC diagnostic push |
78 |
|
#pragma GCC diagnostic ignored "-Wunused-parameter" |
79 |
#include <gig.h> |
#include <gig.h> |
80 |
|
#pragma GCC diagnostic pop |
81 |
#endif |
#endif |
82 |
|
|
83 |
// Deprecated QTextStreamFunctions/Qt namespaces workaround. |
// Deprecated QTextStreamFunctions/Qt namespaces workaround. |
86 |
#endif |
#endif |
87 |
|
|
88 |
// Needed for lroundf() |
// Needed for lroundf() |
89 |
#include <math.h> |
#ifdef CONFIG_ROUND |
90 |
|
#include <cmath> |
91 |
#ifndef CONFIG_ROUND |
#else |
92 |
static inline long lroundf ( float x ) |
static inline long lroundf ( float x ) |
93 |
{ |
{ |
94 |
if (x >= 0.0f) |
if (x >= 0.0f) |
2103 |
sText += "</font></small>"; |
sText += "</font></small>"; |
2104 |
} |
} |
2105 |
sText += "<br />\n"; |
sText += "<br />\n"; |
2106 |
sText += tr("Using") + ": "; |
sText += tr("Using: Qt %1").arg(qVersion()); |
2107 |
|
#if defined(QT_STATIC) |
2108 |
|
sText += "-static"; |
2109 |
|
#endif |
2110 |
|
sText += ", "; |
2111 |
sText += ::lscp_client_package(); |
sText += ::lscp_client_package(); |
2112 |
sText += " "; |
sText += " "; |
2113 |
sText += ::lscp_client_version(); |
sText += ::lscp_client_version(); |