mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 05:37:09 +02:00
22 lines
No EOL
648 B
C++
22 lines
No EOL
648 B
C++
#include <ui/layers/box_content.h>
|
|
#include "ui/wrap/vertical_layout.h"
|
|
#include "ui/widgets/scroll_area.h"
|
|
#include "history/history_item.h"
|
|
|
|
namespace AyuUi {
|
|
class MessageHistoryBox : public Ui::BoxContent {
|
|
public:
|
|
MessageHistoryBox(QWidget*, HistoryItem *item);
|
|
protected:
|
|
void prepare() override;
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
private:
|
|
void setupControls();
|
|
void addEditedMessagesToLayout(HistoryItem *item);
|
|
|
|
object_ptr<Ui::VerticalLayout> _content;
|
|
const base::unique_qptr<Ui::ScrollArea> _scroll;
|
|
|
|
rpl::event_stream<int> _contentHeight;
|
|
};
|
|
} |