Show picture placeholder in settings, handle first upload properly
This commit is contained in:
parent
fb225390c6
commit
e2b6d25aa8
5 changed files with 126 additions and 2 deletions
|
@ -71,4 +71,5 @@ Item {
|
||||||
style: Text.Raised
|
style: Text.Raised
|
||||||
styleColor: Theme.highlightDimmerColor
|
styleColor: Theme.highlightDimmerColor
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,11 @@ Page {
|
||||||
if (request === "deleteProfilePhoto") {
|
if (request === "deleteProfilePhoto") {
|
||||||
tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0);
|
tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0);
|
||||||
}
|
}
|
||||||
|
if (request === "setProfilePhoto") {
|
||||||
|
tdLibWrapper.getUserProfilePhotos(userInformation.id, 100, 0);
|
||||||
|
profilePictureButtonColumn.visible = true;
|
||||||
|
uploadInProgress = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,6 +201,16 @@ Page {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
source: "../components/ProfilePictureList.qml"
|
source: "../components/ProfilePictureList.qml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ProfileThumbnail {
|
||||||
|
id: chatPictureReplacement
|
||||||
|
visible: !profilePictureLoader.active
|
||||||
|
replacementStringHint: Functions.getUserName(settingsPage.userInformation)
|
||||||
|
radius: imageContainer.thumbnailRadius
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
width: Theme.itemSizeExtraLarge
|
||||||
|
height: Theme.itemSizeExtraLarge
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -1301,6 +1301,7 @@ void TDLibWrapper::setProfilePhoto(const QString &filePath)
|
||||||
|
|
||||||
QVariantMap requestObject;
|
QVariantMap requestObject;
|
||||||
requestObject.insert(_TYPE, "setProfilePhoto");
|
requestObject.insert(_TYPE, "setProfilePhoto");
|
||||||
|
requestObject.insert(_EXTRA, "setProfilePhoto");
|
||||||
QVariantMap inputChatPhoto;
|
QVariantMap inputChatPhoto;
|
||||||
inputChatPhoto.insert(_TYPE, "inputChatPhotoStatic");
|
inputChatPhoto.insert(_TYPE, "inputChatPhotoStatic");
|
||||||
QVariantMap inputFile;
|
QVariantMap inputFile;
|
||||||
|
|
|
@ -2140,11 +2140,11 @@
|
||||||
<message>
|
<message>
|
||||||
<source>sent a game</source>
|
<source>sent a game</source>
|
||||||
<comment>myself</comment>
|
<comment>myself</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished">отправлена игра</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>sent a game</source>
|
<source>sent a game</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished">отправлена игра</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
|
@ -1554,6 +1554,113 @@
|
||||||
<source>Some inline bots request location data when using them</source>
|
<source>Some inline bots request location data when using them</source>
|
||||||
<translation>Niektorí inline roboti požadujú údaje o polohe ak ich používajú</translation>
|
<translation>Niektorí inline roboti požadujú údaje o polohe ak ich používajú</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>User Profile</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>First Name</source>
|
||||||
|
<comment>first name of the logged-in profile - header</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Enter 1-64 characters</source>
|
||||||
|
<translation type="unfinished">Zadať 1-128 znakov {1-64 ?}</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Last Name</source>
|
||||||
|
<comment>last name of the logged-in profile - header</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Enter 0-64 characters</source>
|
||||||
|
<translation type="unfinished">Zadať 1-128 znakov {0-64 ?}</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Username</source>
|
||||||
|
<comment>user name of the logged-in profile - header</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Profile Pictures</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Add Picture</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Delete Picture</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Deleting profile picture</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Uploading...</source>
|
||||||
|
<translation type="unfinished">Zapisovanie...</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Allow chat invites</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether you can be invited to chats.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Yes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Your contacts only</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>No</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Allow finding by phone number</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether you can be found by your phone number.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Show link in forwarded messages</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether a link to your account is included in forwarded messages.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Show phone number</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether your phone number is visible.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Show profile photo</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether your profile photo is visible.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Show status</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Privacy setting for managing whether your online status is visible.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>StickerPicker</name>
|
<name>StickerPicker</name>
|
||||||
|
|
Loading…
Reference in a new issue