Skip to content

Commit 536f392

Browse files
committed
Update documentation
1 parent e2752e4 commit 536f392

File tree

4 files changed

+113
-22
lines changed

4 files changed

+113
-22
lines changed

src/xlsx/xlsxconditionalformatting.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ void ConditionalFormattingPrivate::writeCfVo(QXmlStreamWriter &writer, const Xls
125125
\value Highlight_Expression
126126
*/
127127

128+
/*!
129+
\enum ConditionalFormatting::ValueObjectType
130+
131+
\value VOT_Formula
132+
\value VOT_Max
133+
\value VOT_Min
134+
\value VOT_Num
135+
\value VOT_Percent
136+
\value VOT_Percentile
137+
*/
138+
128139
/*!
129140
Construct a conditional formatting object
130141
*/
@@ -164,6 +175,7 @@ ConditionalFormatting::~ConditionalFormatting()
164175
/*!
165176
* Add a hightlight rule with the given \a type, \a formula1, \a formula2,
166177
* \a format and \a stopIfTrue.
178+
* Return false if failed.
167179
*/
168180
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const QString &formula1, const QString &formula2, const Format &format, bool stopIfTrue)
169181
{
@@ -290,6 +302,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const
290302
* \overload
291303
*
292304
* Add a hightlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
305+
* Return false if failed.
293306
*/
294307
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const QString &formula, const Format &format, bool stopIfTrue)
295308
{
@@ -302,6 +315,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type, const
302315
/*!
303316
* Add a dataBar rule with the given \a color, \a type1, \a val1
304317
* , \a type2, \a val2, \a showData and \a stopIfTrue.
318+
* Return false if failed.
305319
*/
306320
bool ConditionalFormatting::addDataBarRule(const QColor &color, ValueObjectType type1, const QString &val1, ValueObjectType type2, const QString &val2, bool showData, bool stopIfTrue)
307321
{
@@ -334,6 +348,7 @@ bool ConditionalFormatting::addDataBarRule(const QColor &color, bool showData, b
334348

335349
/*!
336350
* Add a colorScale rule with the given \a minColor, \a maxColor and \a stopIfTrue.
351+
* Return false if failed.
337352
*/
338353
bool ConditionalFormatting::add2ColorScaleRule(const QColor &minColor, const QColor &maxColor, bool stopIfTrue)
339354
{
@@ -361,6 +376,7 @@ bool ConditionalFormatting::add2ColorScaleRule(const QColor &minColor, const QCo
361376

362377
/*!
363378
* Add a colorScale rule with the given \a minColor, \a midColor, \a maxColor and \a stopIfTrue.
379+
* Return false if failed.
364380
*/
365381
bool ConditionalFormatting::add3ColorScaleRule(const QColor &minColor, const QColor &midColor, const QColor &maxColor, bool stopIfTrue)
366382
{

src/xlsx/xlsxdocument.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ bool Document::moveWorksheet(const QString &srcName, int distIndex)
657657

658658
/*!
659659
Delete the worksheet \a name.
660+
Returns true if current sheet was deleted successfully.
660661
*/
661662
bool Document::deleteWorksheet(const QString &name)
662663
{
@@ -703,7 +704,8 @@ void Document::setCurrentWorksheet(const QString &name)
703704
}
704705

705706
/*!
706-
* \brief Set current selected worksheet to be the sheet named \a name.
707+
* \brief Set worksheet named \a name to be active sheet.
708+
* Returns true if success.
707709
*/
708710
bool Document::selectWorksheet(const QString &name)
709711
{

src/xlsx/xlsxformat.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,10 @@ void Format::setLocked(bool locked)
11241124
setProperty(FormatPrivate::P_Protection_Locked, locked);
11251125
}
11261126

1127+
/*!
1128+
\internal
1129+
Return true if the format has protection data, otherwise return false.
1130+
*/
11271131
bool Format::hasProtectionData() const
11281132
{
11291133
if (!d)

0 commit comments

Comments
 (0)