Changeset - 1f9bc936c790
[Not reviewed]
snapshots
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-20 08:08:51
hy@ozderya.net
switch focus to snapshot window if it's already open
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
snapshot.cpp
Show inline comments
 
@@ -28,24 +28,26 @@ QAction* SnapShot::menuAction()
 
    return &_menuAction;
 
}
 

	
 
void SnapShot::show()
 
{
 
    if (view == NULL)
 
    {
 
        qDebug() << "view == NULL";
 
        view = new SnapShotView(mainWindow, this);
 
        connect(view, &SnapShotView::closed, this, &SnapShot::viewClosed);
 
    }
 
    view->show();
 
    view->activateWindow();
 
    view->raise();
 
}
 

	
 
void SnapShot::hide()
 
{
 

	
 
}
 

	
 
void SnapShot::viewClosed()
 
{
 
    delete view;
 
    view = NULL;
 
}
0 comments (0 inline, 0 general)