From edd73abb4ef8c2899aca27bf04a42aa18ff955ff Mon Sep 17 00:00:00 2001 From: Andrei Popa Date: Fri, 10 May 2024 15:18:35 +0300 Subject: [PATCH] gui: StyleHelper: removed TimePlotHDivInfo style Signed-off-by: Andrei Popa --- gui/include/gui/stylehelper.h | 1 - gui/src/stylehelper.cpp | 10 ---------- gui/src/widgets/plotinfowidgets.cpp | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/gui/include/gui/stylehelper.h b/gui/include/gui/stylehelper.h index 5b0ce689ca..c24eb41a6f 100644 --- a/gui/include/gui/stylehelper.h +++ b/gui/include/gui/stylehelper.h @@ -87,7 +87,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 = ""); diff --git a/gui/src/stylehelper.cpp b/gui/src/stylehelper.cpp index 7257e1b9ff..00c6f3d38c 100644 --- a/gui/src/stylehelper.cpp +++ b/gui/src/stylehelper.cpp @@ -182,16 +182,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( diff --git a/gui/src/widgets/plotinfowidgets.cpp b/gui/src/widgets/plotinfowidgets.cpp index 0a7b6eef8d..8e92921e0a 100644 --- a/gui/src/widgets/plotinfowidgets.cpp +++ b/gui/src/widgets/plotinfowidgets.cpp @@ -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, [=]() { PlotAxis *xAxis = m_plot->selectedChannel()->xAxis();