mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 12:34:19 +00:00
Added debug output
This commit is contained in:
parent
eeaa1e83a9
commit
a3822c5aa8
@ -28,12 +28,14 @@
|
||||
* Contact : chris@qbittorrent.org
|
||||
*/
|
||||
|
||||
#include <QEvent>
|
||||
#include <QFileOpenEvent>
|
||||
#include "qmacapplication.h"
|
||||
|
||||
QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
|
||||
QtSingleApplication(appid, argc, argv)
|
||||
{
|
||||
qDebug("Constructing a QMacApplication to receive file open events");
|
||||
}
|
||||
|
||||
bool QMacApplication::event(QEvent * ev) {
|
||||
@ -41,6 +43,7 @@ bool QMacApplication::event(QEvent * ev) {
|
||||
case QEvent::FileOpen:
|
||||
{
|
||||
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
||||
qDebug("Received a mac file open event: %s", qPrintable(path));
|
||||
emit newFileOpenMacEvent(path);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user