Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
r3vn committed Jul 15, 2020
1 parent bec807c commit b5ad542
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
Binary file added qml/images/sailfishcontainers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions qml/pages/FirstPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,23 @@ Page {
id: root
objectName: "firstPage"

Image {
id: hintLogo
anchors.centerIn: parent
source: "../images/sailfishcontainers.png"
}

Label {
id: hintLabel
anchors.centerIn: parent
text: "No Xwayland window"
anchors.bottom: hintLogo.bottom
text: "Waiting Xwayland window..."
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Theme.fontSizeLarge
}

property variant selectedWindow: null
property bool hasFullscreenWindow: typeof compositor != "undefined" && compositor.fullscreenSurface !== null


function windowAdded(window) {
var windowContainerComponent = Qt.createComponent("../compositor/XWaylandContainer.qml");
if (windowContainerComponent.status !== Component.Ready) {
Expand All @@ -73,6 +79,7 @@ Page {
windowContainer.child.touchEventsEnabled = true;

hintLabel.visible = false
hintLogo.visible = false

root.selectedWindow = windowContainer.child
windowContainer.child.takeFocus()
Expand Down
3 changes: 2 additions & 1 deletion qxdisplay.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ SOURCES += \

OTHER_FILES += \
qml/cover/CoverPage.qml \
qml/pages/FirstPage.qml \
qml/pages/FirstPage.qml

DISTFILES += \
qml/compositor/XWaylandContainer.qml \
qml/images/sailfishcontainers.png \
qml/qxcompositor.qml \
rpm/qxdisplay.changes.in \
rpm/qxdisplay.spec
Expand Down
2 changes: 1 addition & 1 deletion rpm/qxdisplay.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name: qxdisplay
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: My Sailfish OS Application
Version: 0.1
Release: 1
Release: 2
Group: Qt/Qt
License: LICENSE
URL: http://example.org/
Expand Down
2 changes: 1 addition & 1 deletion src/qmlcompositor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class QmlCompositor : public QObject, public QWaylandQuickCompositor
Q_PROPERTY(QWaylandQuickSurface* fullscreenSurface READ fullscreenSurface WRITE setFullscreenSurface NOTIFY fullscreenSurfaceChanged)

public:
QmlCompositor(QQuickView *quickView, const char *socketName = 0, const char *screenOrientationOption="landscape");
QmlCompositor(QQuickView *quickView, const char *socketName = 0, const char *screenOrientationOption=qPrintable("landscape"));

QWaylandQuickSurface *fullscreenSurface() const;

Expand Down

0 comments on commit b5ad542

Please sign in to comment.