2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

half of all boxes redesigned

This commit is contained in:
John Preston
2015-10-06 22:49:23 +03:00
parent cb7b736fb8
commit 13f6eedcb2
65 changed files with 3361 additions and 1459 deletions

View File

@@ -28,7 +28,6 @@ class UsernameBox : public AbstractBox, public RPCSender {
public:
UsernameBox();
void keyPressEvent(QKeyEvent *e);
void paintEvent(QPaintEvent *e);
void resizeEvent(QResizeEvent *e);
@@ -39,6 +38,8 @@ public slots:
void onCheck();
void onChanged();
void onLinkClick();
protected:
void hideAll();
@@ -54,13 +55,14 @@ private:
bool onCheckFail(const RPCError &error);
QString getName() const;
void initBox();
void updateLinkText();
FlatButton _saveButton, _cancelButton;
UsernameInput _usernameInput;
BoxButton _save, _cancel;
UsernameInput _username;
LinkButton _link;
mtpRequestId _saveRequest, _checkRequest;
QString _sentUsername, _checkUsername, _errorText, _goodText;
mtpRequestId _saveRequestId, _checkRequestId;
QString _sentUsername, _checkUsername, _errorText, _goodText, _copiedTextLink;
Text _about;
QTimer _checkTimer;