QML ServerContainers page refact
This commit is contained in:
parent
9ae2e3fba2
commit
0faf6c8599
90 changed files with 5651 additions and 125 deletions
|
@ -9,7 +9,7 @@ ProtocolsModel::ProtocolsModel(QObject *parent) :
|
|||
int ProtocolsModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
return amnezia::allContainers().size();
|
||||
return amnezia::allProtocols().size();
|
||||
}
|
||||
|
||||
QHash<int, QByteArray> ProtocolsModel::roleNames() const {
|
||||
|
@ -55,7 +55,7 @@ void ProtocolsModel::setSelectedServerIndex(int index)
|
|||
endResetModel();
|
||||
}
|
||||
|
||||
void ProtocolsModel::setSelectedDockerContainer(DockerContainer c)
|
||||
void ProtocolsModel::setSelectedDockerContainer(amnezia::DockerContainer c)
|
||||
{
|
||||
beginResetModel();
|
||||
m_selectedDockerContainer = c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue