9#include <actioneditor_p.h>
11#include <QtDesigner/abstractformeditor.h>
12#include <QtDesigner/abstractsettings.h>
14#include <QtCore/qstringlist.h>
15#include <QtCore/qdir.h>
16#include <QtCore/qvariant.h>
17#include <QtCore/qcoreapplication.h>
18#include <QtCore/qsize.h>
22using namespace Qt::StringLiterals;
41 QDir current(QDir::current());
42 if (current.exists(path))
48 if (current.mkpath(path))
51 qdesigner_internal::designerWarning(QCoreApplication::translate(
"QDesignerSharedSettings",
"The template path %1 could not be created.").arg(path));
267 return QCoreApplication::translate(
"QDesignerSharedSettings",
"An error has been encountered while parsing device profile XML: %1").arg(msg);
313 for (
const auto &
dp :
dpl)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static QString msgWarnDeviceProfileXml(const QString &msg)
static constexpr auto zoomKey
static constexpr auto deviceProfileIndexKey
static constexpr auto formTemplatePathsKey
static constexpr auto userDeviceSkinsKey
static constexpr auto previewKey
static constexpr auto underScoreNamingMode
static constexpr auto defaultGridKey
static constexpr auto deviceProfilesKey
static constexpr auto camelCaseNamingMode
static bool checkTemplatePath(const QString &path, bool create)
static constexpr auto enabledKey
static constexpr auto namingModeKey
static constexpr auto newFormSizeKey
static constexpr auto zoomEnabledKey
static constexpr auto formTemplateKey