Files
sunnypilot/selfdrive/ui/tests/ui_snapshot.h
Cameron Clough 15ac8c041b UI snapshot tool (#28356)
* UI: snapshot testing tool

* gitignore

* cleanup

* remove prime type arg

* rename

* add script

* commit snapshots

* use base setup

* updates

* always run base

* echo

* use imagemagick

* test_snapshots

* fixes

* update

* set language

* revert

* default arg

* just remove translations

* formatting

* output arg

* improved help

* fix assets

* change dir back before saving snapshot

* unused imports

* simpler

* add default to description

* use uiUpdate signal
2023-05-31 23:04:30 -07:00

6 lines
100 B
C

#pragma once
#include <QWidget>
void saveWidgetAsImage(QWidget *widget, const QString &fileName);