mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed minimalSizeForOptimalDisplay in ScriptNodeCell.
Change-Id: I6c5b9d5ec0e1973112a56086123c92c6dedf8456
This commit is contained in:
@@ -31,6 +31,9 @@ void ScriptNodeCell::ScriptNodeView::drawRect(KDContext * ctx, KDRect rect) cons
|
||||
}
|
||||
|
||||
KDSize ScriptNodeCell::ScriptNodeView::minimalSizeForOptimalDisplay() const {
|
||||
if (m_scriptNode->name() == nullptr) {
|
||||
return KDSizeZero;
|
||||
}
|
||||
KDSize size1 = KDText::stringSize(m_scriptNode->name(), k_fontSize);
|
||||
KDSize size2 = KDText::stringSize(m_scriptStore->scriptAtIndex(m_scriptNode->scriptIndex()).name(), k_fontSize);
|
||||
KDSize size3 = KDSizeZero;
|
||||
|
||||
Reference in New Issue
Block a user