mirror of
https://github.com/QtExcel/QXlsx.git
synced 2025-01-30 05:02:52 +08:00
Merge branch 'richstring' into qt6beta
This commit is contained in:
commit
71e9fac7c6
@ -41,7 +41,7 @@ class RichString
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RichString();
|
RichString();
|
||||||
explicit RichString(const QString text);
|
explicit RichString(const QString& text);
|
||||||
RichString(const RichString &other);
|
RichString(const RichString &other);
|
||||||
~RichString();
|
~RichString();
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ RichString::RichString()
|
|||||||
/*!
|
/*!
|
||||||
Constructs a plain string with the given \a text.
|
Constructs a plain string with the given \a text.
|
||||||
*/
|
*/
|
||||||
RichString::RichString(const QString text)
|
RichString::RichString(const QString& text)
|
||||||
:d(new RichStringPrivate)
|
:d(new RichStringPrivate)
|
||||||
{
|
{
|
||||||
addFragment(text, Format());
|
addFragment(text, Format());
|
||||||
@ -116,7 +116,7 @@ bool RichString::isNull() const
|
|||||||
*/
|
*/
|
||||||
bool RichString::isEmtpy() const
|
bool RichString::isEmtpy() const
|
||||||
{
|
{
|
||||||
for (const QString &str : d->fragmentTexts) {
|
for (const auto& str : d->fragmentTexts) {
|
||||||
if (!str.isEmpty())
|
if (!str.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user