From: Mikko Rasa Date: Mon, 23 Sep 2019 18:36:18 +0000 (+0300) Subject: Adjust protections of list item base classes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ab8e29ecf63fa423d045ee71357fc65994e6bd0a;p=libs%2Fgltk.git Adjust protections of list item base classes --- diff --git a/source/list.h b/source/list.h index 1de05f6..4526a48 100644 --- a/source/list.h +++ b/source/list.h @@ -61,8 +61,11 @@ private: }; public: - class Item: public Container + class Item: virtual public Widget, protected Container { + protected: + Item() { } + public: virtual const char *get_class() const { return "listitem"; } @@ -76,17 +79,20 @@ public: class SimpleItem: public Item { - private: + protected: + SimpleItem() { } + virtual void on_style_change(); }; class MultiColumnItem: public Item { protected: + MultiColumnItem() { } + virtual void check_widths(std::vector &) const; virtual void set_widths(const std::vector &); - private: virtual void on_style_change(); };