MCPcopy Create free account
hub / github.com/KDE/kdevelop / nameWidth

Method nameWidth

plugins/meson/settings/mesonrewriterinput.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30MesonRewriterInputBase::~MesonRewriterInputBase() {}
31
32int MesonRewriterInputBase::nameWidth()
33{
34 // Make the name a bit (by 25) wider than it actually is to create a margin. Maybe do
35 // something smarter in the future (TODO)
36 return m_ui->l_name->fontMetrics().boundingRect(m_ui->l_name->text()).width() + 25;
37}
38
39void MesonRewriterInputBase::setMinNameWidth(int width)
40{

Callers 2

recalculateLengthsMethod · 0.45
repopulateMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected