diff --git a/README.md b/README.md index 7afb968..6ef855e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rust Qt Binding Generator -![Rust Qt Binding](demo/logo.svg) +![Rust Qt Binding](demo/rust_qt_binding_generator.svg) This code generator gets you started quickly to use Rust code from Qt and QML. In other words, it helps to create a Qt based GUI on top of Rust code. diff --git a/demo/qml/StyleSwitcher.qml b/demo/qml/StyleSwitcher.qml index f7c4daa..191f39a 100644 --- a/demo/qml/StyleSwitcher.qml +++ b/demo/qml/StyleSwitcher.qml @@ -6,7 +6,7 @@ RowLayout { Image { sourceSize.height: 2* box.height fillMode: Image.PreserveAspectFit - source: "../logo.svg" + source: "../rust_qt_binding_generator.svg" } ComboBox { id: box diff --git a/demo/qml/StyleSwitcher2.qml b/demo/qml/StyleSwitcher2.qml index 36d7c80..57894c9 100644 --- a/demo/qml/StyleSwitcher2.qml +++ b/demo/qml/StyleSwitcher2.qml @@ -6,7 +6,7 @@ RowLayout { Image { sourceSize.height: 2 * box.height fillMode: Image.PreserveAspectFit - source: "../logo.svg" + source: "../rust_qt_binding_generator.svg" } ComboBox { id: box diff --git a/demo/resource_file.qrc b/demo/resource_file.qrc index a90700e..c86622f 100644 --- a/demo/resource_file.qrc +++ b/demo/resource_file.qrc @@ -1,6 +1,6 @@ - logo.svg + rust_qt_binding_generator.svg qml/DataAndChart.qml qml/Fibonacci.qml qml/Fibonacci2.qml diff --git a/demo/logo.svg b/demo/rust_qt_binding_generator.svg similarity index 73% rename from demo/logo.svg rename to demo/rust_qt_binding_generator.svg index 83518a8..afb87c8 100644 --- a/demo/logo.svg +++ b/demo/rust_qt_binding_generator.svg @@ -1,187 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + version="1.1"> + - + image/svg+xml - - + + Rust Qt Binding Generator - - + + /> + /> + /> diff --git a/demo/src/main.cpp b/demo/src/main.cpp index f000684..fe8590b 100644 --- a/demo/src/main.cpp +++ b/demo/src/main.cpp @@ -155,11 +155,11 @@ QStatusBar* createStatusBar(Model* model, QWidget* main, QComboBox* box, }; box->connect(box, &QComboBox::currentTextChanged, box, f); - QSvgWidget* logo = new QSvgWidget(":/logo.svg"); - logo->setFixedSize(logo->renderer()->defaultSize() / 4); + QSvgWidget* rust_qt_binding_generator = new QSvgWidget(":/rust_qt_binding_generator.svg"); + rust_qt_binding_generator->setFixedSize(rust_qt_binding_generator->renderer()->defaultSize() / 4); QStatusBar* statusBar = new QStatusBar; - statusBar->addPermanentWidget(logo); + statusBar->addPermanentWidget(rust_qt_binding_generator); statusBar->addPermanentWidget(box); return statusBar; } @@ -336,7 +336,7 @@ void createMainWindow(Model* model, const QString& initialStyle, int main (int argc, char *argv[]) { QApplication app(argc, argv); - app.setWindowIcon(QIcon(":/logo.svg")); + app.setWindowIcon(QIcon(":/rust_qt_binding_generator.svg")); #ifdef QT_QUICK_LIB qmlRegisterType("org.qtproject.example", 1, 0, "SortFilterProxyModel");