diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 09:02:15 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-15 09:02:15 +0200 |
commit | 1939e3e6ed3d2d2d4199d90154333cc8892eafeb (patch) | |
tree | 60e00c8389bb2d8e4be492531beb788a253d1b6a | |
parent | 9546c771139bd5708ab4096ab15ffd39a15bed18 (diff) | |
download | PrismLauncher-1939e3e6ed3d2d2d4199d90154333cc8892eafeb.tar.gz PrismLauncher-1939e3e6ed3d2d2d4199d90154333cc8892eafeb.tar.bz2 PrismLauncher-1939e3e6ed3d2d2d4199d90154333cc8892eafeb.zip |
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r-- | launcher/ui/pages/instance/ServersPage.cpp | 20 | ||||
-rw-r--r-- | tests/FileSystem_test.cpp | 5 |
2 files changed, 20 insertions, 5 deletions
diff --git a/launcher/ui/pages/instance/ServersPage.cpp b/launcher/ui/pages/instance/ServersPage.cpp index 5c31f73b..da49f4a7 100644 --- a/launcher/ui/pages/instance/ServersPage.cpp +++ b/launcher/ui/pages/instance/ServersPage.cpp @@ -354,8 +354,14 @@ class ServersModel : public QAbstractListModel { } } - virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override { return parent.isValid() ? 0 : m_servers.size(); } - int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : COLUMN_COUNT; } + virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override + { + return parent.isValid() ? 0 : m_servers.size(); + } + int columnCount(const QModelIndex& parent) const override + { + return parent.isValid() ? 0 : COLUMN_COUNT; + } Server* at(int index) { @@ -439,7 +445,10 @@ class ServersModel : public QAbstractListModel { qDebug() << "Changed:" << path; load(); } - void fileChanged(const QString& path) { qDebug() << "Changed:" << path; } + void fileChanged(const QString& path) + { + qDebug() << "Changed:" << path; + } private slots: void save_internal() @@ -483,7 +492,10 @@ class ServersModel : public QAbstractListModel { m_saveTimer.stop(); } - bool saveIsScheduled() const { return m_dirty; } + bool saveIsScheduled() const + { + return m_dirty; + } void updateFSObserver() { diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp index 1d3cee85..e1941042 100644 --- a/tests/FileSystem_test.cpp +++ b/tests/FileSystem_test.cpp @@ -353,7 +353,10 @@ class FileSystemTest : public QObject { } } - void test_getDesktop() { QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); } + void test_getDesktop() + { + QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); + } void test_link() { |