Remove 'StartTranslucentPaint'.
This commit is contained in:
parent
aeeb13bd02
commit
e9fcbfcbac
4 changed files with 0 additions and 15 deletions
|
|
@ -14,9 +14,6 @@ class QPaintEvent;
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
|
|
||||||
inline void StartTranslucentPaint(QPainter &p, const QRegion ®ion) {
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void InitOnTopPanel(not_null<QWidget*> panel) {
|
inline void InitOnTopPanel(not_null<QWidget*> panel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,14 +69,6 @@ void ReInitOnTopPanel(not_null<QWidget*> panel) {
|
||||||
[platformPanel setCollectionBehavior:newBehavior];
|
[platformPanel setCollectionBehavior:newBehavior];
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartTranslucentPaint(QPainter &p, const QRegion ®ion) {
|
|
||||||
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) {
|
void ShowOverAll(not_null<QWidget*> widget, bool canFocus) {
|
||||||
NSWindow *wnd = [reinterpret_cast<NSView*>(widget->winId()) window];
|
NSWindow *wnd = [reinterpret_cast<NSView*>(widget->winId()) window];
|
||||||
[wnd setLevel:NSPopUpMenuWindowLevel];
|
[wnd setLevel:NSPopUpMenuWindowLevel];
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ namespace Platform {
|
||||||
[[nodiscard]] bool IsApplicationActive();
|
[[nodiscard]] bool IsApplicationActive();
|
||||||
|
|
||||||
[[nodiscard]] bool TranslucentWindowsSupported(QPoint globalPosition);
|
[[nodiscard]] bool TranslucentWindowsSupported(QPoint globalPosition);
|
||||||
void StartTranslucentPaint(QPainter &p, const QRegion ®ion);
|
|
||||||
|
|
||||||
void InitOnTopPanel(not_null<QWidget*> panel);
|
void InitOnTopPanel(not_null<QWidget*> panel);
|
||||||
void DeInitOnTopPanel(not_null<QWidget*> panel);
|
void DeInitOnTopPanel(not_null<QWidget*> panel);
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ inline void DeInitOnTopPanel(not_null<QWidget*> panel) {
|
||||||
inline void ReInitOnTopPanel(not_null<QWidget*> panel) {
|
inline void ReInitOnTopPanel(not_null<QWidget*> panel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void StartTranslucentPaint(QPainter &p, const QRegion ®ion) {
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void ShowOverAll(not_null<QWidget*> widget, bool canFocus) {
|
inline void ShowOverAll(not_null<QWidget*> widget, bool canFocus) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue