Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Malte Jürgens | 37c1482407 | |
Malte Jürgens | 565eef7327 |
|
@ -14,8 +14,13 @@ string(TIMESTAMP TIMESTAMP %s)
|
||||||
# set(CMAKE_AUTOUIC ON)
|
# set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Widgets)
|
find_package(Qt5 COMPONENTS Widgets)
|
||||||
if (Qt5_FOUND)
|
if (Qt5_FOUND AND NOT DEFINED USE_QT6)
|
||||||
|
message(STATUS "Using Qt 5")
|
||||||
find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets WebEngineWidgets)
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets WebEngineWidgets)
|
||||||
|
else()
|
||||||
|
message(STATUS "Using Qt 6")
|
||||||
|
find_package(Qt6 CONFIG REQUIRED COMPONENTS Widgets WebEngineWidgets)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(KF5Notifications)
|
find_package(KF5Notifications)
|
||||||
if(KF5Notifications_FOUND)
|
if(KF5Notifications_FOUND)
|
||||||
|
@ -31,10 +36,6 @@ if (Qt5_FOUND)
|
||||||
if(KF5GlobalAccel_FOUND)
|
if(KF5GlobalAccel_FOUND)
|
||||||
add_definitions( -DKGLOBALACCEL )
|
add_definitions( -DKGLOBALACCEL )
|
||||||
endif()
|
endif()
|
||||||
else()
|
|
||||||
message(WARNING "Qt 5 was not found on your system and Qt 6 will be used. You will not be able to use any features using KDE Frameworks.")
|
|
||||||
find_package(Qt6 CONFIG REQUIRED COMPONENTS Widgets WebEngineWidgets)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(discord-screenaudio_SRC
|
set(discord-screenaudio_SRC
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
CentralWidget::CentralWidget(QWidget *parent) : QWidget(parent) {
|
CentralWidget::CentralWidget(QWidget *parent) : QWidget(parent) {
|
||||||
setStyleSheet("background-color:#313338;");
|
setStyleSheet("background-color:#313338;");
|
||||||
m_layout = new QVBoxLayout(this);
|
m_layout = new QVBoxLayout(this);
|
||||||
m_layout->setMargin(0);
|
|
||||||
m_layout->setSpacing(0);
|
m_layout->setSpacing(0);
|
||||||
setupWebView();
|
setupWebView();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue