diff options
| author | Skoland <Skoland> | 2017-02-18 07:24:34 +0100 |
|---|---|---|
| committer | Skoland <Skoland> | 2017-02-18 07:24:34 +0100 |
| commit | 0cbb6e765f18f8c1fbc3b82959053e2a0c49307f (patch) | |
| tree | f3ac8a4e645e8da738490557c8b94f2b526225e7 | |
| parent | 07ce459c883727ad3d26185d20b211b2212b21b6 (diff) | |
fixed a bug where setting font size on showname would not work
| -rw-r--r-- | courtroom.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/courtroom.cpp b/courtroom.cpp index ebb180e3..5d4e1338 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -379,13 +379,6 @@ void Courtroom::set_widgets() ui_vp_chatbox->hide(); set_size_and_pos(ui_vp_showname, "showname"); - QFont pt_8 = ui_vp_showname->font(); - QFont pt_9 = ui_vp_showname->font(); - QFont pt_10 = ui_vp_showname->font(); - pt_8.setPointSize(8); - pt_9.setPointSize(9); - pt_10.setPointSize(10); - ui_vp_showname->setFont(pt_8); ui_vp_showname->setStyleSheet("background-color: rgba(0, 0, 0, 0);" "color: white;"); @@ -563,11 +556,6 @@ void Courtroom::set_widgets() } -void Courtroom::set_font(QWidget *widget, int weight) -{ - widget->setFont(QFont("Sans", weight)); -} - void Courtroom::set_fonts() { QString design_file = "courtroom_fonts.ini"; @@ -579,6 +567,11 @@ void Courtroom::set_fonts() set_font(ui_server_chatlog, ao_app->get_font_size("server_chatlog", design_file)); } +void Courtroom::set_font(QWidget *widget, int weight) +{ + widget->setFont(QFont("Sans", weight)); +} + void Courtroom::set_window_title(QString p_title) { this->setWindowTitle(p_title); |
