Added ability to save the custom graph names you give to things. Also fixed up an issue with the signed value support in the graphs. Lastly, a small change to the random colors to ensure they ever get too bright.

This commit is contained in:
Collin Kidder
2015-08-02 20:23:16 -04:00
parent 41ee0a8646
commit 793820d6f8
4 changed files with 36 additions and 9 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ NewGraphDialog::NewGraphDialog(QWidget *parent) :
qsrand((uint)time.msec());
QPalette p = ui->colorSwatch->palette();
p.setColor(QPalette::Button, QColor(qrand() % 255,qrand() % 255,qrand() % 255));
//using 160 instead of 255 so that colors are always at least a little dark
p.setColor(QPalette::Button, QColor(qrand() % 160,qrand() % 160,qrand() % 160));
ui->colorSwatch->setPalette(p);
}