aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 08:37:37 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 08:37:37 -0400
commitc47e7ca51fcf653a3d3078924a93f2dca2c25359 (patch)
tree6f509a687460277970a3b293e3960765303dd68f /src-qt5
parentTurn on the OpenGL backing for Lumina2. (diff)
downloadlumina-c47e7ca51fcf653a3d3078924a93f2dca2c25359.tar.gz
lumina-c47e7ca51fcf653a3d3078924a93f2dca2c25359.tar.bz2
lumina-c47e7ca51fcf653a3d3078924a93f2dca2c25359.zip
Clean up some of the rootSubWindow overrides
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp
index 04deacf9..f45258a3 100644
--- a/src-qt5/core/libLumina/RootSubWindow.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow.cpp
@@ -245,7 +245,7 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList
//qDebug() << "RootSubWindow: Property Changed:" << props[i] << vals[i];
switch(props[i]){
case NativeWindow::Visible:
- qDebug() << "Got Visibility Change:" << vals[i];
+ //qDebug() << "Got Visibility Change:" << vals[i];
if(vals[i].toBool()){ WinWidget->setVisible(true); this->show(); }
else{ this->hide(); }
break;
@@ -301,11 +301,11 @@ void RootSubWindow::mousePressEvent(QMouseEvent *ev){
activeState = getStateAtPoint(ev->pos(), true); //also have it set the offset variable
}
setMouseCursor(activeState, true); //this one is an override cursor
-
+ QFrame::mousePressEvent(ev);
}
void RootSubWindow::mouseMoveEvent(QMouseEvent *ev){
- ev->accept();
+ //ev->accept();
if(activeState == Normal){
setMouseCursor( getStateAtPoint(ev->pos()) ); //just update the mouse cursor
}else{
@@ -382,12 +382,13 @@ void RootSubWindow::mouseMoveEvent(QMouseEvent *ev){
this->setGeometry(geom);
}
+ QFrame::mouseMoveEvent(ev);
}
void RootSubWindow::mouseReleaseEvent(QMouseEvent *ev){
//Check for a right-click event
//qDebug() << "Frame Mouse Release Event";
- ev->accept();
+ QFrame::mouseReleaseEvent(ev);
if( (activeState==Normal) && (titleBar->geometry().contains(ev->pos())) && (ev->button()==Qt::RightButton) ){
otherM->popup(ev->globalPos());
return;
@@ -419,4 +420,3 @@ void RootSubWindow::resizeEvent(QResizeEvent *ev){
WIN->requestProperty(NativeWindow::Visible, true);
QFrame::showEvent(ev);
}*/
-
bgstack15