mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
414 B
C++
17 lines
414 B
C++
#include "view.h"
|
|
|
|
#include <QApplication>
|
|
#include <QQmlContext>
|
|
|
|
View::View(QQuickView *parent)
|
|
: QQuickView(parent)
|
|
{
|
|
rootContext()->setContextProperty("View", this);
|
|
|
|
setFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
|
// setResizeMode(QQuickView::SizeViewToRootObject);
|
|
setSource(QUrl("qrc:/qml/main.qml"));
|
|
setScreen(qApp->primaryScreen());
|
|
setColor(Qt::transparent);
|
|
}
|