Salome HOME
Fix problem with bad rendering of QtxColorButton when it is small.
[modules/gui.git] / src / Qtx / QtxColorButton.cxx
index 5ba0316403e7c35d025affadf9f72bcb39bc981e..3825fd5a64e22e77fc077876dcc41098d4101177 100644 (file)
@@ -413,6 +413,17 @@ QList<QColor> QtxColorButton::colorsList() const
   return lst;
 }
 
+/*!
+  \brief Get size hint for this widget.
+*/
+QSize QtxColorButton::sizeHint() const
+{
+  QSize sz = QToolButton::sizeHint();
+  sz.setWidth( sz.width() + 18 );
+  return sz;
+}
+
+
 /*!
   \fn void QtxColorButton::clicked( QColor color );
   \brief This signal is emitted when the widget button is clicked by