-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
: QToolButton( parent )
{
setCheckable( false );
- setPopupMode( MenuButtonPopup ); // VSR 11/10/2010 temporarily roolback from InstantPopup (regressions)
+ setPopupMode( InstantPopup );
QMenu* pm = new QMenu( this );
QGridLayout* grid = new QGridLayout( pm );
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