55 virtual std::string
family()
const;
67 virtual int weight ()
const;
72 virtual bool italic ()
const;
void setFont(const QFont &qfont)
Set the font object of this class to be the one described by qfont.
virtual void setWeight(int weight)
Set the weight of the font.
A abstract base class for font handling.
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.
FontBase class interface.
An implementation of FontBase that uses a Qt QFont as implementation.
bool m_flag
Keeps a track if the font is set of not.
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 void setItalic(bool enable)
Set the font to be italic.
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 weight() const
Get the weight of the font.
virtual int pointSize() const
Get the pointsize of the font.