2021-04-17 16:15:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class Split;
|
|
|
|
|
|
|
|
class FramelessEmbedWindow : public BaseWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FramelessEmbedWindow();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
#ifdef USEWINSDK
|
2023-02-13 21:45:58 +01:00
|
|
|
|
|
|
|
# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
|
|
bool nativeEvent(const QByteArray &eventType, void *message,
|
|
|
|
qintptr *result) override;
|
|
|
|
# else
|
2021-04-17 16:15:23 +02:00
|
|
|
bool nativeEvent(const QByteArray &eventType, void *message,
|
|
|
|
long *result) override;
|
2023-02-13 21:45:58 +01:00
|
|
|
# endif
|
|
|
|
|
2021-04-17 16:15:23 +02:00
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
private:
|
|
|
|
Split *split_{};
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|