kuru
Who the heck is Stephan Kramer?
I'm trying to compile the latest Drawpile. After working out dependencies in baby steps, make now fails complaining over the prototype of a Qt function qBound
The code looks like this:
I guess that the problem is caused by different data types for the arguments of that qBound() function and how it is called in the above snippet. Am I interpreting the Qt example page linked above correctly? Is the implementation just wrong? What's the proper way to go about fixing things from here on out? Maybe it's best to talk to the Drawpile authors first?
I'm all ears for your suggestions.
The code looks like this:
Code:
void KisCubicCurve::fromString(const QString& string)
{
QStringList data = string.split(';');
QList<QPointF> points;
foreach(const QString & pair, data) {
if (pair.indexOf(',') > -1) {
QPointF p;
p.rx() = qBound(0.0, pair.section(',', 0, 0).toDouble(), 1.0);
p.ry() = qBound(0.0, pair.section(',', 1, 1).toDouble(), 1.0);
points.append(p);
}
}
if(points.size() < 2)
points = { {0.0, 0.0}, {1.0, 1.0} };
setPoints(points);
}
I guess that the problem is caused by different data types for the arguments of that qBound() function and how it is called in the above snippet. Am I interpreting the Qt example page linked above correctly? Is the implementation just wrong? What's the proper way to go about fixing things from here on out? Maybe it's best to talk to the Drawpile authors first?
I'm all ears for your suggestions.