Commit f8ffaefb authored by Daniel Mensinger's avatar Daniel Mensinger
Browse files

meson: Fixed typos and documentation

parent 56434b43
......@@ -52,7 +52,7 @@ QString MesonRewriterJob::execute()
QTemporaryFile tempFile;
tempFile.setAutoRemove(false);
if (!tempFile.open()) {
return i18n("Failed to create a temorary file");
return i18n("Failed to create a temporary file.");
}
QJsonDocument doc(command);
......
......@@ -82,6 +82,8 @@ MesonOptionBaseView::~MesonOptionBaseView()
int MesonOptionBaseView::nameWidth()
{
// Make the name a bit (by 25) wider than it actually is to create a margin. Maybe do
// something smarter in the future (TODO)
return m_ui->l_name->fontMetrics().boundingRect(m_ui->l_name->text()).width() + 25;
}
......
......@@ -44,6 +44,8 @@ MesonRewriterInputBase::~MesonRewriterInputBase() {}
int MesonRewriterInputBase::nameWidth()
{
// Make the name a bit (by 25) wider than it actually is to create a margin. Maybe do
// something smarter in the future (TODO)
return m_ui->l_name->fontMetrics().boundingRect(m_ui->l_name->text()).width() + 25;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment