Skip to content

Commit

Permalink
fixed size on height for custom buttons
Browse files Browse the repository at this point in the history
Signed-off-by: KhalilSelyan <[email protected]>
  • Loading branch information
KhalilSelyan committed May 19, 2024
1 parent d04fc07 commit ef4fa1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/tier4_state_rviz_plugin/src/custom_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef4fa1f

Please sign in to comment.