mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Use kind-of-factory approach for widget builders
This commit is contained in:
@@ -72,10 +72,8 @@ public:
|
||||
void clickLeft(tribool down, bool previousState) override;
|
||||
void setTemplate(const CRmgTemplate *);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<CIntObject> buildCustomWidget(const JsonNode & config) override;
|
||||
|
||||
private:
|
||||
std::shared_ptr<CIntObject> buildListItem(const JsonNode & config);
|
||||
|
||||
void sliderMove(int slidPos);
|
||||
void updateListItems();
|
||||
|
||||
Reference in New Issue
Block a user