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

Function set_form_font

DSView/pv/ui/fn.cpp:89–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 void set_form_font(QWidget *wid, QFont font)
90 {
91 assert(wid);
92
93 auto buttons2 = wid->findChildren<QPushButton*>();
94 for(auto o : buttons2)
95 {
96 o->setFont(font);
97 }
98
99 auto comboxs = wid->findChildren<QComboBox*>();
100 for(auto o : comboxs)
101 {
102 o->setFont(font);
103 }
104
105 auto labels = wid->findChildren<QLabel*>();
106 for(auto o : labels)
107 {
108 o->setFont(font);
109 }
110
111 auto edits = wid->findChildren<QLineEdit*>();
112 for(auto o : edits)
113 {
114 o->setFont(font);
115 }
116
117 auto textEdits = wid->findChildren<QTextEdit*>();
118 for(auto o : textEdits)
119 {
120 o->setFont(font);
121 }
122
123 auto radios = wid->findChildren<QRadioButton*>();
124 for(auto o : radios)
125 {
126 o->setFont(font);
127 }
128
129 auto checks = wid->findChildren<QCheckBox*>();
130 for(auto o : checks)
131 {
132 o->setFont(font);
133 }
134
135 // Magnify the size.
136 font.setPointSizeF(font.pointSizeF() + 1);
137
138 auto tabs = wid->findChildren<QTabWidget*>();
139 for(auto o : tabs)
140 {
141 o->setFont(font);
142 }
143
144 auto groups = wid->findChildren<QGroupBox*>();
145 for(auto o : groups)
146 {

Callers 10

update_fontMethod · 0.85
UpdateFontMethod · 0.85
execMethod · 0.85
UpdateFontMethod · 0.85
UpdateFontMethod · 0.85
UpdateFontMethod · 0.85
UpdateFontMethod · 0.85
show_protocol_selectMethod · 0.85
UpdateFontMethod · 0.85
UpdateFontMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected