[escher] Metric: change name TableCellLabelTopMargin to

TableCellHorizontalMargin and add TableCellHorizontalMargin
This commit is contained in:
Émilie Feral
2019-12-27 17:45:01 +01:00
committed by Léa Saviot
parent d0e2e71e10
commit 5974149162
5 changed files with 9 additions and 8 deletions

View File

@@ -362,7 +362,7 @@ KDCoordinate PythonToolbox::rowHeight(int j) {
* children of the toolbox, which is the only menu that has special height
* rows. */
const ToolboxMessageTree * messageTree = static_cast<const ToolboxMessageTree *>(m_messageTreeModel->children(j));
return k_font->stringSize(I18n::translate(messageTree->label())).height() + 2*Metric::TableCellLabelTopMargin + (messageTree->text() == I18n::Message::Default ? 0 : Toolbox::rowHeight(j));
return k_font->stringSize(I18n::translate(messageTree->label())).height() + 2*Metric::TableCellVerticalMargin + (messageTree->text() == I18n::Message::Default ? 0 : Toolbox::rowHeight(j));
}
return Toolbox::rowHeight(j);
}