Skip to content

Commit

Permalink
Merge pull request #4029 from neobrain/refactor_fexqonfic_followups
Browse files Browse the repository at this point in the history
FEXQonfig: Minor followup changes
  • Loading branch information
Sonicadvance1 authored Sep 3, 2024
2 parents b368223 + fc76d4e commit c74df6a
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions FEXCore/Source/Utils/SpinWaitLock.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
#include "Utils/SpinWaitLock.h"

namespace FEXCore::Utils::SpinWaitLock {
Expand Down
2 changes: 1 addition & 1 deletion Source/Tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (NOT MINGW_BUILD)
if (USE_FEXCONFIG_TOOLKIT STREQUAL "imgui")
add_subdirectory(FEXConfig/)
elseif (USE_FEXCONFIG_TOOLKIT STREQUAL "qt")
find_package(Qt6 COMPONENTS Qml Quick Widgets)
find_package(Qt6 COMPONENTS Qml Quick Widgets QUIET)
if (NOT Qt6_FOUND)
find_package(Qt5 COMPONENTS Qml Quick Widgets REQUIRED)
endif()
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
#include "Main.h"

#include <Common/Config.h>
Expand Down
3 changes: 1 addition & 2 deletions Source/Tools/FEXQonfig/Main.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
#include <QStandardItemModel>
#include <QQmlApplicationEngine>

Expand Down Expand Up @@ -56,8 +57,6 @@ public slots:
QUrl getBaseUrl() const;
};

#include <QApplication>

class ConfigRuntime : public QObject {
Q_OBJECT

Expand Down
5 changes: 2 additions & 3 deletions Source/Tools/FEXQonfig/main.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
Expand Down Expand Up @@ -592,19 +593,16 @@ ApplicationWindow {
visible: tso2.checked

ConfigCheckBox {
leftPadding: 24
text: qsTr("... for vector instructions")
tooltip: qsTr("Controls TSO emulation on vector load/store instructions")
config: "VectorTSOEnabled"
}
ConfigCheckBox {
leftPadding: 24
text: qsTr("... for memcpy instructions")
tooltip: qsTr("Controls TSO emulation on memcpy/memset instructions")
config: "MemcpySetTSOEnabled"
}
ConfigCheckBox {
leftPadding: 24
text: qsTr("... for unaligned half-barriers")
tooltip: qsTr("Controls half-barrier TSO emulation on unaligned load/store instructions")
config: "HalfBarrierTSOEnabled"
Expand All @@ -620,6 +618,7 @@ ApplicationWindow {
}

ConfigCheckBox {
topPadding: 4
text: qsTr("Enable non-tearing split-lock atomics")
config: "StrictInProcessSplitLocks"
}
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt5/FileDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick.Dialogs 1.3 as FromQt

FromQt.FileDialog {
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt5/FolderDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick.Dialogs 1.3 as FromQt

FromQt.FileDialog {
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt5/MessageDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick 2.15
import QtQuick.Dialogs 1.3 as FromQt

Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt6/FileDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick.Dialogs as FromQt

FromQt.FileDialog {
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt6/FolderDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick.Dialogs as FromQt

FromQt.FolderDialog {
Expand Down
1 change: 1 addition & 0 deletions Source/Tools/FEXQonfig/qt6/MessageDialog.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
import QtQuick.Dialogs as FromQt

FromQt.MessageDialog {
Expand Down

0 comments on commit c74df6a

Please sign in to comment.