- if (start.startsWith("-100%,0")) info.start = LEFT;
- else if (start.startsWith("100%,0")) info.start = RIGHT;
- else if (start.startsWith("0%,100%")) info.start = DOWN;
- else if (start.startsWith("0%,-100%")) info.start = UP;
- else info.start = CENTER;
- if (start.count(':') == 2) info.startTransparency = start.section(':', -1).toInt();
- else info.startTransparency = 100;
-
- if (end.startsWith("-100%,0")) info.end = LEFT;
- else if (end.startsWith("100%,0")) info.end = RIGHT;
- else if (end.startsWith("0%,100%")) info.end = DOWN;
- else if (end.startsWith("0%,-100%")) info.end = UP;
- else info.end = CENTER;
- if (end.count(':') == 2) info.endTransparency = end.section(':', -1).toInt();
- else info.endTransparency = 100;
+
+ if (start.startsWith("-100%,0"))
+ info.start = LEFT;
+ else if (start.startsWith("100%,0"))
+ info.start = RIGHT;
+ else if (start.startsWith("0%,100%"))
+ info.start = DOWN;
+ else if (start.startsWith("0%,-100%"))
+ info.start = UP;
+ else
+ info.start = CENTER;
+
+ if (start.count(':') == 2)
+ info.startTransparency = start.section(':', -1).toInt();
+ else
+ info.startTransparency = 100;
+
+ if (end.startsWith("-100%,0"))
+ info.end = LEFT;
+ else if (end.startsWith("100%,0"))
+ info.end = RIGHT;
+ else if (end.startsWith("0%,100%"))
+ info.end = DOWN;
+ else if (end.startsWith("0%,-100%"))
+ info.end = UP;
+ else
+ info.end = CENTER;
+
+ if (end.count(':') == 2)
+ info.endTransparency = end.section(':', -1).toInt();
+ else
+ info.endTransparency = 100;
+