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 Struct Reference

#include <option.h>

+ Collaboration diagram for Option:

Public Types

enum class  PythonResourceImport { Default , FromDot , Absolute }
 

Public Member Functions

 Option ()
 
QString messagePrefix () const
 

Public Attributes

unsigned int headerProtection: 1
 
unsigned int copyrightHeader: 1
 
unsigned int generateImplemetation: 1
 
unsigned int generateNamespace: 1
 
unsigned int autoConnection: 1
 
unsigned int dependencies: 1
 
unsigned int limitXPM_LineLength: 1
 
unsigned int implicitIncludes: 1
 
unsigned int idBased: 1
 
unsigned int forceMemberFnPtrConnectionSyntax: 1
 
unsigned int forceStringConnectionSyntax: 1
 
unsigned int useStarImports: 1
 
unsigned int rcPrefix: 1
 
unsigned int qtNamespace: 1
 
QString inputFile
 
QString outputFile
 
QString qrcOutputFile
 
QString indent
 
QString prefix
 
QString postfix
 
QString translateFunction
 
QString includeFile
 
QString pythonRoot
 
PythonResourceImport pythonResourceImport = PythonResourceImport::Default
 

Detailed Description

Definition at line 12 of file option.h.

Member Enumeration Documentation

◆ PythonResourceImport

enum class Option::PythonResourceImport
strong
Enumerator
Default 
FromDot 
Absolute 

Definition at line 14 of file option.h.

Constructor & Destructor Documentation

◆ Option()

Option::Option ( )
inline

Definition at line 47 of file option.h.

References QString::fill(), and indent.

+ Here is the call graph for this function:

Member Function Documentation

◆ messagePrefix()

QString Option::messagePrefix ( ) const
inline

Definition at line 65 of file option.h.

References inputFile, QString::isEmpty(), and QDir::toNativeSeparators().

Referenced by CPP::WriteInitialization::acceptActionRef(), CPP::WriteInitialization::acceptConnection(), CPP::WriteInitialization::acceptTabStops(), CPP::WriteInitialization::acceptUI(), CPP::WriteInitialization::acceptWidget(), Driver::unique(), and Uic::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ autoConnection

unsigned int Option::autoConnection

Definition at line 24 of file option.h.

Referenced by CPP::WriteInitialization::acceptUI(), and runUic().

◆ copyrightHeader

unsigned int Option::copyrightHeader

Definition at line 21 of file option.h.

Referenced by Uic::write().

◆ dependencies

unsigned int Option::dependencies

Definition at line 25 of file option.h.

Referenced by Driver::printDependencies(), and runUic().

◆ forceMemberFnPtrConnectionSyntax

unsigned int Option::forceMemberFnPtrConnectionSyntax

Definition at line 29 of file option.h.

Referenced by runUic().

◆ forceStringConnectionSyntax

unsigned int Option::forceStringConnectionSyntax

Definition at line 30 of file option.h.

Referenced by runUic().

◆ generateImplemetation

unsigned int Option::generateImplemetation

Definition at line 22 of file option.h.

Referenced by CPP::WriteInitialization::acceptUI().

◆ generateNamespace

unsigned int Option::generateNamespace

Definition at line 23 of file option.h.

Referenced by CPP::WriteDeclaration::acceptUI().

◆ headerProtection

unsigned int Option::headerProtection

Definition at line 20 of file option.h.

Referenced by runUic(), and Uic::write().

◆ idBased

unsigned int Option::idBased

Definition at line 28 of file option.h.

Referenced by runUic().

◆ implicitIncludes

unsigned int Option::implicitIncludes

Definition at line 27 of file option.h.

Referenced by runUic().

◆ includeFile

QString Option::includeFile

Definition at line 42 of file option.h.

Referenced by CPP::WriteIncludes::acceptUI(), and runUic().

◆ indent

◆ inputFile

◆ limitXPM_LineLength

unsigned int Option::limitXPM_LineLength

Definition at line 26 of file option.h.

◆ outputFile

QString Option::outputFile

Definition at line 36 of file option.h.

Referenced by Driver::headerFileName(), and runUic().

◆ postfix

◆ prefix

QString Option::prefix

Definition at line 39 of file option.h.

Referenced by CPP::WriteDeclaration::acceptUI().

◆ pythonResourceImport

PythonResourceImport Option::pythonResourceImport = PythonResourceImport::Default

Definition at line 45 of file option.h.

Referenced by runUic().

◆ pythonRoot

QString Option::pythonRoot

Definition at line 43 of file option.h.

Referenced by runUic().

◆ qrcOutputFile

QString Option::qrcOutputFile

Definition at line 37 of file option.h.

◆ qtNamespace

unsigned int Option::qtNamespace

Definition at line 33 of file option.h.

Referenced by CPP::WriteDeclaration::acceptUI(), and runUic().

◆ rcPrefix

unsigned int Option::rcPrefix

Definition at line 32 of file option.h.

Referenced by runUic().

◆ translateFunction

QString Option::translateFunction

Definition at line 41 of file option.h.

Referenced by runUic().

◆ useStarImports

unsigned int Option::useStarImports

Definition at line 31 of file option.h.

Referenced by Python::WriteImports::acceptUI(), and runUic().


The documentation for this struct was generated from the following file: