mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:47:51 +02:00
Moved function into .cpp
This commit is contained in:
parent
05023a2585
commit
c67e42be5e
2 changed files with 8 additions and 6 deletions
|
@ -1505,3 +1505,10 @@ void Menu::removeMenuItem(const QString& menu, const QString& menuitem) {
|
||||||
QMenuBar::repaint();
|
QMenuBar::repaint();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QString Menu::getSnapshotsLocation() const {
|
||||||
|
if (_snapshotsLocation.isNull() || _snapshotsLocation.isEmpty() || QDir(_snapshotsLocation).exists() == false) {
|
||||||
|
return QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
||||||
|
}
|
||||||
|
return _snapshotsLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,12 +81,7 @@ public:
|
||||||
void setFieldOfView(float fieldOfView) { _fieldOfView = fieldOfView; }
|
void setFieldOfView(float fieldOfView) { _fieldOfView = fieldOfView; }
|
||||||
float getFaceshiftEyeDeflection() const { return _faceshiftEyeDeflection; }
|
float getFaceshiftEyeDeflection() const { return _faceshiftEyeDeflection; }
|
||||||
void setFaceshiftEyeDeflection(float faceshiftEyeDeflection) { _faceshiftEyeDeflection = faceshiftEyeDeflection; }
|
void setFaceshiftEyeDeflection(float faceshiftEyeDeflection) { _faceshiftEyeDeflection = faceshiftEyeDeflection; }
|
||||||
QString getSnapshotsLocation() const {
|
QString getSnapshotsLocation() const;
|
||||||
if (_snapshotsLocation.isNull() || _snapshotsLocation.isEmpty() || QDir(_snapshotsLocation).exists() == false) {
|
|
||||||
return QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
|
||||||
}
|
|
||||||
return _snapshotsLocation;
|
|
||||||
}
|
|
||||||
void setSnapshotsLocation(QString snapshotsLocation) { _snapshotsLocation = snapshotsLocation; }
|
void setSnapshotsLocation(QString snapshotsLocation) { _snapshotsLocation = snapshotsLocation; }
|
||||||
|
|
||||||
BandwidthDialog* getBandwidthDialog() const { return _bandwidthDialog; }
|
BandwidthDialog* getBandwidthDialog() const { return _bandwidthDialog; }
|
||||||
|
|
Loading…
Reference in a new issue