Font Class

Header: #include <Font>
Inherits: ExcelObject

Public Functions

Font(QObject *parent = nullptr)
~Font()
  • 31 public functions inherited from QObject

Public Slots

QString getColor() const
QString getName()
QString getScript() const
int getSize() const
QString getUnderline() const
bool isBold() const
bool isItalic() const
bool isStrikeOut() const
void setBold(bool bold = true)
void setColor(const QString &color)
void setColor(int r, int g, int b)
void setItalic(bool italic = true)
bool setName(const QString &fontName)
void setScript(const QString &script)
void setSize(int size)
void setStrikeOut(bool strikeOut = true)
void setUnderline(const QString &underline)
  • 1 public slot inherited from QObject

Protected Functions

Font(Book *book, QObject *parent)
  • 2 protected functions inherited from ExcelObject
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 2 signals inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

Member Function Documentation

Font::Font(QObject *parent = nullptr)

Default constructs an instance of Font.

[protected] Font::Font(Book *book, QObject *parent)

Default constructs an instance of Font.

Font::~Font()

Destroys the instance of Font.

[slot] QString Font::getColor() const

Font::getColor Returns

[slot] QString Font::getName()

Font::getName Returns

[slot] QString Font::getScript() const

Font::getScript Returns

[slot] int Font::getSize() const

Font::getSize Returns

[slot] QString Font::getUnderline() const

Font::getUnderline Returns

[slot] bool Font::isBold() const

Font::isBold Returns

[slot] bool Font::isItalic() const

Font::isItalic Returns

[slot] bool Font::isStrikeOut() const

Font::isStrikeOut Returns

[slot] void Font::setBold(bool bold = true)

Font::setBold bold

See also isBold().

[slot] void Font::setColor(const QString &color)

Font::setColor color

[slot] void Font::setColor(int r, int g, int b)

Font::setColor r g b

[slot] void Font::setItalic(bool italic = true)

Font::setItalic italic

See also isItalic().

[slot] bool Font::setName(const QString &fontName)

Font::setName fontName Returns

[slot] void Font::setScript(const QString &script)

Font::setScript script 'normal','super','sub'

[slot] void Font::setSize(int size)

Font::setSize size

[slot] void Font::setStrikeOut(bool strikeOut = true)

Font::setStrikeOut strikeOut

See also isStrikeOut().

[slot] void Font::setUnderline(const QString &underline)

Font::setUnderline underline 'none','single','double','singleacc','doubleacc'