55 virtual std::string
family()
const;
67 virtual int weight ()
const;
72 virtual bool italic ()
const;
virtual ~QtFont()
The destructor.
virtual int pointSize() const
Get the pointsize of the font.
A abstract base class for font handling.
void unsetFont()
Sets the font object of this class to be Null.
QtFont()
The default constructor.
virtual int weight() const
Get the weight of the font.
virtual void setWeight(int weight)
Set the weight of the font.
FontBase class interface.
virtual bool italic() const
Returns true if the font is italic, othwise returns false.
virtual const QFont & font() const
Get the font object held in here.
virtual void setFamily(const std::string &family)
Set the family associated with the font.
An implementation of FontBase that uses a Qt QFont as implementation.
virtual void setPointSize(int pointsize)
Set the pointsize of the font.
virtual std::string family() const
Get the family associated with the font.
virtual void setItalic(bool enable)
Set the font to be italic.
bool isSet()
Is the font set ?
bool m_flag
Keeps a track if the font is set of not.
QFont m_font
The font object.
void setFont(const QFont &qfont)
Set the font object of this class to be the one described by qfont.