mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
refs #849, use timestamp with server to indicate when login started
* CServer -> ITimestampBased * added compare functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5f18707c9c
commit
dcfaca431c
@@ -21,7 +21,7 @@ namespace BlackGui
|
||||
namespace Models
|
||||
{
|
||||
CServerListModel::CServerListModel(QObject *parent) :
|
||||
CListModelBase("ModelServerList", parent)
|
||||
CListModelBase("ServerListModel", parent)
|
||||
{
|
||||
this->m_columns.addColumn(CColumn::standardString("name", CServer::IndexName));
|
||||
this->m_columns.addColumn(CColumn::standardString("description", CServer::IndexDescription));
|
||||
@@ -31,12 +31,12 @@ namespace BlackGui
|
||||
this->m_columns.addColumn(CColumn::standardString("userid", { CServer::IndexUser, CUser::IndexId}));
|
||||
|
||||
// force strings for translation in resource files
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "name");
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "description");
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "address");
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "port");
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "realname");
|
||||
(void)QT_TRANSLATE_NOOP("ModelServerList", "userid");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "name");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "description");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "address");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "port");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "realname");
|
||||
(void)QT_TRANSLATE_NOOP("ServerListModel", "userid");
|
||||
}
|
||||
|
||||
} // class
|
||||
|
||||
@@ -25,10 +25,9 @@ namespace BlackGui
|
||||
namespace Models
|
||||
{
|
||||
//! Server list model
|
||||
class BLACKGUI_EXPORT CServerListModel : public CListModelBase<BlackMisc::Network::CServer, BlackMisc::Network::CServerList>
|
||||
class BLACKGUI_EXPORT CServerListModel : public CListModelBase<BlackMisc::Network::CServer, BlackMisc::Network::CServerList, true>
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
explicit CServerListModel(QObject *parent = nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user