VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIgToolBar.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtIgToolBar.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtIgToolBar_H_
14 #define DtIgToolBar_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
17 
18 #include <QtWidgets/QToolBar>
19 
20 namespace makVrv
21 {
22 
26  {
27  Q_OBJECT
28 
29  public:
30 
32  DtIgToolBar(const QString& name, QWidget* parent)
33  : QToolBar(name, parent)
34  {
35  }
36 
37  virtual ~DtIgToolBar()
38  {
39  }
40 
41  signals:
42  void visibilityChanged(bool);
43 
44  protected:
45  virtual void hideEvent(QHideEvent* e)
46  {
47  QToolBar::hideEvent(e);
48  emit visibilityChanged(false);
49  }
50 
51  virtual void showEvent(QShowEvent* e)
52  {
53  QToolBar::showEvent(e);
54  emit visibilityChanged(true);
55  }
56  };
57 }
58 
59 #endif
60 
The DtIgToolBar will emit visibility changed signal on show/hide events for this object.
Definition: DtIgToolBar.h:25
DtIgToolBar(const QString &name, QWidget *parent)
CTOR.
Definition: DtIgToolBar.h:32
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
virtual void showEvent(QShowEvent *e)
Definition: DtIgToolBar.h:51
virtual void hideEvent(QHideEvent *e)
Definition: DtIgToolBar.h:45
virtual ~DtIgToolBar()
Definition: DtIgToolBar.h:37

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)