QupZilla / qupzilla

Cross-platform Qt web browser
http://www.qupzilla.com
GNU General Public License v3.0
1.11k stars 350 forks source link

QZ_REGISTER_EVENT_HANDLER undefined #2606

Closed HJarausch closed 6 years ago

HJarausch commented 6 years ago

I have qt-5.9.1 installed on my Gentoo system. Compile the GIT version of Qupzilla fails due to

copytitle.cpp:55:5: error: 'QZ_REGISTER_EVENT_HANDLER' was not declared in this scope QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler);

ghost commented 6 years ago

Do you really need this plugin?

HJarausch commented 6 years ago

Hopefully, I've fixed the problem with

sed -e 's|QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler)|\ // Registering this plugin as a MousePressHandler.\ // Otherwise mousePress() function will never be called\ mApp->plugins()->registerAppEventHandler(PluginProxy::MousePressHandler, this)|' src/plugins/CopyTitle/copytitle.cpp

nowrep commented 6 years ago

Should be fixed now.