24 : m_font(
QFont (
"times") ),
30 QtFont (
const std::string & family,
int pointsize,
int weight,
bool italic )
31 :m_font( family.c_str(), pointsize, weight, italic ),
void unsetFont()
Sets the font object of this class to be Null.
bool m_flag
Keeps a track if the font is set of not.
setPointSize(int pointSize)
bool isSet()
Is the font set ?
virtual const QFont & font() const
Get the font object held in here.
virtual int weight() const
Get the weight of the font.
virtual void setItalic(bool enable)
Set the font to be italic.
virtual void setWeight(int weight)
Set the weight of the font.
virtual void setPointSize(int pointsize)
Set the pointsize of the font.
virtual int pointSize() const
Get the pointsize of the font.
virtual bool italic() const
Returns true if the font is italic, othwise returns false.
void setFont(const QFont &qfont)
Set the font object of this class to be the one described by qfont.
setFamily(const QString &family)
virtual void setFamily(const std::string &family)
Set the family associated with the font.
virtual ~QtFont()
The destructor.
virtual std::string family() const
Get the family associated with the font.
QFont m_font
The font object.
QtFont()
The default constructor.