gui2/tstacked_widget: Add getter for the total number of layers
This commit is contained in:
parent
4854413f75
commit
86df4a9250
2 changed files with 10 additions and 0 deletions
|
@ -148,4 +148,9 @@ void tstacked_widget::select_layer(const int layer)
|
|||
}
|
||||
}
|
||||
|
||||
unsigned int tstacked_widget::get_layer_count() const
|
||||
{
|
||||
return generator_->get_item_count();
|
||||
}
|
||||
|
||||
} // namespace gui2
|
||||
|
|
|
@ -63,6 +63,11 @@ public:
|
|||
*/
|
||||
void select_layer(const int layer);
|
||||
|
||||
/**
|
||||
* Gets the total number of layers.
|
||||
*/
|
||||
unsigned int get_layer_count() const;
|
||||
|
||||
private:
|
||||
/**
|
||||
* Finishes the building initialization of the widget.
|
||||
|
|
Loading…
Add table
Reference in a new issue