mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibGUI: Add ability to disable multiselect for views
This commit is contained in:
parent
f266f0e880
commit
d4c6ae8263
5 changed files with 45 additions and 3 deletions
|
@ -108,6 +108,7 @@ MultiView::MultiView()
|
|||
|
||||
build_actions();
|
||||
set_view_mode(ViewMode::Icon);
|
||||
apply_multi_select();
|
||||
}
|
||||
|
||||
MultiView::~MultiView()
|
||||
|
@ -194,4 +195,21 @@ void MultiView::build_actions()
|
|||
#endif
|
||||
}
|
||||
|
||||
void MultiView::apply_multi_select()
|
||||
{
|
||||
m_table_view->set_multi_select(m_multi_select);
|
||||
m_icon_view->set_multi_select(m_multi_select);
|
||||
#ifdef MULTIVIEW_WITH_COLUMNSVIEW
|
||||
//m_columns_view->set_multi_select(m_multi_select);
|
||||
#endif
|
||||
}
|
||||
|
||||
void MultiView::set_multi_select(bool multi_select)
|
||||
{
|
||||
if (m_multi_select == multi_select)
|
||||
return;
|
||||
m_multi_select = multi_select;
|
||||
apply_multi_select();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue