mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
* removed CDockWidgetsSettings (note Widgets, not Widget) * goal: Use CDockWidgetSettings for all dock widgets refs #684
This commit is contained in:
@@ -149,25 +149,5 @@ namespace BlackGui
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CDockWidgetSettings CDockWidgetsSettings::getByNameOrInitToDefault(const QString &name)
|
||||
{
|
||||
if (this->contains(name)) { return this->value(name); }
|
||||
CDockWidgetSettings s;
|
||||
|
||||
// default values can be set here, this could be enhanced if needed
|
||||
// e.g. by platform dependent defaults
|
||||
s.reset();
|
||||
this->insert(name, s);
|
||||
return s;
|
||||
}
|
||||
|
||||
void CDockWidgetsSettings::resetToDefaults(const QString &name)
|
||||
{
|
||||
if (this->contains(name))
|
||||
{
|
||||
this->remove(name);
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user