9 #define FORCE_HIDE_WINDOW 0
10 #define NDEVR_SPECIAL_GRAPHICS_WINDOW 0
11 #define USE_WINDOW_WIDGET 0
14#elif defined(Q_OS_WASM)
16 #define FORCE_HIDE_WINDOW 0
17 #define USE_WINDOW_WIDGET 0
18 #define NDEVR_SPECIAL_GRAPHICS_WINDOW 0
22 #define FORCE_HIDE_WINDOW 0
23 #define USE_WINDOW_WIDGET 0
24 #define NDEVR_SPECIAL_GRAPHICS_WINDOW 0
61 return Qt::WindowFlags();
64 return Qt::WindowFlags();
65 #elif defined(Q_OS_WASM)
66 return Qt::WindowFlags();
68 return Qt::WindowFlags();
76 return mapToGlobal(QPoint(0, 0));
111#if NDEVR_SPECIAL_GRAPHICS_WINDOW
112 QHBoxLayout* layout =
new QHBoxLayout();
113 layout->setContentsMargins(0,0,0,0);
119#if NDEVR_SPECIAL_GRAPHICS_WINDOW
131 BaseWindowContainer::resizeEvent(resize_event);
140#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
153#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
181 BaseWindowContainer::paintEvent(
event);
210#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
232#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
233 QEvent::Type event_type =
event->type();
236 case QEvent::Type::Show:
247 case QEvent::Type::Hide:
264 return BaseWindowContainer::event(
event);
QFrame BaseWindowContainer
Definition WindowContainer.h:25
A (hacky) class for storing a window into a container. This is used if the rendering engine for a par...
Definition WindowContainer.h:37
std::function< bool(QEvent *event)> m_event_forwarder
Definition WindowContainer.h:271
QSize m_last_paint_size
Definition WindowContainer.h:273
static Qt::WindowFlags windowFlags()
Definition WindowContainer.h:58
QWidget * m_container
Definition WindowContainer.h:275
bool event(QEvent *event) override
Definition WindowContainer.h:230
void setWindow(QWindow *window)
Definition WindowContainer.h:99
void visibleHack()
Definition WindowContainer.h:138
void setWidget(QWidget *window)
Definition WindowContainer.h:81
QWindow * m_window
Definition WindowContainer.h:274
QPoint windowOffset() const
Definition WindowContainer.h:73
void paintEvent(QPaintEvent *event) override
Definition WindowContainer.h:151
virtual void updateSize()
Definition WindowContainer.h:208
WindowContainer(QWidget *parent=nullptr)
Definition WindowContainer.h:39
void resizeEvent(QResizeEvent *resize_event) override
Definition WindowContainer.h:129
QTimer * m_location_timer
Definition WindowContainer.h:272
void setEventForwarder(const std::function< bool(QEvent *event)> &forwarder)
Definition WindowContainer.h:266