Changeset View
Changeset View
Standalone View
Standalone View
autotests/testkwaylanddpms.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 55 | private: | |||
---|---|---|---|---|---|
59 | 59 | | |||
60 | KScreen::WaylandTestServer *m_server; | 60 | KScreen::WaylandTestServer *m_server; | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | TestDpmsClient::TestDpmsClient(QObject *parent) | 63 | TestDpmsClient::TestDpmsClient(QObject *parent) | ||
64 | : QObject(parent) | 64 | : QObject(parent) | ||
65 | , m_server(nullptr) | 65 | , m_server(nullptr) | ||
66 | { | 66 | { | ||
67 | setenv("WAYLAND_DISPLAY", s_socketName.toLocal8Bit(), 1); | 67 | setenv("WAYLAND_DISPLAY", s_socketName.toLocal8Bit().constData(), true); | ||
68 | m_server = new KScreen::WaylandTestServer(this); | 68 | m_server = new KScreen::WaylandTestServer(this); | ||
69 | m_server->start(); | 69 | m_server->start(); | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | void TestDpmsClient::initTestCase() | 72 | void TestDpmsClient::initTestCase() | ||
73 | { | 73 | { | ||
74 | // setup connection | 74 | // setup connection | ||
75 | m_connection = new KWayland::Client::ConnectionThread; | 75 | m_connection = new KWayland::Client::ConnectionThread; | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |