mouseGrabber.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 
3  Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
4 
5  This file is part of the QGLViewer library version 2.6.3.
6 
7  http://www.libqglviewer.com - contact@libqglviewer.com
8 
9  This file may be used under the terms of the GNU General Public License
10  versions 2.0 or 3.0 as published by the Free Software Foundation and
11  appearing in the LICENSE file included in the packaging of this file.
12  In addition, as a special exception, Gilles Debunne gives you certain
13  additional rights, described in the file GPL_EXCEPTION in this package.
14 
15  libQGLViewer uses dual licensing. Commercial/proprietary software must
16  purchase a libQGLViewer Commercial License.
17 
18  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 
21 *****************************************************************************/
22 
23 #include "mouseGrabber.h"
24 
25 using namespace qglviewer;
26 
27 // Static private variable
28 QList<MouseGrabber*> MouseGrabber::MouseGrabberPool_;
29 
34  : grabsMouse_(false)
35 {
37 }
38 
48 {
49  if (!isInMouseGrabberPool())
51 }
52 
58 {
60  MouseGrabber::MouseGrabberPool_.removeAll(const_cast<MouseGrabber*>(this));
61 }
62 
72 {
73  if (autoDelete)
76 }
static QList< MouseGrabber * > MouseGrabberPool_
Definition: mouseGrabber.h:259
bool isInMouseGrabberPool() const
Definition: mouseGrabber.h:206
void clearMouseGrabberPool(bool autoDelete=false)


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Wed Jun 5 2019 19:26:39