Fix Q_DECL_EXPORT bug that caused Windows breakage.

Apparently I caused breakage in Windows with an inappropriately placed Q_DECL_EXPORT.