diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-30 13:24:36 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-30 13:24:36 +0300 |
commit | 9038c950aef4a59cc9f928541cb20b010be9a8df (patch) | |
tree | 504b717640347d041253a3067248e5311da96da6 /src/emoji | |
parent | Remove obsolete font/size setting (diff) | |
download | nheko-9038c950aef4a59cc9f928541cb20b010be9a8df.tar.xz |
Remove pixel value from fonts
Diffstat (limited to 'src/emoji')
-rw-r--r-- | src/emoji/Category.cpp | 4 | ||||
-rw-r--r-- | src/emoji/ItemDelegate.cpp | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/emoji/Category.cpp b/src/emoji/Category.cpp index c1b526f2..fbfbf4fc 100644 --- a/src/emoji/Category.cpp +++ b/src/emoji/Category.cpp @@ -67,8 +67,8 @@ Category::Category(QString category, std::vector<Emoji> emoji, QWidget *parent) itemModel_->appendRow(item); } - QFont font("Open Sans SemiBold"); - font.setPixelSize(conf::fontSize); + QFont font; + font.setWeight(QFont::Medium); category_ = new QLabel(category, this); category_->setFont(font); diff --git a/src/emoji/ItemDelegate.cpp b/src/emoji/ItemDelegate.cpp index 2cc838e3..50a1b7ed 100644 --- a/src/emoji/ItemDelegate.cpp +++ b/src/emoji/ItemDelegate.cpp @@ -42,7 +42,6 @@ ItemDelegate::paint(QPainter *painter, auto emoji = index.data(Qt::UserRole).toString(); QFont font("Emoji One"); - font.setPixelSize(19); painter->setFont(font); painter->drawText(viewOption.rect, Qt::AlignCenter, emoji); |