Removed icon

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-16 21:23:22 +03:00
parent 9d0175b81a
commit 7441974d9d
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -542,7 +542,7 @@ void InstanceView::paintEvent(QPaintEvent* event)
const QString line2 = "Add an instance to get started.";
auto rect = this->viewport()->rect();
auto font = option.font;
font.setPointSize(64);
font.setPointSize(53);
painter.setFont(font);
auto fm = painter.fontMetrics();
@ -558,14 +558,6 @@ void InstanceView::paintEvent(QPaintEvent* event)
painter.setFont(font);
fm = painter.fontMetrics();
}
// about icon
auto about = QIcon::fromTheme("about");
QRect aboutRect(0, 0, fm.height() * .75, fm.height() * .75);
aboutRect.moveCenter(rect.center());
aboutRect.moveTop(fm.height() * .75);
auto px = about.pixmap(about.actualSize(aboutRect.size()));
if (!px.isNull())
painter.drawPixmap(aboutRect, px);
// text
rect.setTop(rect.top() + fm.height() * 1.5);