From ef4fa1f9a193bca991bfd5b2995f457e89501d24 Mon Sep 17 00:00:00 2001 From: KhalilSelyan Date: Sun, 19 May 2024 19:16:01 +0300 Subject: [PATCH] fixed size on height for custom buttons Signed-off-by: KhalilSelyan --- common/tier4_state_rviz_plugin/src/custom_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tier4_state_rviz_plugin/src/custom_button.cpp b/common/tier4_state_rviz_plugin/src/custom_button.cpp index b6ff82e4d9523..d7c7cebd6835a 100644 --- a/common/tier4_state_rviz_plugin/src/custom_button.cpp +++ b/common/tier4_state_rviz_plugin/src/custom_button.cpp @@ -4,7 +4,7 @@ CustomElevatedButton::CustomElevatedButton( const QString & text, const QColor & bgColor, const QColor & textColor, QWidget * parent) : QPushButton(text, parent), backgroundColor(bgColor), textColor(textColor) { - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); setCursor(Qt::PointingHandCursor); // set font weight to bold and size to 12