mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
removed NativeEventHelper
This commit is contained in:
parent
d09b14db26
commit
804d324d79
3 changed files with 0 additions and 60 deletions
|
@ -316,7 +316,6 @@ HEADERS += \
|
|||
src/util/Helpers.hpp \
|
||||
src/util/IrcHelpers.hpp \
|
||||
src/util/LayoutCreator.hpp \
|
||||
src/util/NativeEventHelper.hpp \
|
||||
src/util/PostToThread.hpp \
|
||||
src/util/QstringHash.hpp \
|
||||
src/util/RapidjsonHelpers.hpp \
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
#include <QStyleFactory>
|
||||
#include <pajlada/settings/settingmanager.hpp>
|
||||
|
||||
#ifdef USEWINSDK
|
||||
#include "util/NativeEventHelper.hpp"
|
||||
#endif
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef USEWINSDK
|
||||
#include <windows.h>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#include <QAbstractNativeEventFilter>
|
||||
#include <QLibrary>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
// static boost::optional<UINT> getWindowDpi(quintptr ptr)
|
||||
//{
|
||||
// typedef UINT(WINAPI * GetDpiForWindow)(HWND);
|
||||
// QLibrary user32("user32.dll", 0);
|
||||
|
||||
// GetDpiForWindow getDpiForWindow = (GetDpiForWindow)user32.resolve("GetDpiForWindow");
|
||||
|
||||
// if (getDpiForWindow) {
|
||||
// UINT value = getDpiForWindow((HWND)ptr);
|
||||
|
||||
// return value == 0 ? boost::none : boost::optional<UINT>(value);
|
||||
// }
|
||||
|
||||
// return boost::none;
|
||||
//}
|
||||
|
||||
//#ifdef USEWINSDK
|
||||
// class DpiNativeEventFilter : public QAbstractNativeEventFilter
|
||||
//{
|
||||
// public:
|
||||
// bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override
|
||||
// {
|
||||
// // MSG *msg = reinterpret_cast<MSG *>(message);
|
||||
|
||||
// // if (msg->message == WM_NCCREATE) {
|
||||
// // QLibrary user32("user32.dll", 0);
|
||||
// // {
|
||||
// // typedef BOOL(WINAPI * EnableNonClientDpiScaling)(HWND);
|
||||
|
||||
// // EnableNonClientDpiScaling enableNonClientDpiScaling =
|
||||
// // (EnableNonClientDpiScaling)user32.resolve("EnableNonClientDpiScaling");
|
||||
|
||||
// // if (enableNonClientDpiScaling)
|
||||
// // enableNonClientDpiScaling(msg->hwnd);
|
||||
// // }
|
||||
// // }
|
||||
// return false;
|
||||
// }
|
||||
//};
|
||||
//#endif
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue