Tray: Add drag-end and drop events
This commit is contained in:
parent
f98147ea01
commit
d1e8e71e3f
6 changed files with 31 additions and 0 deletions
|
@ -74,6 +74,10 @@ void Tray::OnBalloonClosed() {
|
|||
Emit("balloon-closed");
|
||||
}
|
||||
|
||||
void Tray::OnDrop() {
|
||||
Emit("drop");
|
||||
}
|
||||
|
||||
void Tray::OnDropFiles(const std::vector<std::string>& files) {
|
||||
Emit("drop-files", files);
|
||||
}
|
||||
|
@ -86,6 +90,10 @@ void Tray::OnDragExited() {
|
|||
Emit("drag-leave");
|
||||
}
|
||||
|
||||
void Tray::OnDragEnded() {
|
||||
Emit("drag-end");
|
||||
}
|
||||
|
||||
bool Tray::IsDestroyed() const {
|
||||
return !tray_icon_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue