Cleanup of window flags
This commit is contained in:
parent
20d5314d6d
commit
3015b9547c
@ -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);
|
||||
|
@ -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, [&] {
|
||||
|
Loading…
Reference in New Issue
Block a user