refactor(session): use QCoreApplication

main
Reion Wong 3 weeks ago
parent 779765e599
commit 3f96f9fbc5

@ -11,14 +11,31 @@ jobs:
name: Debian name: Debian
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: docker.io/library/debian:sid container: docker.io/library/debian:sid
steps: steps:
- name: Checkout Source - name: Install basic tools
uses: actions/checkout@v3 run: |
- name: Update repository apt-get update
run: apt-get update -y apt-get install -y git ca-certificates
- name: Install the basic dev packages
run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ - name: Checkout source
- name: Install build dependencies uses: actions/checkout@v4
run: mk-build-deps -i -t "apt-get --yes" -r
- name: Build Package - name: Install build tools
run: dpkg-buildpackage -b -uc -us -j$(nproc) run: |
apt-get install -y \
equivs \
curl \
devscripts \
lintian \
build-essential \
automake \
autotools-dev \
cmake \
g++
- name: Install build dependencies
run: mk-build-deps -i -t "apt-get --yes" -r
- name: Build package
run: dpkg-buildpackage -b -uc -us -j$(nproc)

@ -21,9 +21,6 @@ set_source_files_properties(${DBUS_SOURCES} PROPERTIES SKIP_AUTOGEN ON)
add_executable(${TARGET} ${SOURCES} ${DBUS_SOURCES}) add_executable(${TARGET} ${SOURCES} ${DBUS_SOURCES})
target_link_libraries(${TARGET} target_link_libraries(${TARGET}
Qt6::Core Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::Quick
Qt6::DBus Qt6::DBus
) )

@ -81,7 +81,7 @@ void setEnvironmentVariable(const QByteArray &name, const QByteArray &value)
} }
Application::Application(int &argc, char **argv) Application::Application(int &argc, char **argv)
: QApplication(argc, argv) : QCoreApplication(argc, argv)
, m_processManager(new ProcessManager(this)) , m_processManager(new ProcessManager(this))
, m_networkProxyManager(new NetworkProxyManager) , m_networkProxyManager(new NetworkProxyManager)
{ {

@ -20,13 +20,13 @@
#ifndef APPLICATION_H #ifndef APPLICATION_H
#define APPLICATION_H #define APPLICATION_H
#include <QApplication> #include <QCoreApplication>
#include "processmanager.h" #include "processmanager.h"
#include "networkproxymanager.h" #include "networkproxymanager.h"
#include "powermanager/power.h" #include "powermanager/power.h"
class Application : public QApplication class Application : public QCoreApplication
{ {
Q_OBJECT Q_OBJECT

@ -18,15 +18,10 @@
*/ */
#include "application.h" #include "application.h"
#include <QQuickWindow>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QQuickWindow::setDefaultAlphaBuffer(true);
Application a(argc, argv); Application a(argc, argv);
a.setQuitOnLastWindowClosed(false);
return a.exec(); return a.exec();
} }

Loading…
Cancel
Save