refactor(session): use QCoreApplication

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

@ -11,14 +11,31 @@ jobs:
name: Debian
runs-on: ubuntu-latest
container: docker.io/library/debian:sid
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Update repository
run: apt-get update -y
- name: Install the basic dev packages
run: apt-get install -y equivs curl git 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)
- name: Install basic tools
run: |
apt-get update
apt-get install -y git ca-certificates
- name: Checkout source
uses: actions/checkout@v4
- name: Install build tools
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})
target_link_libraries(${TARGET}
Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::Quick
Qt6::DBus
)

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

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

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

Loading…
Cancel
Save