Remove 'StartTranslucentPaint'.

This commit is contained in:
John Preston 2021-05-18 17:04:37 +04:00
parent aeeb13bd02
commit e9fcbfcbac
4 changed files with 0 additions and 15 deletions

View file

@ -14,9 +14,6 @@ class QPaintEvent;
namespace Ui {
namespace Platform {
inline void StartTranslucentPaint(QPainter &p, const QRegion &region) {
}
inline void InitOnTopPanel(not_null<QWidget*> panel) {
}

View file

@ -69,14 +69,6 @@ void ReInitOnTopPanel(not_null<QWidget*> panel) {
[platformPanel setCollectionBehavior:newBehavior];
}
void StartTranslucentPaint(QPainter &p, const QRegion &region) {
p.setCompositionMode(QPainter::CompositionMode_Source);
for (const auto rect : region) {
p.fillRect(rect, Qt::transparent);
}
p.setCompositionMode(QPainter::CompositionMode_SourceOver);
}
void ShowOverAll(not_null<QWidget*> widget, bool canFocus) {
NSWindow *wnd = [reinterpret_cast<NSView*>(widget->winId()) window];
[wnd setLevel:NSPopUpMenuWindowLevel];

View file

@ -18,7 +18,6 @@ namespace Platform {
[[nodiscard]] bool IsApplicationActive();
[[nodiscard]] bool TranslucentWindowsSupported(QPoint globalPosition);
void StartTranslucentPaint(QPainter &p, const QRegion &region);
void InitOnTopPanel(not_null<QWidget*> panel);
void DeInitOnTopPanel(not_null<QWidget*> panel);

View file

@ -29,9 +29,6 @@ inline void DeInitOnTopPanel(not_null<QWidget*> panel) {
inline void ReInitOnTopPanel(not_null<QWidget*> panel) {
}
inline void StartTranslucentPaint(QPainter &p, const QRegion &region) {
}
inline void ShowOverAll(not_null<QWidget*> widget, bool canFocus) {
}