|
|
@ -30,10 +30,9 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent) |
|
|
|
setWindowState(Qt::WindowFullScreen); |
|
|
|
setWindowState(Qt::WindowFullScreen); |
|
|
|
close_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Escape), this); |
|
|
|
close_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Escape), this); |
|
|
|
|
|
|
|
|
|
|
|
connect(close_shortcut_, &QShortcut::activated, this, &ImageOverlay::closing); |
|
|
|
connect(close_shortcut_, &QShortcut::activated, this, &ImageOverlay::closing); |
|
|
|
connect(this, &ImageOverlay::closing, this, &ImageOverlay::close); |
|
|
|
connect(this, &ImageOverlay::closing, this, &ImageOverlay::close); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
raise(); |
|
|
|
raise(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|