-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
{
myPrs = 0;
myAutoDel = theAutoDel;
- Plot2d_Object::initColors();
+ Plot2d_Object::setSelectionColor( QColor(80,80,80) );
+ Plot2d_Object::setHighlightedLegendTextColor( QColor(255,255,255) );
}
/*!
{
SUIT_ViewManager* aMgr = getViewManager();
QVector<SUIT_ViewWindow*> aViews = aMgr->getViews();
- unsigned int aSize = aViews.size();
- for (uint i = 0; i < aSize; i++) {
+ int aSize = aViews.size();
+ for (int i = 0; i < aSize; i++) {
Plot2d_ViewWindow* aView = (Plot2d_ViewWindow*)aViews[i];
if (myPrs && aView)
aView->getViewFrame()->Display(myPrs);
QVector<SUIT_ViewWindow*> aViews;
if ( aMgr )
aViews = aMgr->getViews();
- unsigned int aSize = aViews.size();
- for (uint i = 0; i < aSize; i++) {
+ int aSize = aViews.size();
+ for (int i = 0; i < aSize; i++) {
Plot2d_ViewWindow* aView = (Plot2d_ViewWindow*)aViews[i];
if (myPrs && aView)
aView->getViewFrame()->Erase(myPrs);
/*
SLOT: called when clicked item in the legend from Plot2d_ViewManager
*/
-void Plot2d_Viewer::onLegendClicked( QwtPlotItem* plotItem )
+void Plot2d_Viewer::onClicked(const QVariant& /*itemInfo*/, int /*index*/)
{
}