Skip to content

Commit

Permalink
Set font later (#500)
Browse files Browse the repository at this point in the history
IB-5902

Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma authored and kristelmerilain committed Jul 1, 2019
1 parent 883dda5 commit 8f38aea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/widgets/LabelButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
using namespace ria::qdigidoc4::colors;

LabelButton::LabelButton( QWidget *parent ): QToolButton(parent)
{
setFont(Styles::font(Styles::Condensed, 12));
}
{}

void LabelButton::init( Style style, const QString &label, int code )
{
setText(label);
setFont(Styles::font(Styles::Condensed, 12));
if(!label.isEmpty())
setAccessibleName(label.toLower());
disconnect(connection);
Expand Down

0 comments on commit 8f38aea

Please sign in to comment.