chore: reformat

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-08-15 09:02:15 +02:00
parent 9546c77113
commit 1939e3e6ed
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951
2 changed files with 20 additions and 5 deletions

View File

@ -354,8 +354,14 @@ class ServersModel : public QAbstractListModel {
} }
} }
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override { return parent.isValid() ? 0 : m_servers.size(); } virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override
int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : COLUMN_COUNT; } {
return parent.isValid() ? 0 : m_servers.size();
}
int columnCount(const QModelIndex& parent) const override
{
return parent.isValid() ? 0 : COLUMN_COUNT;
}
Server* at(int index) Server* at(int index)
{ {
@ -439,7 +445,10 @@ class ServersModel : public QAbstractListModel {
qDebug() << "Changed:" << path; qDebug() << "Changed:" << path;
load(); load();
} }
void fileChanged(const QString& path) { qDebug() << "Changed:" << path; } void fileChanged(const QString& path)
{
qDebug() << "Changed:" << path;
}
private slots: private slots:
void save_internal() void save_internal()
@ -483,7 +492,10 @@ class ServersModel : public QAbstractListModel {
m_saveTimer.stop(); m_saveTimer.stop();
} }
bool saveIsScheduled() const { return m_dirty; } bool saveIsScheduled() const
{
return m_dirty;
}
void updateFSObserver() void updateFSObserver()
{ {

View File

@ -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() void test_link()
{ {