chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
095de5ed4b
commit
85c23b26de
@ -103,14 +103,8 @@ class Version {
|
|||||||
|
|
||||||
QString m_fullString;
|
QString m_fullString;
|
||||||
|
|
||||||
[[nodiscard]] inline bool isAppendix() const
|
[[nodiscard]] inline bool isAppendix() const { return m_stringPart.startsWith('+'); }
|
||||||
{
|
[[nodiscard]] inline bool isPreRelease() const { return m_stringPart.startsWith('-') && m_stringPart.length() > 1; }
|
||||||
return m_stringPart.startsWith('+');
|
|
||||||
}
|
|
||||||
[[nodiscard]] inline bool isPreRelease() const
|
|
||||||
{
|
|
||||||
return m_stringPart.startsWith('-') && m_stringPart.length() > 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool operator==(const Section& other) const
|
inline bool operator==(const Section& other) const
|
||||||
{
|
{
|
||||||
@ -156,14 +150,8 @@ class Version {
|
|||||||
return m_fullString < other.m_fullString;
|
return m_fullString < other.m_fullString;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool operator!=(const Section& other) const
|
inline bool operator!=(const Section& other) const { return !(*this == other); }
|
||||||
{
|
inline bool operator>(const Section& other) const { return !(*this < other || *this == other); }
|
||||||
return !(*this == other);
|
|
||||||
}
|
|
||||||
inline bool operator>(const Section& other) const
|
|
||||||
{
|
|
||||||
return !(*this < other || *this == other);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -30,7 +30,7 @@ class LogModel : public QAbstractListModel {
|
|||||||
|
|
||||||
enum Roles { LevelRole = Qt::UserRole };
|
enum Roles { LevelRole = Qt::UserRole };
|
||||||
|
|
||||||
private /* types */:
|
private /* types */:
|
||||||
struct entry {
|
struct entry {
|
||||||
MessageLevel::Enum level;
|
MessageLevel::Enum level;
|
||||||
QString line;
|
QString line;
|
||||||
|
@ -151,10 +151,7 @@ class MainWindow : public QMainWindow {
|
|||||||
void deleteGroup();
|
void deleteGroup();
|
||||||
void undoTrashInstance();
|
void undoTrashInstance();
|
||||||
|
|
||||||
inline void on_actionExportInstance_triggered()
|
inline void on_actionExportInstance_triggered() { on_actionExportInstanceZip_triggered(); }
|
||||||
{
|
|
||||||
on_actionExportInstanceZip_triggered();
|
|
||||||
}
|
|
||||||
void on_actionExportInstanceZip_triggered();
|
void on_actionExportInstanceZip_triggered();
|
||||||
void on_actionExportInstanceMrPack_triggered();
|
void on_actionExportInstanceMrPack_triggered();
|
||||||
void on_actionExportInstanceFlamePack_triggered();
|
void on_actionExportInstanceFlamePack_triggered();
|
||||||
|
@ -354,14 +354,8 @@ class ServersModel : public QAbstractListModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override
|
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; }
|
||||||
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)
|
||||||
{
|
{
|
||||||
@ -445,10 +439,7 @@ class ServersModel : public QAbstractListModel {
|
|||||||
qDebug() << "Changed:" << path;
|
qDebug() << "Changed:" << path;
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
void fileChanged(const QString& path)
|
void fileChanged(const QString& path) { qDebug() << "Changed:" << path; }
|
||||||
{
|
|
||||||
qDebug() << "Changed:" << path;
|
|
||||||
}
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void save_internal()
|
void save_internal()
|
||||||
@ -492,10 +483,7 @@ class ServersModel : public QAbstractListModel {
|
|||||||
m_saveTimer.stop();
|
m_saveTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool saveIsScheduled() const
|
bool saveIsScheduled() const { return m_dirty; }
|
||||||
{
|
|
||||||
return m_dirty;
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateFSObserver()
|
void updateFSObserver()
|
||||||
{
|
{
|
||||||
|
@ -220,5 +220,5 @@ void LocalPeer::receiveConnection()
|
|||||||
socket->waitForBytesWritten(1000);
|
socket->waitForBytesWritten(1000);
|
||||||
socket->waitForDisconnected(1000); // make sure client reads ack
|
socket->waitForDisconnected(1000); // make sure client reads ack
|
||||||
delete socket;
|
delete socket;
|
||||||
emit messageReceived(uMsg); //### (might take a long time to return)
|
emit messageReceived(uMsg); // ### (might take a long time to return)
|
||||||
}
|
}
|
||||||
|
@ -353,10 +353,7 @@ class FileSystemTest : public QObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_getDesktop()
|
void test_getDesktop() { QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); }
|
||||||
{
|
|
||||||
QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation));
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_link()
|
void test_link()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user