VR-Forces 5.0.3 Developer's Guide
 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 
9 
10 #ifndef DtIgToolBar_H_
11 #define DtIgToolBar_H_
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
14 
15 #include <QtWidgets/QToolBar>
16 
17 namespace makVrv
18 {
19 
23  {
24  Q_OBJECT
25 
26  public:
27 
29  DtIgToolBar(const QString& name, QWidget* parent)
30  : QToolBar(name, parent)
31  {
32  }
33 
34  virtual ~DtIgToolBar()
35  {
36  }
37 
38  signals:
39  void visibilityChanged(bool);
40 
41  protected:
42  virtual void hideEvent(QHideEvent* e)
43  {
44  QToolBar::hideEvent(e);
45  emit visibilityChanged(false);
46  }
47 
48  virtual void showEvent(QShowEvent* e)
49  {
50  QToolBar::showEvent(e);
51  emit visibilityChanged(true);
52  }
53  };
54 }
55 
56 #endif
57 
The DtIgToolBar will emit visibility changed signal on show/hide events for this object.
Definition: DtIgToolBar.h:22
DtIgToolBar(const QString &name, QWidget *parent)
CTOR.
Definition: DtIgToolBar.h:29
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
virtual void showEvent(QShowEvent *e)
Definition: DtIgToolBar.h:48
virtual void hideEvent(QHideEvent *e)
Definition: DtIgToolBar.h:42
virtual ~DtIgToolBar()
Definition: DtIgToolBar.h:34

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)