goldendict-ng / src /macos /mac_url_handler.hh
fasdfsa's picture
init
b6bd94d
#pragma once
#ifdef __APPLE__
#include <QObject>
#include <QUrl>
/// See https://doc.qt.io/qt-6/qdesktopservices.html#url-handlers
class MacUrlHandler: public QObject
{
Q_OBJECT
public:
MacUrlHandler( QObject * parent ):
QObject( parent )
{
}
public slots:
void processURL( const QUrl & url );
signals:
void wordReceived( const QString & word );
};
#endif