mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed settingsdialogtab image being offset
This commit is contained in:
parent
9703cf6ad4
commit
cec6f7ce9d
1 changed files with 2 additions and 2 deletions
|
@ -50,11 +50,11 @@ void SettingsDialogTab::paintEvent(QPaintEvent *)
|
||||||
int a = (this->height() - 20) / 2;
|
int a = (this->height() - 20) / 2;
|
||||||
QPixmap pixmap = this->ui.icon.pixmap(QSize(20, 20));
|
QPixmap pixmap = this->ui.icon.pixmap(QSize(20, 20));
|
||||||
|
|
||||||
painter.drawPixmap(0, a + a, pixmap);
|
painter.drawPixmap(a, a, pixmap);
|
||||||
|
|
||||||
a = a + a + 20;
|
a = a + a + 20;
|
||||||
|
|
||||||
painter.drawText(QRect(a, 0, width() - a, height()), this->ui.labelText,
|
painter.drawText(QRect(a + a, 0, width() - a, height()), this->ui.labelText,
|
||||||
QTextOption(Qt::AlignLeft | Qt::AlignVCenter));
|
QTextOption(Qt::AlignLeft | Qt::AlignVCenter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue