| 1067 | } |
| 1068 | |
| 1069 | void ProtocolDock::UpdateFont() |
| 1070 | { |
| 1071 | QFont font = this->font(); |
| 1072 | font.setPointSizeF(AppConfig::Instance().appOptions.fontSize); |
| 1073 | ui::set_form_font(this, font); |
| 1074 | _table_view->setFont(font); |
| 1075 | |
| 1076 | for(auto lay : _protocol_lay_items){ |
| 1077 | lay->update_font(); |
| 1078 | } |
| 1079 | |
| 1080 | font.setPointSizeF(font.pointSizeF() + 1); |
| 1081 | this->parentWidget()->setFont(font); |
| 1082 | _table_view->horizontalHeader()->setFont(font); |
| 1083 | _table_view->verticalHeader()->setFont(font); |
| 1084 | |
| 1085 | |
| 1086 | _table_view->setObjectName("DecodedDataView"); |
| 1087 | QString style = "#DecodedDataView QHeaderView{font-size: %1pt}"; |
| 1088 | style = style.arg(AppConfig::Instance().appOptions.fontSize); |
| 1089 | _table_view->setStyleSheet(style); |
| 1090 | |
| 1091 | adjustPannelSize(); |
| 1092 | } |
| 1093 | |
| 1094 | void ProtocolDock::adjustPannelSize() |
| 1095 | { |
nothing calls this directly
no test coverage detected