chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
9546c77113
commit
1939e3e6ed
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user