2019-10-07 Fred Gleason <fredg@paravelsystems.com>

* Refactored rdpopup(1) to use the 'RDDialog' and 'RDWidget'
	base classes.
This commit is contained in:
Fred Gleason
2019-10-07 13:56:16 -04:00
parent 2c5c7886e2
commit 93e40d43df
5 changed files with 23 additions and 9 deletions

View File

@@ -34,6 +34,19 @@ RDFontSet::RDFontSet(const QFont &default_font,RDConfig *c)
}
RDFontSet::RDFontSet(RDConfig *c)
{
if(c==NULL) {
font_config=rda->config();
}
else {
font_config=c;
}
MakeFonts(QFont(font_config->fontFamily(),font_config->fontDefaultSize(),
QFont::Normal));
}
QFont RDFontSet::buttonFont() const
{
return font_button_font;

View File

@@ -29,6 +29,7 @@ class RDFontSet
{
public:
RDFontSet(const QFont &default_font,RDConfig *c=NULL);
RDFontSet(RDConfig *c=NULL);
QFont buttonFont() const;
QFont bigButtonFont() const;
QFont subButtonFont() const;