fix borked chatbox themes
This commit is contained in:
parent
8163071d90
commit
36a1e26069
@ -308,7 +308,7 @@ public:
|
||||
|
||||
// Returns the dimensions of widget with specified identifier from p_file
|
||||
pos_size_type get_element_dimensions(QString p_identifier, QString p_file,
|
||||
QString p_char = "");
|
||||
QString p_misc = "");
|
||||
|
||||
// Returns the value to you
|
||||
QString get_design_element(QString p_identifier, QString p_file,
|
||||
|
@ -1160,7 +1160,7 @@ void Courtroom::set_size_and_pos(QWidget *p_widget, QString p_identifier,
|
||||
QString filename = "courtroom_design.ini";
|
||||
|
||||
pos_size_type design_ini_result =
|
||||
ao_app->get_element_dimensions(p_identifier, filename, p_char);
|
||||
ao_app->get_element_dimensions(p_identifier, filename, ao_app->get_chat(p_char));
|
||||
|
||||
if (design_ini_result.width < 0 || design_ini_result.height < 0) {
|
||||
qDebug() << "W: could not find \"" << p_identifier << "\" in " << filename;
|
||||
|
@ -318,14 +318,14 @@ QPoint AOApplication::get_button_spacing(QString p_identifier, QString p_file)
|
||||
|
||||
pos_size_type AOApplication::get_element_dimensions(QString p_identifier,
|
||||
QString p_file,
|
||||
QString p_char)
|
||||
QString p_misc)
|
||||
{
|
||||
pos_size_type return_value;
|
||||
return_value.x = 0;
|
||||
return_value.y = 0;
|
||||
return_value.width = -1;
|
||||
return_value.height = -1;
|
||||
QString f_result = get_design_element(p_identifier, p_file, p_char);
|
||||
QString f_result = get_design_element(p_identifier, p_file, p_misc);
|
||||
|
||||
QStringList sub_line_elements = f_result.split(",");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user