Added new icon for "collapse sidebar"

+ The tooltip for a "Collapse" button is updated according to the collapse state
This commit is contained in:
YuSanka 2020-03-30 11:53:58 +02:00
parent ab02d344e4
commit abad9133eb
4 changed files with 38 additions and 3 deletions

View file

@ -406,6 +406,12 @@ void GLToolbar::set_additional_tooltip(int item_id, const std::string& text)
m_items[item_id]->set_additional_tooltip(text);
}
void GLToolbar::set_tooltip(int item_id, const std::string& text)
{
if (0 <= item_id && item_id < (int)m_items.size())
m_items[item_id]->set_tooltip(text);
}
bool GLToolbar::update_items_state()
{
bool ret = false;