Implement global hook feature for Qt

This commit is contained in:
baldurk
2017-07-12 13:54:12 +01:00
parent bf220eed88
commit 0032a11fc2
9 changed files with 215 additions and 6 deletions
@@ -259,6 +259,9 @@ bool PersistantConfig::Load(const QString &filename)
bool PersistantConfig::Save()
{
if(m_Filename.isEmpty())
return true;
// update serialize list
RemoteHostList.clear();
for(RemoteHost *host : RemoteHosts)
@@ -269,6 +272,11 @@ bool PersistantConfig::Save()
return Serialize(m_Filename);
}
void PersistantConfig::Close()
{
m_Filename = QString();
}
void PersistantConfig::SetupFormatting()
{
Formatter::setParams(*this);