Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Aug 12, 2021
1 parent 16b9b39 commit 532e89f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/maps/map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void MapWindow::hideEvent(QHideEvent *event) {
QOpenGLWidget::hideEvent(event);
}

void MapWindow::showEvent(QHideEvent *event) {
void MapWindow::showEvent(QShowEvent *event) {
emit mapVisibilitySignal(true);
QOpenGLWidget::showEvent(event);
}
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/maps/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MapWindow : public QOpenGLWidget {
void resizeGL(int w, int h) override;

void hideEvent(QHideEvent *event);
void showEvent(QHideEvent *event);
void showEvent(QShowEvent *event);

QMapboxGLSettings m_settings;
QScopedPointer<QMapboxGL> m_map;
Expand Down
6 changes: 3 additions & 3 deletions selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ void ButtonsWindow::updateState(const UIState &s) {
}

void ButtonsWindow::mapVisibilityChanged(bool visible) {
qDebug() << "Map visible:" << visible << "setting width to:" << width;
qDebug() << "Map visible:" << visible << "setting width to:" << width();
if (visible) {
buttons->setFixedWidth(width() / 2 - bdr_s);
setFixedWidth(width() / 2 - bdr_s);
} else {
buttons->setFixedWidth(width() / 2 - bdr_s);
setFixedWidth(width() / 2 - bdr_s);
}
}

Expand Down

0 comments on commit 532e89f

Please sign in to comment.