diff --git a/mythplugins/mythweather/mythweather/main.cpp b/mythplugins/mythweather/mythweather/main.cpp index 0a09c04033f..07e9e3847ec 100644 --- a/mythplugins/mythweather/mythweather/main.cpp +++ b/mythplugins/mythweather/mythweather/main.cpp @@ -1,10 +1,6 @@ #include -// QT headers -#include -#include - // MythTV headers #include #include diff --git a/mythplugins/mythweather/mythweather/mythweather.pro b/mythplugins/mythweather/mythweather/mythweather.pro index 15acbe0a9a0..ab0654b92df 100644 --- a/mythplugins/mythweather/mythweather/mythweather.pro +++ b/mythplugins/mythweather/mythweather/mythweather.pro @@ -3,6 +3,9 @@ include ( ../../settings.pro ) include ( ../../programs-libs.pro ) QT += sql xml network +contains(QT_VERSION, ^5\\.[0-9]\\..*) { +QT += widgets +} TEMPLATE = lib CONFIG += plugin thread