2
0
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:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -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 &params) {
return Ui::GrabWidget(this);
}
void SectionWidget::PaintBackground(not_null<QWidget*> widget, QRect clip) {
Painter p(widget);