Qt: Add "Clear All" and "Rebind All" to controller bindings

This commit is contained in:
Connor McLaughlin
2020-03-22 00:50:09 +10:00
parent 45050709f2
commit ad6e4cb6e4
5 changed files with 117 additions and 19 deletions

View File

@ -13,6 +13,14 @@
namespace QtUtils {
QFrame* CreateHorizontalLine(QWidget* parent)
{
QFrame* line = new QFrame(parent);
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
return line;
}
QWidget* GetRootWidget(QWidget* widget, bool stop_at_window_or_dialog)
{
QWidget* next_parent = widget->parentWidget();