MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / GetFont

Method GetFont

src/ui/gd_gui/src/gd_label.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56QFont GDLabel::GetFont(const TextInfo& text_info) {
57 QFont font{ "Microsoft YaHei" };
58 font.setPixelSize(text_info.m_size);
59 font.setBold(text_info.m_blod);
60 return font;
61}
62
63void GDLabel::SetText(const QString& text) {
64 m_text_info.m_text = text;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected