Fixed build for Xcode. Round cap used in radial animations.

This commit is contained in:
John Preston 2016-11-28 16:42:37 +03:00
parent 3da0533339
commit 26c08236cd
4 changed files with 16 additions and 1 deletions

View File

@ -768,4 +768,8 @@ void Widget::Step::finished() {
hide();
}
Widget::Step::CoverAnimation::~CoverAnimation() = default;
Widget::Step::~Step() = default;
} // namespace Intro

View File

@ -126,6 +126,8 @@ public:
showError(QString());
}
~Step();
protected:
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
@ -159,6 +161,11 @@ public:
private:
struct CoverAnimation {
CoverAnimation() = default;
CoverAnimation(CoverAnimation &&other) = default;
CoverAnimation &operator=(CoverAnimation &&other) = default;
~CoverAnimation();
std_::unique_ptr<Ui::CrossFadeAnimation> title;
std_::unique_ptr<Ui::CrossFadeAnimation> description;

View File

@ -140,7 +140,10 @@ void EmojiButton::paintEvent(QPaintEvent *e) {
icon->paint(p, _st.iconPosition, width());
p.setOpacity(1.);
p.setPen(QPen(over ? st::historyEmojiCircleFgOver : st::historyEmojiCircleFg, st::historyEmojiCircleLine));
auto pen = (over ? st::historyEmojiCircleFgOver : st::historyEmojiCircleFg)->p;
pen.setWidth(st::historyEmojiCircleLine);
pen.setCapStyle(Qt::RoundCap);
p.setPen(pen);
p.setBrush(Qt::NoBrush);
p.setRenderHint(QPainter::HighQualityAntialiasing);

View File

@ -76,6 +76,7 @@ void RadialAnimation::draw(Painter &p, const QRect &inner, int32 thickness, cons
QPen pen(color->p), was(p.pen());
pen.setWidth(thickness);
pen.setCapStyle(Qt::RoundCap);
p.setPen(pen);
int32 len = MinArcLength + a_arcEnd.current();