Merge pull request #8274 from lioncash/parent

DolphinQt/Config/GameConfigEdit: Pass parent pointer to base class
This commit is contained in:
Léo Lam 2019-07-31 11:07:55 +08:00 committed by GitHub
commit c70da390a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;