mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
222fe58e25
Without this macro, if any signals or slots were attempted to be used, they wouldn't work; neither would various other features of the Qt meta-object system. This can also lead to weird behavior in other circumstances. Qt's documentation specifically states: "Therefore, we strongly recommend that all subclasses of QObject use the Q_OBJECT macro regardless of whether or not they actually use signals, slots, and properties." on its page for "The Meta-Object System", which can be seen here: https://doc.qt.io/qt-5/metaobjects.html Let's opt for "always do the right thing", and keep the code extensible for the future and not have random things blow up on us.
39 lines
735 B
C++
39 lines
735 B
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
class QGridLayout;
|
|
class QGroupBox;
|
|
class QLineEdit;
|
|
class QListWidget;
|
|
|
|
class PathPane final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PathPane(QWidget* parent = nullptr);
|
|
|
|
private:
|
|
void Browse();
|
|
void BrowseDefaultGame();
|
|
void BrowseWiiNAND();
|
|
void BrowseDump();
|
|
void BrowseSDCard();
|
|
QGroupBox* MakeGameFolderBox();
|
|
QGridLayout* MakePathsLayout();
|
|
void RemovePath();
|
|
|
|
void OnSDCardPathChanged();
|
|
void OnNANDPathChanged();
|
|
|
|
QListWidget* m_path_list;
|
|
QLineEdit* m_game_edit;
|
|
QLineEdit* m_nand_edit;
|
|
QLineEdit* m_dump_edit;
|
|
QLineEdit* m_sdcard_edit;
|
|
};
|