MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / UpdateFont

Method UpdateFont

DSView/pv/dock/protocoldock.cpp:1069–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069void 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 {

Callers

nothing calls this directly

Calls 2

set_form_fontFunction · 0.85
update_fontMethod · 0.45

Tested by

no test coverage detected