From 42bb9bb63a957944a032a4f48db502a7cbd9b74c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 23 Apr 2017 21:31:08 +0300 Subject: Add full emoji support --- src/ui/FlatButton.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui') diff --git a/src/ui/FlatButton.cc b/src/ui/FlatButton.cc index de0bf106..e860e7d7 100644 --- a/src/ui/FlatButton.cc +++ b/src/ui/FlatButton.cc @@ -472,11 +472,11 @@ void FlatButton::paintForeground(QPainter *painter) QRect textGeometry(pos + QPoint(0, base.height() / 2), textSize); QRect iconGeometry(pos + QPoint(0, (height() - iconSize().height()) / 2), iconSize()); - if (ui::LeftIcon == icon_placement_) { - textGeometry.translate(iw, 0); - } else { - iconGeometry.translate(textSize.width() + IconPadding, 0); - } + /* if (ui::LeftIcon == icon_placement_) { */ + /* textGeometry.translate(iw, 0); */ + /* } else { */ + /* iconGeometry.translate(textSize.width() + IconPadding, 0); */ + /* } */ painter->drawText(textGeometry, Qt::AlignCenter, text()); -- cgit 1.5.1