summaryrefslogtreecommitdiffstats
path: root/examples/dbus/remotecontrolledcar/car/main.cpp
diff options
context:
space:
mode:
authorMatthias Rauter <matthias.rauter@qt.io>2023-12-21 13:09:09 +0100
committerMatthias Rauter <matthias.rauter@qt.io>2023-12-21 19:49:28 +0100
commit29a4323974a1877faf389637be40688e3bc1790d (patch)
tree659343b3c4aa3e9d452d34da364b31534476c720 /examples/dbus/remotecontrolledcar/car/main.cpp
parent5a0135fafb16203a812163f7ed55c1b981477cb5 (diff)
Update visuals of remote controlled car example
* Added icons to the controller. * Keep the car within the scene. * Removed the ui file because 4 buttons can be maintained in code easier. Change-Id: I10af821beb442939e1e7fbdd3ffbde67a272bb2f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/dbus/remotecontrolledcar/car/main.cpp')
-rw-r--r--examples/dbus/remotecontrolledcar/car/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dbus/remotecontrolledcar/car/main.cpp b/examples/dbus/remotecontrolledcar/car/main.cpp
index 9c732fed5e..81b8cdfc20 100644
--- a/examples/dbus/remotecontrolledcar/car/main.cpp
+++ b/examples/dbus/remotecontrolledcar/car/main.cpp
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
view.setRenderHint(QPainter::Antialiasing);
view.setBackgroundBrush(Qt::darkGray);
view.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Qt DBus Controlled Car"));
- view.resize(400, 300);
+ view.resize(view.sizeHint());
view.show();
new CarInterfaceAdaptor(car);