more hints that can be prefix-specific
hint-tile-center, hint-stretch-borders and hint-no-border-padding now support prefixes too (of course being retrocompatible)
This commit is contained in:
parent
a916f9c7ed
commit
2710ba75df
@ -1010,9 +1010,9 @@ void FrameSvgPrivate::updateSizes() const
|
||||
|
||||
//since it's rectangular, topWidth and bottomWidth must be the same
|
||||
//the ones that don't have a prefix is for retrocompatibility
|
||||
frame->tileCenter = q->hasElement("hint-tile-center");
|
||||
frame->noBorderPadding = q->hasElement("hint-no-border-padding");
|
||||
frame->stretchBorders = q->hasElement("hint-stretch-borders");
|
||||
frame->tileCenter = (q->hasElement("hint-tile-center") || q->hasElement(prefix % "hint-tile-center"));
|
||||
frame->noBorderPadding = (q->hasElement("hint-no-border-padding") || q->hasElement(prefix % "hint-no-border-padding"));
|
||||
frame->stretchBorders = (q->hasElement("hint-stretch-borders") || q->hasElement(prefix % "hint-stretch-borders"));
|
||||
q->resize(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user