diff --git a/oscar/overview.cpp b/oscar/overview.cpp
index f6426ac5..9ea1894e 100644
--- a/oscar/overview.cpp
+++ b/oscar/overview.cpp
@@ -77,8 +77,6 @@ Overview::Overview(QWidget *parent, gGraphView *shared) :
shortformat.replace("yy", "yyyy");
}
- ui->toggleVisibility->setVisible(false); /* get rid of tiny triangle that disables data display */
-
ui->dateStart->setDisplayFormat(shortformat);
ui->dateEnd->setDisplayFormat(shortformat);
@@ -907,46 +905,14 @@ void Overview::on_graphCombo_activated(int index)
void Overview::updateCube()
{
if ((GraphView->visibleGraphs() == 0)) {
- ui->toggleVisibility->setArrowType(Qt::UpArrow);
- ui->toggleVisibility->setToolTip(tr("Show all graphs"));
- ui->toggleVisibility->blockSignals(true);
- ui->toggleVisibility->setChecked(true);
- ui->toggleVisibility->blockSignals(false);
-
if (ui->graphCombo->count() > 0) {
GraphView->setEmptyText(STR_Empty_NoGraphs);
-
} else {
GraphView->setEmptyText(STR_Empty_NoData);
}
- } else {
- ui->toggleVisibility->setArrowType(Qt::DownArrow);
- ui->toggleVisibility->setToolTip(tr("Hide all graphs"));
- ui->toggleVisibility->blockSignals(true);
- ui->toggleVisibility->setChecked(false);
- ui->toggleVisibility->blockSignals(false);
}
}
-void Overview::on_toggleVisibility_clicked(bool checked)
-{
- gGraph *g;
- QString s;
- QIcon *icon = checked ? icon_off : icon_on;
-
- for (int i = 0; i < ui->graphCombo->count(); i++) {
- s = ui->graphCombo->itemText(i);
- ui->graphCombo->setItemIcon(i, *icon);
- ui->graphCombo->setItemData(i, !checked, Qt::UserRole);
- g = GraphView->findGraphTitle(s);
- g->setVisible(!checked);
- }
-
- updateCube();
- GraphView->updateScale();
- GraphView->redraw();
-}
-
void Overview::on_layout_clicked() {
if (!saveGraphLayoutSettings) {
saveGraphLayoutSettings= new SaveGraphLayoutSettings("overview",this);
diff --git a/oscar/overview.h b/oscar/overview.h
index d9c7ccfd..845e0b9c 100644
--- a/oscar/overview.h
+++ b/oscar/overview.h
@@ -139,8 +139,6 @@ class Overview : public QWidget
void on_graphCombo_activated(int index);
- void on_toggleVisibility_clicked(bool checked);
-
void on_LineCursorUpdate(double time);
void on_RangeUpdate(double minx, double maxx);
void setGraphText ();
diff --git a/oscar/overview.ui b/oscar/overview.ui
index 65483855..7fa49802 100644
--- a/oscar/overview.ui
+++ b/oscar/overview.ui
@@ -224,41 +224,6 @@ QToolButton:pressed {
-
- -
-
-
- Toggle Graph Visibility
-
-
- QToolButton {
- background: transparent;
- border-radius: 8px;
- border: 2px solid transparent;
-}
-
-QToolButton:hover {
- border: 2px solid #456789;
-}
-
-QToolButton:pressed {
- border: 2px solid #456789;
- background-color: #89abcd;
-}
-
-
- ...
-
-
- true
-
-
- true
-
-
- Qt::DownArrow
-
-
-
-