mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #8274 from lioncash/parent
DolphinQt/Config/GameConfigEdit: Pass parent pointer to base class
This commit is contained in:
commit
c70da390a7
@ -21,8 +21,8 @@
|
||||
#include "DolphinQt/Config/GameConfigHighlighter.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
|
||||
GameConfigEdit::GameConfigEdit(QWidget* parent, const QString& path, bool read_only)
|
||||
: m_path(path), m_read_only(read_only)
|
||||
GameConfigEdit::GameConfigEdit(QWidget* parent, QString path, bool read_only)
|
||||
: QWidget{parent}, m_path(std::move(path)), m_read_only(read_only)
|
||||
{
|
||||
CreateWidgets();
|
||||
|
||||
|
@ -16,7 +16,7 @@ class QTextEdit;
|
||||
class GameConfigEdit : public QWidget
|
||||
{
|
||||
public:
|
||||
explicit GameConfigEdit(QWidget* parent, const QString& path, bool read_only);
|
||||
explicit GameConfigEdit(QWidget* parent, QString path, bool read_only);
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
Loading…
Reference in New Issue
Block a user