mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove twidget header.
This commit is contained in:
@@ -7,13 +7,15 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#include "window/section_widget.h"
|
||||
|
||||
#include <rpl/range.h>
|
||||
#include "mainwidget.h"
|
||||
#include "ui/ui_utility.h"
|
||||
#include "window/section_memento.h"
|
||||
#include "window/window_slide_animation.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
#include "window/window_session_controller.h"
|
||||
|
||||
#include <rpl/range.h>
|
||||
|
||||
namespace Window {
|
||||
|
||||
Main::Session &AbstractSectionWidget::session() const {
|
||||
@@ -32,7 +34,7 @@ void SectionWidget::setGeometryWithTopMoved(
|
||||
_topDelta = topDelta;
|
||||
bool willBeResized = (size() != newGeometry.size());
|
||||
if (geometry() != newGeometry) {
|
||||
auto weak = make_weak(this);
|
||||
auto weak = Ui::MakeWeak(this);
|
||||
setGeometry(newGeometry);
|
||||
if (!weak) {
|
||||
return;
|
||||
@@ -77,6 +79,11 @@ void SectionWidget::showFast() {
|
||||
showFinished();
|
||||
}
|
||||
|
||||
QPixmap SectionWidget::grabForShowAnimation(
|
||||
const SectionSlideParams ¶ms) {
|
||||
return Ui::GrabWidget(this);
|
||||
}
|
||||
|
||||
void SectionWidget::PaintBackground(not_null<QWidget*> widget, QRect clip) {
|
||||
Painter p(widget);
|
||||
|
||||
|
Reference in New Issue
Block a user