menu for hide/show colums
This commit is contained in:
parent
c0b2c357ec
commit
fece7bc008
|
@ -80,6 +80,14 @@ game_list_frame::game_list_frame(std::shared_ptr<gui_settings> gui_settings,QWid
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//events
|
||||||
|
connect(m_game_list->horizontalHeader(), &QHeaderView::customContextMenuRequested, this, [this](const QPoint& pos)
|
||||||
|
{
|
||||||
|
QMenu* configure = new QMenu(this);
|
||||||
|
configure->addActions(m_columnActs);
|
||||||
|
configure->exec(m_game_list->horizontalHeader()->viewport()->mapToGlobal(pos));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
game_list_frame::~game_list_frame(){
|
game_list_frame::~game_list_frame(){
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[GameList]
|
||||||
|
visibility_column_path=true
|
||||||
|
visibility_column_icon=true
|
||||||
|
visibility_column_name=true
|
||||||
|
visibility_column_serial=true
|
||||||
|
visibility_column_firmware=true
|
||||||
|
visibility_column_version=true
|
||||||
|
visibility_column_category=true
|
Loading…
Reference in New Issue