Cleanup of window flags

This commit is contained in:
ArsenArsen 2017-06-07 10:37:40 +02:00
parent 20d5314d6d
commit 3015b9547c
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ RecordingPreview::RecordingPreview(QRect area, QWidget *parent) : QWidget(parent
setStyleSheet("background-color: rgba(0, 0, 0, 0.7);");
setAttribute(Qt::WA_TranslucentBackground);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setWindowFlags(windowFlags() | Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint);
setWindowFlags(windowFlags() | Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
QTimer::singleShot(0, [&] {
adjustSize();
move(0, 0);

View File

@ -9,6 +9,7 @@
ScreenAreaSelector::ScreenAreaSelector() {
setAttribute(Qt::WA_TranslucentBackground);
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
setStyleSheet("background-color: rgba(0, 0, 0, 0.5);");
setWindowTitle("KShare: Select Area (By resizing this window)");
QTimer::singleShot(0, [&] {