File size: 333 Bytes
b6bd94d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#ifdef __APPLE__
  #include "mac_url_handler.hh"
  #include <QDebug>

void MacUrlHandler::processURL( const QUrl & url )
{
  qDebug() << "External URL received: " << url;
  emit wordReceived( QStringLiteral( "translateWord: " )
                     + QUrl::fromAce( url.authority().toLatin1(), QUrl::IgnoreIDNWhitelist ) );
}
#endif