mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-14 22:51:13 +02:00
2019-10-07 Fred Gleason <fredg@paravelsystems.com>
* Refactored rdpopup(1) to use the 'RDDialog' and 'RDWidget' base classes.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user