2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

username support added, layer 18

This commit is contained in:
John Preston
2014-10-22 22:39:03 +04:00
parent 3daa74ff27
commit 30ae073080
28 changed files with 4000 additions and 3602 deletions

View File

@@ -80,6 +80,7 @@ public:
public slots:
void usernameChanged();
void updateConnectionType();
void peerUpdated(PeerData *data);
@@ -93,6 +94,8 @@ public slots:
void onConnectionType();
void onUsername();
void onWorkmodeTray();
void onWorkmodeWindow();
@@ -144,13 +147,14 @@ private:
void setScale(DBIScale newScale);
UserData *_self;
UserData *self() const {
return App::self();
}
int32 _left;
// profile
Text _nameText;
QString _nameCache;
QString _phoneText;
TextLinkPtr _photoLink;
FlatButton _uploadPhoto;
LinkButton _cancelPhoto;
@@ -159,6 +163,11 @@ private:
QString _errorText;
// contact info
QString _phoneText, _usernameText;
int32 _phoneLeft, _usernameLeft;
LinkButton _chooseUsername, _changeUsername;
// notifications
FlatCheckbox _desktopNotify, _senderName, _messagePreview, _soundNotify;
@@ -236,6 +245,7 @@ public:
void updateConnectionType();
void rpcInvalidate();
void usernameChanged();
~SettingsWidget();