Make rulergraph a pref as well

I don't see a point in treating it differently from the other graphs.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-05 15:53:46 -07:00
parent 6545855b65
commit 7b0f737f60
2 changed files with 3 additions and 1 deletions

1
pref.h
View file

@ -43,6 +43,7 @@ struct preferences {
short show_average_depth; short show_average_depth;
short zoomed_plot; short zoomed_plot;
short hrgraph; short hrgraph;
short rulergraph;
short save_userid_local; short save_userid_local;
char *userid; char *userid;
}; };

View file

@ -722,7 +722,7 @@ void MainWindow::readSettings()
TOOLBOX_PREF_BUTTON(pp_graphs.pn2, pn2graph, profPn2); TOOLBOX_PREF_BUTTON(pp_graphs.pn2, pn2graph, profPn2);
TOOLBOX_PREF_BUTTON(pp_graphs.po2, po2graph, profPO2); TOOLBOX_PREF_BUTTON(pp_graphs.po2, po2graph, profPO2);
TOOLBOX_PREF_BUTTON(hrgraph, hrgraph, profHR); TOOLBOX_PREF_BUTTON(hrgraph, hrgraph, profHR);
ui.profRuler->setChecked(s.value("rulergraph").toBool()); TOOLBOX_PREF_BUTTON(rulergraph, rulergraph, profRuler);
TOOLBOX_PREF_BUTTON(show_sac, show_sac, profSAC); TOOLBOX_PREF_BUTTON(show_sac, show_sac, profSAC);
} }
@ -1191,6 +1191,7 @@ void MainWindow::on_profHR_clicked(bool triggered)
} }
void MainWindow::on_profRuler_clicked(bool triggered) void MainWindow::on_profRuler_clicked(bool triggered)
{ {
prefs.rulergraph = triggered;
TOOLBOX_PREF_PROFILE(rulergraph); TOOLBOX_PREF_PROFILE(rulergraph);
} }
void MainWindow::on_profSAC_clicked(bool triggered) void MainWindow::on_profSAC_clicked(bool triggered)