Skip to content

Commit

Permalink
changed svg to png for better platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
machinekoder committed Apr 13, 2014
1 parent e403f7c commit 7bdb766
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ int main(int argc, char *argv[])
qmlRegisterType<FileIO>("FileIO", 1, 0, "File");

QQmlApplicationEngine engine;
engine.addImportPath(".");
engine.addPluginPath(".");
//engine.addImportPath(".");
//engine.addPluginPath(".");
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));

return app.exec();
Expand Down
2 changes: 1 addition & 1 deletion qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<file>qml/main.qml</file>
<file>qml/Pin.qml</file>
<file>qml/Port.qml</file>
<file>qml/BBB_shape.svg</file>
<file>qml/Legend.qml</file>
<file>qml/pinmux.txt</file>
<file>qml/ToolTip.qml</file>
Expand All @@ -14,5 +13,6 @@
<file>qml/colormap1.txt</file>
<file>qml/colormap2.txt</file>
<file>qml/Functions.js</file>
<file>qml/BBB_shape.png</file>
</qresource>
</RCC>
Binary file added qml/BBB_shape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ ApplicationWindow {

Image {
anchors.fill: parent
source: "BBB_shape.svg"
source: "BBB_shape.png"
fillMode: Image.PreserveAspectFit

TextInput {
Expand Down

0 comments on commit 7bdb766

Please sign in to comment.