mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-19 23:34:04 +02:00
Compare commits
2 commits
9429be3e0d
...
65400da902
Author | SHA1 | Date | |
---|---|---|---|
65400da902 | |||
e160bb02ff |
|
@ -402,14 +402,14 @@ void VPApplication::InitOptions()
|
||||||
qCDebug(pApp, "Command-line arguments: %s", qUtf8Printable(arguments().join(QStringLiteral(", "))));
|
qCDebug(pApp, "Command-line arguments: %s", qUtf8Printable(arguments().join(QStringLiteral(", "))));
|
||||||
qCDebug(pApp, "Process ID: %s", qUtf8Printable(QString().setNum(applicationPid())));
|
qCDebug(pApp, "Process ID: %s", qUtf8Printable(QString().setNum(applicationPid())));
|
||||||
|
|
||||||
CheckSystemLocale();
|
|
||||||
|
|
||||||
QPixmapCache::setCacheLimit(50 * 1024 /* 50 MB */);
|
QPixmapCache::setCacheLimit(50 * 1024 /* 50 MB */);
|
||||||
|
|
||||||
LoadTranslation(QString());// By default the console version uses system locale
|
LoadTranslation(QString());// By default the console version uses system locale
|
||||||
|
|
||||||
VPCommandLine::Instance();
|
VPCommandLine::Instance();
|
||||||
|
|
||||||
|
CheckSystemLocale();
|
||||||
|
|
||||||
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
||||||
if (not QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK))
|
if (not QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK))
|
||||||
{
|
{
|
||||||
|
|
|
@ -441,10 +441,10 @@ void MApplication::InitOptions()
|
||||||
qCDebug(mApp, "Command-line arguments: %s", qUtf8Printable(arguments().join(QStringLiteral(", "))));
|
qCDebug(mApp, "Command-line arguments: %s", qUtf8Printable(arguments().join(QStringLiteral(", "))));
|
||||||
qCDebug(mApp, "Process ID: %s", qUtf8Printable(QString().setNum(applicationPid())));
|
qCDebug(mApp, "Process ID: %s", qUtf8Printable(QString().setNum(applicationPid())));
|
||||||
|
|
||||||
CheckSystemLocale();
|
|
||||||
|
|
||||||
LoadTranslation(QString());// By default the console version uses system locale
|
LoadTranslation(QString());// By default the console version uses system locale
|
||||||
|
|
||||||
|
CheckSystemLocale();
|
||||||
|
|
||||||
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
static const char * GENERIC_ICON_TO_CHECK = "document-open";
|
||||||
if (not QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK))
|
if (not QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK))
|
||||||
{
|
{
|
||||||
|
|
|
@ -613,13 +613,13 @@ void VApplication::InitOptions()
|
||||||
qDebug()<<"Command-line arguments:"<<arguments();
|
qDebug()<<"Command-line arguments:"<<arguments();
|
||||||
qDebug()<<"Process ID:"<<applicationPid();
|
qDebug()<<"Process ID:"<<applicationPid();
|
||||||
|
|
||||||
CheckSystemLocale();
|
|
||||||
|
|
||||||
LoadTranslation(QString());// By default the console version uses system locale
|
LoadTranslation(QString());// By default the console version uses system locale
|
||||||
|
|
||||||
// Create command line parser after loading translations to show localized version.
|
// Create command line parser after loading translations to show localized version.
|
||||||
VCommandLine::Get(*this);
|
VCommandLine::Get(*this);
|
||||||
|
|
||||||
|
CheckSystemLocale();
|
||||||
|
|
||||||
if (VApplication::IsGUIMode())// By default console version uses system locale
|
if (VApplication::IsGUIMode())// By default console version uses system locale
|
||||||
{
|
{
|
||||||
LoadTranslation(ValentinaSettings()->GetLocale());
|
LoadTranslation(ValentinaSettings()->GetLocale());
|
||||||
|
|
|
@ -40,6 +40,12 @@
|
||||||
#include "../vmisc/compatibility.h"
|
#include "../vmisc/compatibility.h"
|
||||||
#include "../ifc/exception/vexceptionobjecterror.h"
|
#include "../ifc/exception/vexceptionobjecterror.h"
|
||||||
|
|
||||||
|
// See https://stackoverflow.com/a/46719572/3045403
|
||||||
|
#if __cplusplus < 201703L
|
||||||
|
constexpr qreal VAbstractCurve::minLength; // NOLINT(readability-redundant-declaration)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VAbstractCurve::VAbstractCurve(const GOType &type, const quint32 &idObject, const Draw &mode)
|
VAbstractCurve::VAbstractCurve(const GOType &type, const quint32 &idObject, const Draw &mode)
|
||||||
:VGObject(type, idObject, mode), d (new VAbstractCurveData())
|
:VGObject(type, idObject, mode), d (new VAbstractCurveData())
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue