mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Add create poll box from groups three-dot menu.
This commit is contained in:
@@ -234,8 +234,8 @@ void ForceFullRepaint(not_null<QWidget*> widget) {
|
||||
}
|
||||
|
||||
void PostponeCall(FnMut<void()> &&callable) {
|
||||
const auto app = static_cast<Application*>(qApp);
|
||||
app->postponeCall(std::move(callable));
|
||||
const auto application = static_cast<Application*>(qApp);
|
||||
application->postponeCall(std::move(callable));
|
||||
}
|
||||
|
||||
} // namespace Ui
|
||||
|
@@ -2160,7 +2160,11 @@ void InputField::handleContentsChanged() {
|
||||
|
||||
if (tagsChanged || (_lastTextWithTags.text != currentText)) {
|
||||
_lastTextWithTags.text = currentText;
|
||||
const auto weak = make_weak(this);
|
||||
emit changed();
|
||||
if (!weak) {
|
||||
return;
|
||||
}
|
||||
checkContentHeight();
|
||||
}
|
||||
startPlaceholderAnimation();
|
||||
|
@@ -15,6 +15,10 @@ class VerticalLayout : public RpWidget {
|
||||
public:
|
||||
using RpWidget::RpWidget;
|
||||
|
||||
int count() const {
|
||||
return _rows.size();
|
||||
}
|
||||
|
||||
template <
|
||||
typename Widget,
|
||||
typename = std::enable_if_t<
|
||||
@@ -36,7 +40,7 @@ public:
|
||||
Widget *add(
|
||||
object_ptr<Widget> &&child,
|
||||
const style::margins &margin = style::margins()) {
|
||||
return insert(_rows.size(), std::move(child), margin);
|
||||
return insert(count(), std::move(child), margin);
|
||||
}
|
||||
|
||||
QMargins getMargins() const override;
|
||||
|
Reference in New Issue
Block a user