diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2020-04-18 23:05:52 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2020-04-18 23:05:52 +0100 |
commit | 706b7fc38c4ed4769a3a1a8602e729b672f13118 (patch) | |
tree | 1ae3124a5d70323828f2affb78ffbac82b9e08eb /src/data/style.cpp | |
parent | ef07176e5c5c8e2aa9ea5a380000302234f2934c (diff) |
set no fill and no draw
Diffstat (limited to 'src/data/style.cpp')
-rw-r--r-- | src/data/style.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/style.cpp b/src/data/style.cpp index fe33ee0..af6a13f 100644 --- a/src/data/style.cpp +++ b/src/data/style.cpp @@ -67,6 +67,16 @@ QBrush Style::brush() const else return QBrush(tikzit->colorByName(col));
}
+bool Style::hasFill() const
+{
+ return (propertyWithDefault("fill", "none") != "none");
+}
+
+bool Style::hasStroke() const
+{
+ return (propertyWithDefault("draw", "none") != "none");
+}
+
QString Style::shape(bool tikzitOverride) const
{
return propertyWithDefault("shape", "circle", tikzitOverride);
|