Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and dantti committed Feb 29, 2024
1 parent 1f2ca71 commit 073bec2
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion DateTime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application

# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)

# TODO: Set project name
Expand Down
2 changes: 1 addition & 1 deletion HelloAndroid/XlsxTableModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ QVariant XlsxTableModel::data(const QModelIndex &index, int role) const
int col = index.column();
int row = index.row();

// check boudaries
// check boundaries
if (col < 0 || columnCount() <= col || row < 0 || rowCount() <= row) {
qDebug() << "[Warning]"
<< " col=" << col << ", row=" << row;
Expand Down
2 changes: 1 addition & 1 deletion HelloAndroid/XlsxTableModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class XlsxTableModel : public QAbstractTableModel
public:
QStringList customRoleNames();

public: // constrcutor
public: // constructor
XlsxTableModel(const QList<QString> &colTitle, QList<VLIST> data, QObject *parent = NULL);

public: // virtual function of parent object
Expand Down
2 changes: 1 addition & 1 deletion HelloWorld/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application

# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)

# TODO: Set project name
Expand Down
2 changes: 1 addition & 1 deletion HowToSetProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ include(./QXlsx.pri)

<br /><br />

:one::one: Set heaer files and namespace for sample. Then append hello world code.
:one::one: Set header files and namespace for sample. Then append hello world code.

![](markdown.data/11.jpg)

Expand Down
2 changes: 1 addition & 1 deletion Pump/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application

# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)

# TODO: Set project name
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/header/xlsxchart_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class ChartPrivate : public AbstractOOXmlFilePrivate
bool majorGridlinesEnabled;
bool minorGridlinesEnabled;

QString layout; // only for storing a readed file
QString layout; // only for storing a read file
};

QT_END_NAMESPACE_XLSX
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/header/xlsxcontenttypes_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ContentTypes : public AbstractOOXmlFile
void addDefault(const QString &key, const QString &value);
void addOverride(const QString &key, const QString &value);

// Convenient funcation for addOverride()
// Convenient function for addOverride()
void addDocPropCore();
void addDocPropApp();
void addStyles();
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/header/xlsxdrawinganchor_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DrawingAnchor

// BELOW only for cxnSp shape
QString cxnSp_filpV, cxnSp_macro;
// belwo for cxnsp and sp
// below for cxnsp and sp
QString xsp_cNvPR_name, xsp_cNvPR_id; // x measns shape and cxnSp together using
QString xbwMode; // same as above
QString xIn_algn, xIn_cmpd, xIn_cap, xIn_w; // cxnSp only need xIn_w
Expand Down
4 changes: 2 additions & 2 deletions QXlsx/source/xlsxabstractsheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AbstractSheetPrivate::~AbstractSheetPrivate()
\value SS_Visible
\value SS_Hidden
\value SS_VeryHidden User cann't make a veryHidden sheet visible in normal way.
\value SS_VeryHidden User can't make a veryHidden sheet visible in normal way.
*/

/*!
Expand Down Expand Up @@ -140,7 +140,7 @@ bool AbstractSheet::isVisible() const
}

/*!
* Make the sheet hiden or visible based on \a hidden.
* Make the sheet hidden or visible based on \a hidden.
*/
void AbstractSheet::setHidden(bool hidden)
{
Expand Down
4 changes: 2 additions & 2 deletions QXlsx/source/xlsxcell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ CellPrivate::CellPrivate(const CellPrivate *const cp)
/*!
\enum Cell::CellType
\value BooleanType Boolean type
\value NumberType Number type, can be blank or used with forumula
\value NumberType Number type, can be blank or used with formula
\value ErrorType Error type
\value SharedStringType Shared string type
\value StringType String type, can be used with forumula
\value StringType String type, can be used with formula
\value InlineStringType Inline string type
*/

Expand Down
20 changes: 10 additions & 10 deletions QXlsx/source/xlsxcellformula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int CellFormula::sharedIndex() const
return d && d->type == SharedType ? d->si : (-1);
}

/* aca (Always Calculate Array) // not-implmented attribute
/* aca (Always Calculate Array) // not-implemented attribute
*
* Only applies to array formulas.
*
Expand All @@ -175,15 +175,15 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/

/* bx (Assigns Value to Name) // not-implmented attribute
/* bx (Assigns Value to Name) // not-implemented attribute
*
* Specifies that this formula assigns a value to a name.
*
* The possible values for this attribute are defined by the W3C XML
* Schema boolean datatype.
*/

/* del1 (Input 1 Deleted) // not-implmented attribute
/* del1 (Input 1 Deleted) // not-implemented attribute
*
* Whether the first input cell for data table has been deleted.
* Applies to data table formula only. Written on master cell of data table
Expand All @@ -193,7 +193,7 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/

/* del2 (Input 2 Deleted) // not-impplmented attribute
/* del2 (Input 2 Deleted) // not-implemented attribute
*
* Whether the second input cell for data table has been deleted.
* Applies to data table formula only. Written on master cell of data
Expand All @@ -203,26 +203,26 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/

/* dt2D (Data Table 2-D) // not-implmented attribute
/* dt2D (Data Table 2-D) // not-implemented attribute
*
* Data table is two-dimentional. Only applies to the data tables function.
* Data table is two-dimensional. Only applies to the data tables function.
* Written on master cell of data table formula only.
*
* The possible values for this attribute are defined by the W3C XML Schema
* boolean datatype.
*/

/* dtr (Data Table Row) // not-implmented attribute
/* dtr (Data Table Row) // not-implemented attribute
*
* true if one-dimentional data table is a row, otherwise it's a column.
* true if one-dimensional data table is a row, otherwise it's a column.
* Only applies to the data tables function. Written on master cell of data
* table formula only.
*
* The possible values for this attribute are defined by the W3C XML Schema
* boolean datatype.
*/

/* r1 (Data Table Cell 1) // not-implmented attribute
/* r1 (Data Table Cell 1) // not-implemented attribute
*
* First input cell for data table. Only applies to the data tables array
* function "TABLE()". Written on master cell of data table formula only.
Expand All @@ -231,7 +231,7 @@ int CellFormula::sharedIndex() const
* simple type (§18.18.7).
*/

/* r2 (Input Cell 2) // not-implmented attribute
/* r2 (Input Cell 2) // not-implemented attribute
*
* Second input cell for data table when dt2D is '1'. Only applies to the
* data tables array function "TABLE()".Written on master cell of data table
Expand Down
6 changes: 3 additions & 3 deletions QXlsx/source/xlsxconditionalformatting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ ConditionalFormatting::~ConditionalFormatting()
}

/*!
* Add a hightlight rule with the given \a type, \a formula1, \a formula2,
* Add a highlight rule with the given \a type, \a formula1, \a formula2,
* \a format and \a stopIfTrue.
* Return false if failed.
*/
Expand Down Expand Up @@ -301,7 +301,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
/*!
* \overload
*
* Add a hightlight rule with the given \a type \a format and \a stopIfTrue.
* Add a highlight rule with the given \a type \a format and \a stopIfTrue.
*/
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
const Format &format,
Expand All @@ -318,7 +318,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
/*!
* \overload
*
* Add a hightlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
* Add a highlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
* Return false if failed.
*/
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
Expand Down
6 changes: 3 additions & 3 deletions QXlsx/source/xlsxdatavalidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,23 +318,23 @@ void DataValidation::setPromptMessage(const QString &prompt, const QString &titl
}

/*!
Enable/disabe blank allow based on \a enable.
Enable/disable blank allow based on \a enable.
*/
void DataValidation::setAllowBlank(bool enable)
{
d->allowBlank = enable;
}

/*!
Enable/disabe prompt message visible based on \a visible.
Enable/disable prompt message visible based on \a visible.
*/
void DataValidation::setPromptMessageVisible(bool visible)
{
d->isPromptMessageVisible = visible;
}

/*!
Enable/disabe error message visible based on \a visible.
Enable/disable error message visible based on \a visible.
*/
void DataValidation::setErrorMessageVisible(bool visible)
{
Expand Down
6 changes: 3 additions & 3 deletions QXlsx/source/xlsxdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ QVariant Document::read(int row, int col) const

/*!
* Insert an \a image to current active worksheet at the position \a row, \a column
* Returns ture if success.
* Returns true if success.
*/
int Document::insertImage(int row, int column, const QImage &image)
{
Expand Down Expand Up @@ -739,7 +739,7 @@ bool Document::setColumnWidth(const CellRange &range, double width)
}

/*!
Sets format property of columns with the gien \a range and \a format.
Sets format property of columns with the given \a range and \a format.
Returns true on success.
*/
bool Document::setColumnFormat(const CellRange &range, const Format &format)
Expand Down Expand Up @@ -1034,7 +1034,7 @@ Cell *Document::cellAt(int row, int col) const
*
* \param name The defined name.
* \param formula The cell or range that the defined name refers to.
* \param scope The name of one worksheet, or empty which means golbal scope.
* \param scope The name of one worksheet, or empty which means global scope.
* \return Return false if the name invalid.
*/
bool Document::defineName(const QString &name,
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxdrawinganchor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ bool DrawingTwoCellAnchor::loadFromXml(QXmlStreamReader &reader)

//{{ liufeijin
QXmlStreamAttributes attrs =
reader.attributes(); // for absolute twocell aadd by liufeijin 20181024
reader.attributes(); // for absolute twocell added by liufeijin 20181024
editASName = attrs.value(QLatin1String("editAs")).toString();
//}}

Expand Down
6 changes: 3 additions & 3 deletions QXlsx/source/xlsxformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ int Format::rotation() const
}

/*!
* Set the text roation with the given \a rotation. Must be in the range [0, 180] or 255.
* Set the text rotation with the given \a rotation. Must be in the range [0, 180] or 255.
*/
void Format::setRotation(int rotation)
{
Expand Down Expand Up @@ -1272,15 +1272,15 @@ bool Format::dxfIndexValid() const
}

/*!
Returns ture if the \a format is equal to this format.
Returns true if the \a format is equal to this format.
*/
bool Format::operator==(const Format &format) const
{
return this->formatKey() == format.formatKey();
}

/*!
Returns ture if the \a format is not equal to this format.
Returns true if the \a format is not equal to this format.
*/
bool Format::operator!=(const Format &format) const
{
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxsharedstrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int SharedStrings::addSharedString(const RichString &string)
void SharedStrings::incRefByStringIndex(int idx)
{
if (idx < 0 || idx >= m_stringList.size()) {
qDebug("SharedStrings: invlid index");
qDebug("SharedStrings: invalid index");
return;
}

Expand Down
8 changes: 4 additions & 4 deletions QXlsx/source/xlsxstyles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ void Styles::writeFill(QXmlStreamWriter &writer, const Format &fill, bool isDxf)
writer.writeStartElement(QStringLiteral("fill"));
writer.writeStartElement(QStringLiteral("patternFill"));
Format::FillPattern pattern = fill.fillPattern();
// For normal fill formats, Excel prefer to outputing the default "none" attribute
// But for dxf, Excel prefer to omiting the default "none"
// For normal fill formats, Excel prefer to outputting the default "none" attribute
// But for dxf, Excel prefer to omitting the default "none"
// Though not make any difference, but it make easier to compare origin files with generate
// files during debug
if (!(pattern == Format::PatternNone && isDxf))
Expand Down Expand Up @@ -585,7 +585,7 @@ void Styles::writeBorder(QXmlStreamWriter &writer, const Format &border, bool is
border.property(FormatPrivate::P_Border_DiagonalColor).value<XlsxColor>());

if (isDxf) {
// writeSubBorder(wirter, QStringLiteral("vertical"), );
// writeSubBorder(writer, QStringLiteral("vertical"), );
// writeSubBorder(writer, QStringLiteral("horizontal"), );
}

Expand Down Expand Up @@ -773,7 +773,7 @@ bool Styles::readNumFmts(QXmlStreamReader &reader)
const auto hasCount = attributes.hasAttribute(QLatin1String("count"));
const auto count = hasCount ? attributes.value(QLatin1String("count")).toInt() : -1;

// Read utill we find the numFmts end tag or ....
// Read until we find the numFmts end tag or ....
while (!reader.atEnd() && !(reader.tokenType() == QXmlStreamReader::EndElement &&
reader.name() == QLatin1String("numFmts"))) {
reader.readNextStartElement();
Expand Down
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxworkbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void Workbook::setDefaultDateFormat(const QString &format)
* \param name The defined name
* \param formula The cell or range that the defined name refers to.
* \param comment
* \param scope The name of one worksheet, or empty which means golbal scope.
* \param scope The name of one worksheet, or empty which means global scope.
* \return Return false if the name invalid.
*/
bool Workbook::defineName(const QString &name,
Expand Down
6 changes: 3 additions & 3 deletions QXlsx/source/xlsxworksheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int WorksheetPrivate::checkDimensions(int row, int col, bool ignore_row, bool ig
Worksheet::Worksheet(const QString &name, int id, Workbook *workbook, CreateFlag flag)
: AbstractSheet(name, id, workbook, new WorksheetPrivate(this, flag))
{
if (!workbook) // For unit test propose only. Ignore the memery leak.
if (!workbook) // For unit test propose only. Ignore the memory leak.
d_func()->workbook = new Workbook(flag);
}

Expand Down Expand Up @@ -456,7 +456,7 @@ bool Worksheet::write(int row, int column, const QVariant &value, const Format &
} else if (value.userType() == QMetaType::QDateTime) // dev67
{
// DateTime, Date
// note that, QTime cann't convert to QDateTime
// note that, QTime can't convert to QDateTime
ret = writeDateTime(row, column, value.toDateTime(), format);
} else if (value.userType() == QMetaType::QDate) // dev67
{
Expand Down Expand Up @@ -2043,7 +2043,7 @@ bool Worksheet::setRowFormat(int rowFirst, int rowLast, const Format &format)
}

/*!
Sets the \a hidden proeprty of the rows including and between \a rowFirst and \a rowLast.
Sets the \a hidden property of the rows including and between \a rowFirst and \a rowLast.
Rows are 1-indexed. If hidden is true rows will not be visible.
Returns true if success.
Expand Down
4 changes: 2 additions & 2 deletions ShowConsole/fort.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ const char *ft_to_string(const ft_table_t *table)
int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings;
assert(table);

/* Determing size of table string representation */
/* Determining size of table string representation */
size_t height = 0;
size_t width = 0;
int status = table_geometry(table, &height, &width);
Expand Down Expand Up @@ -1858,7 +1858,7 @@ const wchar_t *ft_to_wstring(const ft_table_t *table)

assert(table);

/* Determing size of table string representation */
/* Determining size of table string representation */
size_t height = 0;
size_t width = 0;
int status = table_geometry(table, &height, &width);
Expand Down
Loading

0 comments on commit 073bec2

Please sign in to comment.