Fix qrc resources not working
This commit is contained in:
@@ -23,10 +23,11 @@ int main(int argc, char *argv[]) {
|
||||
objectContext->setContextProperty("debugMode", false);
|
||||
#endif
|
||||
|
||||
QFileInfo qrcPath(":/qml/Window.qml");
|
||||
|
||||
QQmlComponent component(
|
||||
&engine,
|
||||
QFileInfo::exists("qrc:/qml/Window.qml") ?
|
||||
"qrc:/qml/Window.qml" : "src/qml/Window.qml"
|
||||
qrcPath.exists() ? "qrc:/qml/Window.qml" : "src/qml/Window.qml"
|
||||
);
|
||||
component.create(objectContext);
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import "../Base"
|
||||
|
||||
HNoticePage {
|
||||
text: "Select or add a room to start."
|
||||
text: qsTr("Add or select a room to start.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user