Draw code optimization

This commit is contained in:
2018-11-13 01:01:36 +01:00
parent 61868b9544
commit 03fbf4643d
6 changed files with 28 additions and 26 deletions

View File

@ -140,7 +140,7 @@ Text::~Text()
delete _items[i];
}
void Text::render(QPainter *painter)
void Text::render(QPainter *painter) const
{
for (int i = 0; i < _items.size(); i++) {
const TextItem *ti = _items.at(i);