Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
option.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef OPTION_H
5#define OPTION_H
6
7#include <qstring.h>
8#include <qdir.h>
9
11
12struct Option
13{
15 Default, // "import rc_file"
16 FromDot, // "from . import rc_file"
17 Absolute // "import path.rc_file"
18 };
19
20 unsigned int headerProtection : 1;
21 unsigned int copyrightHeader : 1;
22 unsigned int generateImplemetation : 1;
23 unsigned int generateNamespace : 1;
24 unsigned int autoConnection : 1;
25 unsigned int dependencies : 1;
26 unsigned int limitXPM_LineLength : 1;
27 unsigned int implicitIncludes: 1;
28 unsigned int idBased: 1;
31 unsigned int useStarImports: 1;
32 unsigned int rcPrefix: 1; // Python: Generate "rc_file" instead of "file_rc" import
33 unsigned int qtNamespace: 1;
34
44
46
64
71};
72
74
75#endif // OPTION_H
static QString toNativeSeparators(const QString &pathName)
Definition qdir.cpp:929
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QString & fill(QChar c, qsizetype size=-1)
Sets every character in the string to character ch.
Definition qstring.cpp:6358
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:192
Combined button and popup list for selecting options.
QString outputFile
Definition option.h:36
unsigned int headerProtection
Definition option.h:20
unsigned int rcPrefix
Definition option.h:32
unsigned int idBased
Definition option.h:28
QString pythonRoot
Definition option.h:43
unsigned int forceMemberFnPtrConnectionSyntax
Definition option.h:29
QString includeFile
Definition option.h:42
unsigned int implicitIncludes
Definition option.h:27
unsigned int forceStringConnectionSyntax
Definition option.h:30
QString indent
Definition option.h:38
QString postfix
Definition option.h:40
QString messagePrefix() const
Definition option.h:65
QString qrcOutputFile
Definition option.h:37
unsigned int useStarImports
Definition option.h:31
unsigned int dependencies
Definition option.h:25
QString translateFunction
Definition option.h:41
unsigned int generateImplemetation
Definition option.h:22
PythonResourceImport
Definition option.h:14
unsigned int limitXPM_LineLength
Definition option.h:26
unsigned int generateNamespace
Definition option.h:23
unsigned int qtNamespace
Definition option.h:33
PythonResourceImport pythonResourceImport
Definition option.h:45
QString prefix
Definition option.h:39
Option()
Definition option.h:47
QString inputFile
Definition option.h:35
unsigned int copyrightHeader
Definition option.h:21
unsigned int autoConnection
Definition option.h:24