Qt: Implement "Keep Window on top"

This commit is contained in:
spycrab
2018-04-22 10:56:15 +02:00
parent c1dccdc0e5
commit caa18edc79
6 changed files with 33 additions and 4 deletions

View File

@ -130,6 +130,20 @@ bool Settings::GetHideCursor() const
return SConfig::GetInstance().bHideCursor;
}
void Settings::SetKeepWindowOnTop(bool top)
{
if (IsKeepWindowOnTopEnabled() == top)
return;
SConfig::GetInstance().bKeepWindowOnTop = top;
emit KeepWindowOnTopChanged(top);
}
bool Settings::IsKeepWindowOnTopEnabled() const
{
return SConfig::GetInstance().bKeepWindowOnTop;
}
int Settings::GetVolume() const
{
return SConfig::GetInstance().m_Volume;