mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 20:34:20 +02:00
tabs to spaces
This commit is contained in:
parent
a12e0325bf
commit
b74c1d3476
3 changed files with 10 additions and 10 deletions
|
@ -25,13 +25,13 @@ Window {
|
|||
property real buttonSize: 50;
|
||||
property var buttons: []
|
||||
property var container: horizontal ? row : column
|
||||
property bool constrainToolbarToCenterX: false
|
||||
property bool constrainToolbarToCenterX: false
|
||||
|
||||
Settings {
|
||||
category: "toolbar/" + window.objectName
|
||||
property alias x: window.x
|
||||
property alias y: window.y
|
||||
property alias constrainToolbarToCenterX: window.constrainToolbarToCenterX
|
||||
property alias constrainToolbarToCenterX: window.constrainToolbarToCenterX
|
||||
}
|
||||
|
||||
onHorizontalChanged: {
|
||||
|
|
|
@ -2152,7 +2152,7 @@ void Application::setFieldOfView(float fov) {
|
|||
}
|
||||
|
||||
void Application::setSettingConstrainToolbarPosition(bool setting) {
|
||||
_constrainToolbarPosition.set(setting);
|
||||
_constrainToolbarPosition.set(setting);
|
||||
}
|
||||
|
||||
void Application::aboutApp() {
|
||||
|
|
|
@ -66,14 +66,14 @@ void setupPreferences() {
|
|||
auto getter = [=]()->bool { return myAvatar->getClearOverlayWhenMoving(); };
|
||||
auto setter = [=](bool value) { myAvatar->setClearOverlayWhenMoving(value); };
|
||||
preferences->addPreference(new CheckPreference(AVATAR_BASICS, "Clear overlays when moving", getter, setter));
|
||||
}
|
||||
}
|
||||
|
||||
// UI
|
||||
{
|
||||
auto getter = []()->bool { return qApp->getSettingConstrainToolbarPosition(); };
|
||||
auto setter = [](bool value) { qApp->setSettingConstrainToolbarPosition(!value); };
|
||||
preferences->addPreference(new CheckPreference("UI", "Constrain Toolbar Position to Horizontal Center", getter, setter));
|
||||
}
|
||||
// UI
|
||||
{
|
||||
auto getter = []()->bool { return qApp->getSettingConstrainToolbarPosition(); };
|
||||
auto setter = [](bool value) { qApp->setSettingConstrainToolbarPosition(!value); };
|
||||
preferences->addPreference(new CheckPreference("UI", "Constrain Toolbar Position to Horizontal Center", getter, setter));
|
||||
}
|
||||
|
||||
// Snapshots
|
||||
static const QString SNAPSHOTS { "Snapshots" };
|
||||
|
|
Loading…
Reference in a new issue