summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authormujx <mujx@users.noreply.github.com>2018-02-08 14:26:08 +0200
committerGitHub <noreply@github.com>2018-02-08 14:26:08 +0200
commit54582cab3a56b10d5a7203d7386acd291e9b6e7d (patch)
tree67225d08bd58cae08557bbabb6bb35f1e2c69dc5 /include
parentMerge pull request #231 from xvitaly/fedora (diff)
parentCreate new font for checkmark (diff)
downloadnheko-54582cab3a56b10d5a7203d7386acd291e9b6e7d.tar.xz
Merge pull request #227 from christarazi/fix-text-wrap-checkmark
Create space for checkmark beforehand

fixes #217 
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineItem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h

index 525cd6e1..c499957b 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h
@@ -137,6 +137,7 @@ private: QFont font_; QLabel *timestamp_; + QLabel *checkmark_; QLabel *userName_; QLabel *body_; }; @@ -181,6 +182,7 @@ TimelineItem::setupLocalWidgetLayout(Widget *widget, messageLayout_->addLayout(widgetLayout, 1); } + messageLayout_->addWidget(checkmark_); messageLayout_->addWidget(timestamp_); mainLayout_->addLayout(messageLayout_); } @@ -231,6 +233,7 @@ TimelineItem::setupWidgetLayout(Widget *widget, messageLayout_->addLayout(widgetLayout, 1); } + messageLayout_->addWidget(checkmark_); messageLayout_->addWidget(timestamp_); mainLayout_->addLayout(messageLayout_); }