-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
*/
void QtxFontEdit::setCurrentFont( const QFont& fnt )
{
- myFamily->blockSignals( true );
+ // VSR 25/08/2016: IPAL53224
+ // blocking signals of QFontComboBox breaks its internal business logic
+ // that prevents correct retrieving of available sizes for the font in case
+ // when some non-existent font is replaced by its closest analogue
+ //myFamily->blockSignals( true );
myCustomFams->blockSignals( true );
mySize->blockSignals( true );
myB->blockSignals( true );
( fnt.underline() ? Underline : 0 ) |
( fnt.overline() ? Shadow : 0 ) );
- myFamily->blockSignals( false );
+ //myFamily->blockSignals( false );
myCustomFams->blockSignals( false );
mySize->blockSignals( false );
myB->blockSignals( false );
myMode = mode;
- myFamily->setShown( myMode == Native );
- myCustomFams->setShown( myMode == Custom );
+ myFamily->setVisible( myMode == Native );
+ myCustomFams->setVisible( myMode == Custom );
updateGeometry();
}