MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / dropEvent

Method dropEvent

App/Client/mainwindow.cpp:1770–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768}
1769
1770void MainWindow::dropEvent(QDropEvent *event)
1771{
1772 qDebug(log) << "dropEvent";
1773 bool bRet = false;
1774 if(!event->mimeData()->hasUrls())
1775 return;
1776 auto urls = event->mimeData()->urls();
1777 foreach(auto url, urls)
1778 {
1779 if(url.isLocalFile())
1780 slotOpenFile(url.toLocalFile());
1781 bRet = true;
1782 }
1783 if(bRet)
1784 event->accept();
1785 else
1786 event->ignore();
1787}
1788
1789void MainWindow::slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason)
1790{

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected