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

Add EditPrivacyBox. Edit last seen privacy.

Selecting exception users is not supported yet.
This commit is contained in:
John Preston
2017-03-16 18:15:07 +03:00
parent a563cf553c
commit 85fd117675
11 changed files with 521 additions and 9 deletions

View File

@@ -271,6 +271,12 @@ public:
}
}
// Resize to minimum of natural width and available width.
void resizeToNaturalWidth(int newWidth) {
auto maxWidth = naturalWidth();
resizeToWidth((maxWidth >= 0) ? qMin(newWidth, maxWidth) : newWidth);
}
QRect rectNoMargins() const {
return rect().marginsRemoved(getMargins());
}