mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Profile done as a new generic Window::SectionWidget.
Slide animation reimplemented.
This commit is contained in:
@@ -44,7 +44,7 @@ void InnerWidget::setVisibleTopBottom(int visibleTop, int visibleBottom) {
|
||||
|
||||
int notDisplayedAtBottom = height() - _visibleBottom;
|
||||
if (notDisplayedAtBottom > 0) {
|
||||
decreaseAdditionalHeight(notDisplayedAtBottom);
|
||||
// decreaseAdditionalHeight(notDisplayedAtBottom);
|
||||
}
|
||||
|
||||
//loadProfilePhotos(_visibleTop);
|
||||
@@ -65,6 +65,10 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
|
||||
p.fillRect(e->rect(), st::white);
|
||||
}
|
||||
|
||||
void InnerWidget::mousePressEvent(QMouseEvent *e) { // TEMP for testing
|
||||
Ui::showPeerOverview(_peer, OverviewPhotos);
|
||||
}
|
||||
|
||||
int InnerWidget::resizeGetHeight(int newWidth) {
|
||||
_cover->resizeToWidth(newWidth);
|
||||
int newHeight = _cover->height();
|
||||
|
Reference in New Issue
Block a user