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:
+2
-1
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user