Basic version of ConnectionTreeModel is working.
This commit is contained in:
parent
3721808df4
commit
8840d3bcbb
8 changed files with 348 additions and 3 deletions
|
|
@ -57,6 +57,16 @@ ConnectionConfig::ConnectionConfig()
|
|||
: m_applicationName(QCoreApplication::applicationName().toUtf8().data())
|
||||
{}
|
||||
|
||||
ConnectionGroup *ConnectionConfig::parent()
|
||||
{
|
||||
return m_group;
|
||||
}
|
||||
|
||||
void ConnectionConfig::setParent(ConnectionGroup *grp)
|
||||
{
|
||||
m_group = grp;
|
||||
}
|
||||
|
||||
|
||||
void ConnectionConfig::setUuid(const QUuid &uuid)
|
||||
{
|
||||
|
|
@ -347,3 +357,9 @@ void ConnectionConfig::strToEnv(QProcessEnvironment &env, const QString &var, co
|
|||
else
|
||||
env.insert(var, stdStrToQ(val));
|
||||
}
|
||||
|
||||
void ConnectionGroup::add(std::shared_ptr<ConnectionConfig> cc)
|
||||
{
|
||||
cc->setParent(this);
|
||||
m_connections.push_back(cc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue