mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:17:02 +02:00
ADDED the fields in interface-preferences for display name editting
This commit is contained in:
parent
4d55f35b1b
commit
c957dcceb5
3 changed files with 15 additions and 0 deletions
|
@ -770,6 +770,11 @@ void Menu::editPreferences() {
|
||||||
skeletonURLEdit->setMinimumWidth(QLINE_MINIMUM_WIDTH);
|
skeletonURLEdit->setMinimumWidth(QLINE_MINIMUM_WIDTH);
|
||||||
form->addRow("Skeleton URL:", skeletonURLEdit);
|
form->addRow("Skeleton URL:", skeletonURLEdit);
|
||||||
|
|
||||||
|
QString displayNameString = applicationInstance->getProfile()->getDisplayName();
|
||||||
|
QLineEdit* displayNameEdit = new QLineEdit(displayNameString);
|
||||||
|
displayNameEdit->setMinimumWidth(QLINE_MINIMUM_WIDTH);
|
||||||
|
form->addRow("Display name:", displayNameEdit);
|
||||||
|
|
||||||
QSlider* pupilDilation = new QSlider(Qt::Horizontal);
|
QSlider* pupilDilation = new QSlider(Qt::Horizontal);
|
||||||
pupilDilation->setValue(applicationInstance->getAvatar()->getHead().getPupilDilation() * pupilDilation->maximum());
|
pupilDilation->setValue(applicationInstance->getAvatar()->getHead().getPupilDilation() * pupilDilation->maximum());
|
||||||
form->addRow("Pupil Dilation:", pupilDilation);
|
form->addRow("Pupil Dilation:", pupilDilation);
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
Profile::Profile(const QString &username) :
|
Profile::Profile(const QString &username) :
|
||||||
_username(),
|
_username(),
|
||||||
|
_displayName(),
|
||||||
_uuid(),
|
_uuid(),
|
||||||
_lastDomain(),
|
_lastDomain(),
|
||||||
_lastPosition(0.0, 0.0, 0.0),
|
_lastPosition(0.0, 0.0, 0.0),
|
||||||
|
@ -211,3 +212,7 @@ void Profile::processDataServerResponse(const QString& userString, const QString
|
||||||
void Profile::setUsername(const QString& username) {
|
void Profile::setUsername(const QString& username) {
|
||||||
_username = username;
|
_username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Profile::setDisplayName(const QString& displayName) {
|
||||||
|
_displayName = displayName;
|
||||||
|
}
|
||||||
|
|
|
@ -27,6 +27,8 @@ public:
|
||||||
QString getUserString() const;
|
QString getUserString() const;
|
||||||
|
|
||||||
const QString& getUsername() const { return _username; }
|
const QString& getUsername() const { return _username; }
|
||||||
|
|
||||||
|
const QString& getDisplayName() const { return _displayName; }
|
||||||
|
|
||||||
void setUUID(const QUuid& uuid);
|
void setUUID(const QUuid& uuid);
|
||||||
const QUuid& getUUID() { return _uuid; }
|
const QUuid& getUUID() { return _uuid; }
|
||||||
|
@ -51,8 +53,11 @@ public:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void setUsername(const QString& username);
|
void setUsername(const QString& username);
|
||||||
|
|
||||||
|
void setDisplayName(const QString& displaName);
|
||||||
|
|
||||||
QString _username;
|
QString _username;
|
||||||
|
QString _displayName;
|
||||||
QUuid _uuid;
|
QUuid _uuid;
|
||||||
QString _lastDomain;
|
QString _lastDomain;
|
||||||
glm::vec3 _lastPosition;
|
glm::vec3 _lastPosition;
|
||||||
|
|
Loading…
Reference in a new issue