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