Commit 32df78c7 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov Committed by Orgad Shaneh

ProjectExplorer: fix compilation

ceil was not defined

Change-Id: I9dd7c0ab8f826da998b491864abb546819afc5a5
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 4832cdf7
......@@ -33,6 +33,8 @@
#include <QPushButton>
#include <QVBoxLayout>
#include <cmath>
using namespace ProjectExplorer::Internal;
class TargetSettingsWidgetHeader : public QWidget
......@@ -53,7 +55,7 @@ public:
QPainter p(this);
static const QPixmap bg(Utils::StyleHelper::dpiSpecificImageFile(
QLatin1String(":/projectexplorer/images/targetseparatorbackground.png")));
const int tileCount = int(ceil(qreal(width()) / bg.width() * devicePixelRatio()));
const int tileCount = int(std::ceil(qreal(width()) / bg.width() * devicePixelRatio()));
for (int tile = 0; tile < tileCount; ++tile)
p.drawPixmap(tile * bg.width() / devicePixelRatio(), 0, bg);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment