mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-24 00:13:52 +08:00
* refactor DriverViewWidow to inherit from CameraWidget * emit done on visible * merge master * cleanup * lock_guard --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
22 lines
373 B
C++
22 lines
373 B
C++
#pragma once
|
|
|
|
#include "selfdrive/ui/qt/widgets/cameraview.h"
|
|
|
|
class DriverViewWindow : public CameraWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DriverViewWindow(QWidget *parent);
|
|
|
|
signals:
|
|
void done();
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override;
|
|
void hideEvent(QHideEvent *event) override;
|
|
void paintGL() override;
|
|
|
|
Params params;
|
|
QPixmap face_img;
|
|
};
|