AUTO_PROPERTY finished
This commit is contained in:
parent
63ffa4a212
commit
16e887dcf0
34 changed files with 510 additions and 3156 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "ServerListLogic.h"
|
||||
|
||||
#include "vpnconnection.h"
|
||||
#include "../serversmodel.h"
|
||||
#include "../uilogic.h"
|
||||
|
||||
ServerListLogic::ServerListLogic(UiLogic *logic, QObject *parent):
|
||||
|
|
@ -10,11 +11,6 @@ ServerListLogic::ServerListLogic(UiLogic *logic, QObject *parent):
|
|||
|
||||
}
|
||||
|
||||
QObject* ServerListLogic::getServerListModel() const
|
||||
{
|
||||
return m_serverListModel;
|
||||
}
|
||||
|
||||
void ServerListLogic::onServerListPushbuttonDefaultClicked(int index)
|
||||
{
|
||||
m_settings.setDefaultServer(index);
|
||||
|
|
@ -43,5 +39,5 @@ void ServerListLogic::updateServersListPage()
|
|||
c.isDefault = (i == defaultServer);
|
||||
serverListContent.push_back(c);
|
||||
}
|
||||
m_serverListModel->setContent(serverListContent);
|
||||
qobject_cast<ServersModel*>(m_serverListModel)->setContent(serverListContent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue