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);");
|
setStyleSheet("background-color: rgba(0, 0, 0, 0.7);");
|
||||||
setAttribute(Qt::WA_TranslucentBackground);
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
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, [&] {
|
QTimer::singleShot(0, [&] {
|
||||||
adjustSize();
|
adjustSize();
|
||||||
move(0, 0);
|
move(0, 0);
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
ScreenAreaSelector::ScreenAreaSelector() {
|
ScreenAreaSelector::ScreenAreaSelector() {
|
||||||
setAttribute(Qt::WA_TranslucentBackground);
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
||||||
setStyleSheet("background-color: rgba(0, 0, 0, 0.5);");
|
setStyleSheet("background-color: rgba(0, 0, 0, 0.5);");
|
||||||
setWindowTitle("KShare: Select Area (By resizing this window)");
|
setWindowTitle("KShare: Select Area (By resizing this window)");
|
||||||
QTimer::singleShot(0, [&] {
|
QTimer::singleShot(0, [&] {
|
||||||
|
Loading…
Reference in New Issue
Block a user