Skip to content

Commit

Permalink
Remove 'StartTranslucentPaint'.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 18, 2021
1 parent aeeb13b commit e9fcbfc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions ui/platform/linux/ui_utility_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}

Expand Down
8 changes: 0 additions & 8 deletions ui/platform/mac/ui_utility_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 0 additions & 1 deletion ui/platform/ui_platform_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions ui/platform/win/ui_utility_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}

Expand Down

0 comments on commit e9fcbfc

Please sign in to comment.