aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index ebb180e..5d4e133 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);