mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Ref T529, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
f363d4f41b
commit
aa47d7bb03
@@ -171,7 +171,7 @@ namespace BlackGui
|
||||
|
||||
bool CColumns::isSortable(int column) const
|
||||
{
|
||||
if (!isValidColumn(column)) return false;
|
||||
if (!isValidColumn(column)) { return false; }
|
||||
return m_columns.at(column).isSortable();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,10 +18,7 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
class QObject;
|
||||
|
||||
namespace BlackMisc { namespace Simulation { class CDistributor; } }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Models
|
||||
@@ -47,7 +44,7 @@ namespace BlackGui
|
||||
explicit CDistributorListModel(QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CDistributorListModel() {}
|
||||
virtual ~CDistributorListModel() override {}
|
||||
|
||||
//! Set mode
|
||||
void setDistributorMode(DistributorMode distributorMode);
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
const bool changedColumn = this->setSortColumnByPropertyIndex(propertyIndex);
|
||||
const bool changedOrder = (m_sortOrder == order);
|
||||
const bool changedOrder = (m_sortOrder == order);
|
||||
m_sortOrder = order;
|
||||
return changedColumn || changedOrder;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,10 @@
|
||||
#ifndef BLACKGUI_MODELS_STATUSMESSAGELISTMODEL_H
|
||||
#define BLACKGUI_MODELS_STATUSMESSAGELISTMODEL_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/models/listmodeltimestampobjects.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
|
||||
class QObject;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Models
|
||||
|
||||
Reference in New Issue
Block a user