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
55 return Qt::WindowFlags();
58 return Qt::WindowFlags();
59 #elif defined(Q_OS_WASM)
60 return Qt::WindowFlags();
62 return Qt::WindowFlags();
70 return mapToGlobal(QPoint(0, 0));
105#if NDEVR_SPECIAL_GRAPHICS_WINDOW
106 QHBoxLayout* layout =
new QHBoxLayout();
107 layout->setContentsMargins(0,0,0,0);
113#if NDEVR_SPECIAL_GRAPHICS_WINDOW
125 BaseWindowContainer::resizeEvent(resize_event);
134#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
147#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
175 BaseWindowContainer::paintEvent(
event);
204#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
226#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
227 QEvent::Type event_type =
event->type();
230 case QEvent::Type::Show:
241 case QEvent::Type::Hide:
258 return BaseWindowContainer::event(
event);
QFrame BaseWindowContainer
Definition WindowContainer.h:25
Definition WindowContainer.h:31
std::function< bool(QEvent *event)> m_event_forwarder
Definition WindowContainer.h:265
QSize m_last_paint_size
Definition WindowContainer.h:267
static Qt::WindowFlags windowFlags()
Definition WindowContainer.h:52
QWidget * m_container
Definition WindowContainer.h:269
bool event(QEvent *event) override
Definition WindowContainer.h:224
void setWindow(QWindow *window)
Definition WindowContainer.h:93
void visibleHack()
Definition WindowContainer.h:132
void setWidget(QWidget *window)
Definition WindowContainer.h:75
QWindow * m_window
Definition WindowContainer.h:268
QPoint windowOffset() const
Definition WindowContainer.h:67
void paintEvent(QPaintEvent *event) override
Definition WindowContainer.h:145
virtual void updateSize()
Definition WindowContainer.h:202
WindowContainer(QWidget *parent=nullptr)
Definition WindowContainer.h:33
void resizeEvent(QResizeEvent *resize_event) override
Definition WindowContainer.h:123
QTimer * m_location_timer
Definition WindowContainer.h:266
void setEventForwarder(const std::function< bool(QEvent *event)> &forwarder)
Definition WindowContainer.h:260