mirror of
https://github.com/arcan1s/qtadds-fontdialog.git
synced 2025-12-16 20:23:46 +00:00
add new function
This commit is contained in:
@ -39,6 +39,12 @@ void CFont::setCurrentColor(const QColor color)
|
||||
}
|
||||
|
||||
|
||||
QFont CFont::toQFont()
|
||||
{
|
||||
return QFont(family(), pointSize(), weight(), italic());
|
||||
}
|
||||
|
||||
|
||||
CFontDialog::CFontDialog(QWidget *parent, bool needWeight, bool needItalic)
|
||||
: QDialog(parent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user