VAPOR3
3.9.4
apps
vaporgui
VHBoxWidget.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QFrame>
4
#include <QHBoxLayout>
5
6
#include <string>
7
8
#include "
VLineItem.h
"
9
15
16
class
VHBoxWidget
:
public
QFrame {
17
Q_OBJECT
18
19
public
:
20
// virtual QSize sizeHint() const;
21
22
protected
:
23
VHBoxWidget
();
24
25
private
:
26
static
const
int
_LEFT_MARGIN;
27
static
const
int
_TOP_MARGIN;
28
static
const
int
_RIGHT_MARGIN;
29
static
const
int
_BOTTOM_MARGIN;
30
};
31
32
// Helper object for disabling the mouse scroll-wheel on a given widget.
33
//
34
35
#include <QObject>
36
37
class
MouseWheelWidgetAdjustmentGuard
:
public
QObject {
38
public
:
39
explicit
MouseWheelWidgetAdjustmentGuard
(QObject *parent);
40
41
protected
:
42
bool
eventFilter
(QObject *o, QEvent *e)
override
;
43
};
VLineItem.h
MouseWheelWidgetAdjustmentGuard
Definition:
VHBoxWidget.h:37
MouseWheelWidgetAdjustmentGuard::eventFilter
bool eventFilter(QObject *o, QEvent *e) override
MouseWheelWidgetAdjustmentGuard::MouseWheelWidgetAdjustmentGuard
MouseWheelWidgetAdjustmentGuard(QObject *parent)
VHBoxWidget
Definition:
VHBoxWidget.h:16
VHBoxWidget::VHBoxWidget
VHBoxWidget()
Generated by
1.9.6