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
QCommandLineOptionPrivate Class Reference
+ Inheritance diagram for QCommandLineOptionPrivate:
+ Collaboration diagram for QCommandLineOptionPrivate:

Public Member Functions

Q_NEVER_INLINE QCommandLineOptionPrivate (const QString &name)
 
Q_NEVER_INLINE QCommandLineOptionPrivate (const QStringList &names)
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Static Public Member Functions

static QStringList removeInvalidNames (QStringList nameList)
 

Public Attributes

QStringList names
 The list of names used for this option.
 
QString valueName
 
QString description
 The description used for this option.
 
QStringList defaultValues
 The list of default values used for this option.
 
QCommandLineOption::Flags flags
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 12 of file qcommandlineoption.cpp.

Constructor & Destructor Documentation

◆ QCommandLineOptionPrivate() [1/2]

Q_NEVER_INLINE QCommandLineOptionPrivate::QCommandLineOptionPrivate ( const QString & name)
inlineexplicit

Definition at line 16 of file qcommandlineoption.cpp.

◆ QCommandLineOptionPrivate() [2/2]

Q_NEVER_INLINE QCommandLineOptionPrivate::QCommandLineOptionPrivate ( const QStringList & names)
inlineexplicit

Definition at line 21 of file qcommandlineoption.cpp.

Member Function Documentation

◆ removeInvalidNames()

QStringList QCommandLineOptionPrivate::removeInvalidNames ( QStringList nameList)
static

Definition at line 246 of file qcommandlineoption.cpp.

References Q_UNLIKELY, and qWarning.

Member Data Documentation

◆ defaultValues

QStringList QCommandLineOptionPrivate::defaultValues

The list of default values used for this option.

Definition at line 38 of file qcommandlineoption.cpp.

Referenced by QCommandLineOption::defaultValues(), QCommandLineOption::setDefaultValue(), and QCommandLineOption::setDefaultValues().

◆ description

QString QCommandLineOptionPrivate::description

The description used for this option.

Definition at line 35 of file qcommandlineoption.cpp.

Referenced by QCommandLineOption::description(), and QCommandLineOption::setDescription().

◆ flags

QCommandLineOption::Flags QCommandLineOptionPrivate::flags

◆ names

QStringList QCommandLineOptionPrivate::names

The list of names used for this option.

Definition at line 28 of file qcommandlineoption.cpp.

Referenced by QCommandLineOption::names().

◆ valueName

QString QCommandLineOptionPrivate::valueName

The documentation name for the value, if one is expected Example: "-o <file>" means valueName == "file"

Definition at line 32 of file qcommandlineoption.cpp.

Referenced by QCommandLineOption::setValueName(), and QCommandLineOption::valueName().


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