X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ChoiceCtrl.cpp;h=7741e99c397105c2e772bb6f8f48002c4690e4e8;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=1c887faa49d28a30870458d79fff76f5d171c3bf;hpb=33d191c57ab22ff6e84ea27e69537670d242d336;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ChoiceCtrl.cpp b/src/ModuleBase/ModuleBase_ChoiceCtrl.cpp index 1c887faa4..7741e99c3 100644 --- a/src/ModuleBase/ModuleBase_ChoiceCtrl.cpp +++ b/src/ModuleBase/ModuleBase_ChoiceCtrl.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -29,6 +29,9 @@ #include #include +const QString AStyle = "QToolButton:checked {border: 1px solid black; background-color:#C0DCF3}"; + + ModuleBase_ChoiceCtrl::ModuleBase_ChoiceCtrl(QWidget* theParent, const QStringList& theChoiceList, const QStringList& theIconsList, @@ -68,6 +71,7 @@ ModuleBase_ChoiceCtrl::ModuleBase_ChoiceCtrl(QWidget* theParent, QPixmap aIcon = ModuleBase_IconFactory::loadPixmap(theIconsList.at(aId)); aBtn->setIcon(aIcon); aBtn->setIconSize(aIcon.size()); + aBtn->setStyleSheet(AStyle); aBtnLayout->addWidget(aBtn); myButtons->addButton(aBtn, aId++);