mirror of https://github.com/procxx/kepka.git
parent
ffbd488e93
commit
a167a8587b
|
@ -375,18 +375,23 @@ void LayerStackWidget::keyPressEvent(QKeyEvent *e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
|
void LayerStackWidget::mousePressEvent(QMouseEvent *e) {
|
||||||
if (_hideByBackgroundClick) {
|
crl::on_main(this, [=] { backgroundClicked(); });
|
||||||
if (const auto layer = currentLayer()) {
|
}
|
||||||
if (!layer->closeByOutsideClick()) {
|
|
||||||
return;
|
void LayerStackWidget::backgroundClicked() {
|
||||||
}
|
if (!_hideByBackgroundClick) {
|
||||||
} else if (const auto special = _specialLayer.data()) {
|
return;
|
||||||
if (!special->closeByOutsideClick()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
hideCurrent(anim::type::normal);
|
|
||||||
}
|
}
|
||||||
|
if (const auto layer = currentLayer()) {
|
||||||
|
if (!layer->closeByOutsideClick()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else if (const auto special = _specialLayer.data()) {
|
||||||
|
if (!special->closeByOutsideClick()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
hideCurrent(anim::type::normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::hideCurrent(anim::type animated) {
|
void LayerStackWidget::hideCurrent(anim::type animated) {
|
||||||
|
|
|
@ -134,6 +134,7 @@ private:
|
||||||
void replaceBox(
|
void replaceBox(
|
||||||
object_ptr<BoxContent> box,
|
object_ptr<BoxContent> box,
|
||||||
anim::type animated);
|
anim::type animated);
|
||||||
|
void backgroundClicked();
|
||||||
|
|
||||||
LayerWidget *pushBox(
|
LayerWidget *pushBox(
|
||||||
object_ptr<BoxContent> box,
|
object_ptr<BoxContent> box,
|
||||||
|
|
Loading…
Reference in New Issue