aboutsummaryrefslogtreecommitdiff
path: root/src/BodyItem.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-07 01:01:28 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-07 14:24:32 +0100
commitede1a8476acd54941c20b809455ba62b30302a4e (patch)
tree82160da56025e47484c23e8496f1d59b8ddc084f /src/BodyItem.cpp
parent8025d1075db0779bde635148f6e38303eb29d6c8 (diff)
Add option to limit number of lines of text drawn in Text class
Diffstat (limited to 'src/BodyItem.cpp')
-rw-r--r--src/BodyItem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp
index 64d18d4..d62efea 100644
--- a/src/BodyItem.cpp
+++ b/src/BodyItem.cpp
@@ -30,6 +30,8 @@ namespace QuickMedia {
BodyItem& BodyItem::operator=(const BodyItem &other) {
url = other.url;
thumbnail_url = other.thumbnail_url;
+ title_max_lines = other.title_max_lines;
+ description_max_lines = other.description_max_lines;
visible = other.visible;
dirty = !other.title.empty();
dirty_description = !other.description.empty();