mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-09 22:43:11 +02:00
2020-08-12 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDFontEngine::bigLabelFont()' and 'RDFontEngine::bigLabelFontMetrics()' methods. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
88e0544874
commit
ad028fd7c5
@ -20222,3 +20222,6 @@
|
||||
'RDFeed::setChannelAuthorIsDefault()' methods.
|
||||
* Added a 'Use as default Item Author' checkbox to the 'Edit Feed'
|
||||
dialog in rdadmin(1).
|
||||
2020-08-12 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added 'RDFontEngine::bigLabelFont()' and
|
||||
'RDFontEngine::bigLabelFontMetrics()' methods.
|
||||
|
@ -36,6 +36,7 @@ all-local: cae.html\
|
||||
catchd.html\
|
||||
catchd.pdf\
|
||||
fonts.html\
|
||||
fonts.rdcastmanager.list_carts.png\
|
||||
fonts.pdf\
|
||||
fonts.rdadmin.configure_rdairplay_screenshot.png\
|
||||
fonts.rdairplay_screenshot.png\
|
||||
@ -64,6 +65,8 @@ EXTRA_DIST = cae.html\
|
||||
fonts.rdairplay_screenshot.xcf\
|
||||
fonts.rdcartslots_screenshot.png\
|
||||
fonts.rdcartslots_screenshot.xcf\
|
||||
fonts.rdcastmanager.list_carts.png\
|
||||
fonts.rdcastmanager.list_carts.xcf\
|
||||
fonts.rdcastmanager.uploading_audio_screenshot.png\
|
||||
fonts.rdcastmanager.uploading_audio_screenshot.xcf\
|
||||
fonts.rdlibrary.edit_audio_screenshot.png\
|
||||
|
BIN
docs/apis/fonts.rdcastmanager.list_carts.png
Normal file
BIN
docs/apis/fonts.rdcastmanager.list_carts.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
docs/apis/fonts.rdcastmanager.list_carts.xcf
Normal file
BIN
docs/apis/fonts.rdcastmanager.list_carts.xcf
Normal file
Binary file not shown.
@ -90,6 +90,16 @@
|
||||
<sect2 xml:id="sect.accessing_fonts.label_fonts">
|
||||
<title>Label Fonts</title>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><code>bigLabelFont()</code></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Font for use in <code>QLabel</code> widgets used for
|
||||
labeling the major UI element in a dialog, such as a
|
||||
<code>QListView</code>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><code>labelFont()</code></term>
|
||||
<listitem>
|
||||
@ -274,6 +284,21 @@
|
||||
</mediaobject>
|
||||
</para>
|
||||
</sect2>
|
||||
<sect2 xml:id="sect.examples.rdcastmanager.list_carts">
|
||||
<title>RDCastManager - List Carts</title>
|
||||
<para>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata align="center" fileref="fonts.rdcastmanager.list_carts.png" scale="70"/>
|
||||
</imageobject>
|
||||
<caption>
|
||||
<para>
|
||||
Example of <code>bigLabelFont()</code>
|
||||
</para>
|
||||
</caption>
|
||||
</mediaobject>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
</article>
|
||||
|
@ -54,6 +54,7 @@ RDFontEngine::~RDFontEngine()
|
||||
delete font_big_button_font_metrics;
|
||||
delete font_sub_button_font_metrics;
|
||||
delete font_section_label_font_metrics;
|
||||
delete font_big_label_font_metrics;
|
||||
delete font_label_font_metrics;
|
||||
delete font_sub_label_font_metrics;
|
||||
delete font_progress_font_metrics;
|
||||
@ -124,6 +125,18 @@ QFontMetrics *RDFontEngine::sectionLabelFontMetrics() const
|
||||
}
|
||||
|
||||
|
||||
QFont RDFontEngine::bigLabelFont() const
|
||||
{
|
||||
return font_big_label_font;
|
||||
}
|
||||
|
||||
|
||||
QFontMetrics *RDFontEngine::bigLabelFontMetrics() const
|
||||
{
|
||||
return font_big_label_font_metrics;
|
||||
}
|
||||
|
||||
|
||||
QFont RDFontEngine::labelFont() const
|
||||
{
|
||||
return font_label_font;
|
||||
@ -264,6 +277,10 @@ void RDFontEngine::MakeFonts(const QFont &default_font)
|
||||
font_section_label_font.setPixelSize(label_size+2);
|
||||
font_section_label_font_metrics=new QFontMetrics(font_section_label_font);
|
||||
|
||||
font_big_label_font=QFont(family,label_size+4,QFont::Bold);
|
||||
font_big_label_font.setPixelSize(label_size+4);
|
||||
font_big_label_font_metrics=new QFontMetrics(font_label_font);
|
||||
|
||||
font_label_font=QFont(family,label_size,QFont::Bold);
|
||||
font_label_font.setPixelSize(label_size);
|
||||
font_label_font_metrics=new QFontMetrics(font_label_font);
|
||||
|
@ -42,6 +42,8 @@ class RDFontEngine
|
||||
QFontMetrics *subButtonFontMetrics() const;
|
||||
QFont sectionLabelFont() const;
|
||||
QFontMetrics *sectionLabelFontMetrics() const;
|
||||
QFont bigLabelFont() const;
|
||||
QFontMetrics *bigLabelFontMetrics() const;
|
||||
QFont labelFont() const;
|
||||
QFontMetrics *labelFontMetrics() const;
|
||||
QFont subLabelFont() const;
|
||||
@ -69,6 +71,8 @@ class RDFontEngine
|
||||
QFontMetrics *font_sub_button_font_metrics;
|
||||
QFont font_section_label_font;
|
||||
QFontMetrics *font_section_label_font_metrics;
|
||||
QFont font_big_label_font;
|
||||
QFontMetrics *font_big_label_font_metrics;
|
||||
QFont font_label_font;
|
||||
QFontMetrics *font_label_font_metrics;
|
||||
QFont font_sub_label_font;
|
||||
|
Loading…
x
Reference in New Issue
Block a user