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 /launcher/ui | |
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>
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/pages/instance/ServersPage.cpp | 20 |
1 files changed, 16 insertions, 4 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() { |