mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-27 15:25:58 +00:00
Start new Info section (profile + shared media).
This commit is contained in:
@@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
|
||||
#include "ui/widgets/buttons.h"
|
||||
#include "styles/style_widgets.h"
|
||||
#include <rpl/event_stream.h>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
@@ -38,6 +39,10 @@ public:
|
||||
}
|
||||
float64 currentAnimationValue(TimeMs ms);
|
||||
|
||||
rpl::producer<bool> checkedValue() const {
|
||||
return _checks.events_starting_with(checked());
|
||||
}
|
||||
|
||||
virtual QSize getSize() const = 0;
|
||||
|
||||
// Zero instead of ms value means that animation was already updated for this time.
|
||||
@@ -59,6 +64,8 @@ private:
|
||||
base::lambda<void()> _updateCallback;
|
||||
Animation _toggleAnimation;
|
||||
|
||||
rpl::event_stream<bool> _checks;
|
||||
|
||||
};
|
||||
|
||||
class CheckView : public AbstractCheckView {
|
||||
|
||||
Reference in New Issue
Block a user