diff options
author | Manuel Schneider | 2014-04-10 16:55:28 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-04-10 16:55:28 +0200 |
commit | b9bd7c4b240b11548e90f96234dd2e4b9d7d92c9 (patch) | |
tree | 5611731d0e156fdc858ef14f5fa15fefa5d6040f /src | |
parent | [beamergui] Several changes (diff) | |
download | beamergui-b9bd7c4b240b11548e90f96234dd2e4b9d7d92c9.tar.gz beamergui-b9bd7c4b240b11548e90f96234dd2e4b9d7d92c9.tar.xz beamergui-b9bd7c4b240b11548e90f96234dd2e4b9d7d92c9.zip |
Set mouse pointer after backup, too. Fixed ugly transparency.
Diffstat (limited to 'src')
-rw-r--r-- | src/widget.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 71280c7..431b0b4 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -199,8 +199,8 @@ Widget::Widget(QWidget *parent) : // Remove borders and stuff setWindowFlags(windowFlags() | Qt::FramelessWindowHint); - setStyleSheet("background:transparent;"); - // setAttribute(Qt::WA_TranslucentBackground); + //setStyleSheet("background:transparent;"); + //setAttribute(Qt::WA_TranslucentBackground); // Resize widget to its content resize(sizeHint()); @@ -364,6 +364,7 @@ void Widget::handleButton(){ this->move( monitorMode->width/2 - this->width()/2, monitorMode->height - this->height()); + // Set the mouse pointer in the middle of the screen QCursor::setPos(monitorMode->width/2, monitorMode->height/2); /*************************** ASK for confirmtion ****************************/ @@ -431,6 +432,9 @@ void Widget::handleButton(){ qDebug() << "Again center dialog on screenbottom"; this->move( ScreenSize.width()/2 - this->width()/2, ScreenSize.height() - this->height()); + + // Set the mouse pointer in the middle of the screen + QCursor::setPos(monitorMode->width/2, monitorMode->height/2); } // Delete the backup |