mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Most of the new Settings sections filled with widgets.
Some animations added: new scale slider, widget_slide_wrap<TWidget>. Any TWidget now can resizeToWidth() with overriden resizeGetHeight().
This commit is contained in:
@@ -107,11 +107,15 @@ void LayerStackWidget::paintEvent(QPaintEvent *e) {
|
||||
|
||||
void LayerStackWidget::keyPressEvent(QKeyEvent *e) {
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
onClose();
|
||||
onCloseCurrent();
|
||||
}
|
||||
}
|
||||
|
||||
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
|
||||
onCloseCurrent();
|
||||
}
|
||||
|
||||
void LayerStackWidget::onCloseCurrent() {
|
||||
if (layer()) {
|
||||
onCloseLayers();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user