Skip to content

Commit

Permalink
gui: StyleHelper: removed TimePlotHDivInfo style
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed May 20, 2024
1 parent ad27312 commit 07ee24b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion gui/include/gui/stylehelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class SCOPY_GUI_EXPORT StyleHelper : public QObject
static void StatsPanelLabel(StatsLabel *w, QString objectName = "");
static void MeasurementSelectorItemWidget(QString iconPath, MeasurementSelectorItem *w,
QString objectName = "");
static void TimePlotHDivInfo(QLabel *w, QString objectName = "");
static void PlotInfoLabel(QLabel *w, QString objectName = "");
static void DeviceIconBackgroundShadow(QAbstractButton *w, QString objectName = "");
static void FrameBackgroundShadow(QFrame *w, QString objectName = "");
Expand Down
10 changes: 0 additions & 10 deletions gui/src/stylehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,6 @@ void StyleHelper::MeasurementSelectorItemWidget(QString iconPath, MeasurementSel
// StyleHelper::MenuSmallLabel(statsLabel);
}

void StyleHelper::TimePlotHDivInfo(QLabel *w, QString objectName)
{
QString style = QString(R"css(
color: &&ScopyBlue&&;
font-weight: 500;
font-size: 12px;
)css");
style.replace("&&ScopyBlue&&", StyleHelper::getColor("ScopyBlue"));
w->setStyleSheet(style);
}
void StyleHelper::PlotInfoLabel(QLabel *w, QString objectName)
{
QString style = QString(R"css(
Expand Down
2 changes: 1 addition & 1 deletion gui/src/widgets/plotinfowidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ HDivInfo::HDivInfo(PlotWidget *plot, QWidget *parent)
: m_mpf(new MetricPrefixFormatter(this))
, m_plot(plot)
{
StyleHelper::TimePlotHDivInfo(this);
StyleHelper::PlotInfoLabel(this);
m_mpf->setTrimZeroes(true);
connect(m_plot->navigator(), &PlotNavigator::rectChanged, this, &HDivInfo::onRectChanged);

Expand Down

0 comments on commit 07ee24b

Please sign in to comment.