Fix minor EBN issues

This commit is contained in:
Yuri Chornoivan 2018-09-12 20:49:38 +03:00
parent 88fde0b4ce
commit 96df0ea6ae
33 changed files with 57 additions and 54 deletions

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_APPMENU_H
#define KWAYLAND_SERVER_APPMENU_H
#ifndef KWAYLAND_SERVER_APPMENU_INTERFACE_H
#define KWAYLAND_SERVER_APPMENU_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -372,7 +372,7 @@ void TestWaylandOutputDevice::testScaleChange_legacy()
m_serverOutputDevice->setScale(2);
QVERIFY(outputChanged.wait());
QCOMPARE(output.scale(), 2);
QCOMPARE(output.scaleF(), 2.0); //check we're forward compatiable
QCOMPARE(output.scaleF(), 2.0); //check we're forward compatible
// change once more

View file

@ -479,7 +479,7 @@ void TestWaylandOutputManagement::testConfigFailed()
QVERIFY(serverApplySpy.wait(200));
// Artificialy make the server fail to apply the settings
// Artificially make the server fail to apply the settings
// Make sure the applied signal never comes, and that failed has been received
QVERIFY(!configAppliedSpy.wait(200));
QCOMPARE(configFailedSpy.count(), 1);

View file

@ -1820,7 +1820,7 @@ void TestWaylandSeat::testSelection()
// setting the same again should not change
m_seatInterface->setSelection(ddi);
QVERIFY(!selectionSpy.wait(100));
// now clear it manully
// now clear it manually
m_seatInterface->setSelection(nullptr);
QVERIFY(selectionClearedSpy.wait());
QCOMPARE(selectionSpy.count(), 2);

View file

@ -27,7 +27,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
#include "../../src/client/registry.h"
#include "../../src/client/surface.h"
#include "../../src/client/plasmawindowmanagement.h"
#include "../../src/client/surface.h"
#include "../../src/server/display.h"
#include "../../src/server/compositor_interface.h"
#include "../../src/server/region_interface.h"

View file

@ -17,6 +17,9 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#ifndef TEST_XDG_SHELL_H
#define TEST_XDG_SHELL_H
// Qt
#include <QtTest/QtTest>
// client
@ -99,3 +102,5 @@ private:
QVERIFY(xdgSurfaceCreatedSpy.wait()); \
auto serverXdgSurface = xdgSurfaceCreatedSpy.first().first().value<XdgShellSurfaceInterface*>(); \
QVERIFY(serverXdgSurface);
#endif

View file

@ -75,7 +75,7 @@ public:
void inhibit();
/**
* Unhibits the IdleInterface. The idle timeouts are only restarted if uninhibit has been
* Inhibits the IdleInterface. The idle timeouts are only restarted if uninhibit has been
* called the same amount as inhibit.
*
* @see inhibit

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_IDLEINHIBIT_H
#define KWAYLAND_SERVER_IDLEINHIBIT_H
#ifndef KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H
#define KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_IDLEINHIBIT_P_H
#define KWAYLAND_SERVER_IDLEINHIBIT_P_H
#ifndef KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_P_H
#define KWAYLAND_SERVER_IDLEINHIBIT_INTERFACE_P_H
#include "idleinhibit_interface.h"
#include "global_p.h"

View file

@ -18,8 +18,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef WAYLAND_SERVER_CHANGESET_H
#define WAYLAND_SERVER_CHANGESET_H
#ifndef WAYLAND_SERVER_OUTPUT_CHANGESET_H
#define WAYLAND_SERVER_OUTPUT_CHANGESET_H
#include <QObject>

View file

@ -17,8 +17,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_OUTPUTCONFIGURATION_H
#define KWAYLAND_SERVER_OUTPUTCONFIGURATION_H
#ifndef KWAYLAND_SERVER_OUTPUTCONFIGURATION_INTERFACE_H
#define KWAYLAND_SERVER_OUTPUTCONFIGURATION_INTERFACE_H
#include "resource.h"
#include "outputmanagement_interface.h"

View file

@ -22,7 +22,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
#include "outputconfiguration_interface.h"
#include "display.h"
#include "global_p.h"
#include "display.h"
#include <wayland-server.h>
#include "wayland-output-management-server-protocol.h"

View file

@ -17,8 +17,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_OUTPUTMANAGEMENT_H
#define KWAYLAND_SERVER_OUTPUTMANAGEMENT_H
#ifndef KWAYLAND_SERVER_OUTPUTMANAGEMENT_INTERFACE_H
#define KWAYLAND_SERVER_OUTPUTMANAGEMENT_INTERFACE_H
#include "global.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_POINTERCONSTRAINTS_H
#define KWAYLAND_SERVER_POINTERCONSTRAINTS_H
#ifndef KWAYLAND_SERVER_POINTERCONSTRAINTS_INTERFACE_H
#define KWAYLAND_SERVER_POINTERCONSTRAINTS_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_POINTERCONSTRAINTS_P_H
#define KWAYLAND_SERVER_POINTERCONSTRAINTS_P_H
#ifndef KWAYLAND_SERVER_POINTERCONSTRAINTS_INTERFACE_P_H
#define KWAYLAND_SERVER_POINTERCONSTRAINTS_INTERFACE_P_H
#include "pointerconstraints_interface.h"
#include "global_p.h"
#include "resource_p.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_POINTERGESTURES_H
#define KWAYLAND_SERVER_POINTERGESTURES_H
#ifndef KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_H
#define KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_H
#include "global.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_POINTERGESTURES_P_H
#define KWAYLAND_SERVER_POINTERGESTURES_P_H
#ifndef KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_P_H
#define KWAYLAND_SERVER_POINTERGESTURES_INTERFACE_P_H
#include "pointergestures_interface.h"
#include "resource_p.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_RELATIVE_POINTER_H
#define KWAYLAND_SERVER_RELATIVE_POINTER_H
#ifndef KWAYLAND_SERVER_RELATIVE_POINTER_INTERFACE_H
#define KWAYLAND_SERVER_RELATIVE_POINTER_INTERFACE_H
#include "global.h"

View file

@ -17,9 +17,9 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#include "output_interface.h"
#include "remote_access_interface.h"
#include "remote_access_interface_p.h"
#include "output_interface.h"
#include "display.h"
#include "global_p.h"
#include "resource_p.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_REMOTE_ACCESS_H
#define KWAYLAND_SERVER_REMOTE_ACCESS_H
#ifndef KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_H
#define KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_H
#include "global.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_REMOTE_ACCESS_P_H
#define KWAYLAND_SERVER_REMOTE_ACCESS_P_H
#ifndef KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_P_H
#define KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_P_H
#include "resource.h"

View file

@ -90,7 +90,7 @@ class KWAYLANDSERVER_EXPORT ShellSurfaceInterface : public Resource
**/
Q_PROPERTY(QByteArray windowClass READ windowClass NOTIFY windowClassChanged)
/**
* Whether the window is fullscren.
* Whether the window is fullscreen.
**/
Q_PROPERTY(bool fullscreen READ isFullscreen NOTIFY fullscreenChanged)
/**

View file

@ -384,7 +384,7 @@ Q_SIGNALS:
**/
void requestReset();
/**
* Emitted whenever the preffered @p language changes.
* Emitted whenever the preferred @p language changes.
* @see preferredLanguage
**/
void preferredLanguageChanged(const QByteArray &language);

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_XDGFOREIGN_H
#define KWAYLAND_SERVER_XDGFOREIGN_H
#ifndef KWAYLAND_SERVER_XDGFOREIGN_INTERFACE_H
#define KWAYLAND_SERVER_XDGFOREIGN_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_XDGOUTPUT_H
#define KWAYLAND_SERVER_XDGOUTPUT_H
#ifndef KWAYLAND_SERVER_XDGOUTPUT_INTERFACE_H
#define KWAYLAND_SERVER_XDGOUTPUT_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_SERVER_DECORATION_H
#define KWAYLAND_SERVER_SERVER_DECORATION_H
#ifndef KWAYLAND_SERVER_SERVER_DECORATION_INTERFACE_H
#define KWAYLAND_SERVER_SERVER_DECORATION_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_DECORATION_PALETTE_H
#define KWAYLAND_SERVER_DECORATION_PALETTE_H
#ifndef KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H
#define KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_SLIDE_H
#define KWAYLAND_SERVER_SLIDE_H
#ifndef KWAYLAND_SERVER_SLIDE_INTERFACE_H
#define KWAYLAND_SERVER_SLIDE_INTERFACE_H
#include "global.h"
#include "resource.h"

View file

@ -129,7 +129,7 @@ int main(int argc, char **argv)
if (hasDpms) {
hasDpmsLabel->setText(QStringLiteral("Compositor provides a DpmsManager"));
} else {
hasDpmsLabel->setText(QStringLiteral("Compositor does not provid a DpmsManager"));
hasDpmsLabel->setText(QStringLiteral("Compositor does not provide a DpmsManager"));
}
QVBoxLayout *layout = new QVBoxLayout;

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#ifndef WAYLANDCLIENTTEST_H
#define WAYLANDCLIENTTEST_H
#ifndef QTWAYLANDINTEGRATIONTEST_H
#define QTWAYLANDINTEGRATIONTEST_H
#include <QObject>
#include <QSize>

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#ifndef WAYLANDCLIENTTEST_H
#define WAYLANDCLIENTTEST_H
#ifndef TOUCHCLIENTTEST_H
#define TOUCHCLIENTTEST_H
#include <QObject>
#include <QSize>

View file

@ -17,8 +17,8 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef KWAYLAND_SERVER_XDGFOREIGNV2_P_H
#define KWAYLAND_SERVER_XDGFOREIGNV2_P_H
#ifndef KWAYLAND_SERVER_XDGFOREIGNV2_INTERFACE_P_H
#define KWAYLAND_SERVER_XDGFOREIGNV2_INTERFACE_P_H
#include "global.h"
#include "resource.h"

View file

@ -334,7 +334,7 @@ Q_SIGNALS:
void transientForChanged();
/**
* Emitted whenever the maximun size hint changes
* Emitted whenever the maximum size hint changes
* @since 5.39
*/
void maxSizeChanged(const QSize &size);
@ -421,7 +421,7 @@ public:
/**
* Specifies in what direction the popup should be positioned around the anchor
* i.e if the gravity is "bottom", then then the top of top of the poup will be at the anchor edge
* i.e if the gravity is "bottom", then then the top of top of the popup will be at the anchor edge
* if the gravity is top, then the bottom of the popup will be at the anchor edge
*
* @since 5.39