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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user