23 ShortOptionStyle = 0x2,
24 IgnoreOptionsAfter = 0x4,
26 Q_DECLARE_FLAGS(Flags, Flag)
28 explicit QCommandLineOption(
const QString &name);
29 explicit QCommandLineOption(
const QStringList &names);
30 QCommandLineOption(
const QString &name,
const QString &description,
31 const QString &valueName = QString(),
32 const QString &defaultValue = QString());
33 QCommandLineOption(
const QStringList &names,
const QString &description,
34 const QString &valueName = QString(),
35 const QString &defaultValue = QString());
36 QCommandLineOption(
const QCommandLineOption &other);
38 ~QCommandLineOption();
40 QCommandLineOption &operator=(
const QCommandLineOption &other);
41 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QCommandLineOption)
43 void swap(QCommandLineOption &other)
noexcept
46 QStringList names()
const;
48 void setValueName(
const QString &name);
49 QString valueName()
const;
51 void setDescription(
const QString &description);
52 QString description()
const;
54 void setDefaultValue(
const QString &defaultValue);
55 void setDefaultValues(
const QStringList &defaultValues);
56 QStringList defaultValues()
const;
59 void setFlags(Flags aflags);
62 QSharedDataPointer<QCommandLineOptionPrivate> d;