Bugfix/resolution change event Fixes part of #620 (#867)

* Detect resolution changes

* include Qt5Widgets

* find Qt5Widgets

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
This commit is contained in:
Murat Seker
2020-07-12 09:23:13 +02:00
committed by GitHub
parent 22ace55447
commit c32a4df587
9 changed files with 55 additions and 10 deletions

View File

@@ -36,10 +36,12 @@ target_link_libraries(${PROJECT_NAME}
x11-grabber
ssdp
${X11_LIBRARIES}
${X11_Xrandr_LIB}
${X11_Xrender_LIB}
Qt5::Core
Qt5::Gui
Qt5::Network
Qt5::Widgets
)
install ( TARGETS ${PROJECT_NAME} DESTINATION "share/hyperion/bin" COMPONENT "hyperion_x11" )

View File

@@ -1,6 +1,6 @@
// QT includes
#include <QCoreApplication>
#include <QApplication>
#include <QImage>
#include <commandline/Parser.h>
@@ -28,8 +28,7 @@ int main(int argc, char ** argv)
<< "\tVersion : " << HYPERION_VERSION << " (" << HYPERION_BUILD_ID << ")" << std::endl
<< "\tbuild time: " << __DATE__ << " " << __TIME__ << std::endl;
QCoreApplication app(argc, argv);
QApplication app(argc, argv);
try
{
// create the option parser and initialize all parameters