mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
@@ -290,7 +290,6 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con
|
||||
// settings
|
||||
QVBoxLayout *clv = new QVBoxLayout(c);
|
||||
web = new QCheckBox(tr("Web charting"), this);
|
||||
web->setChecked(true);
|
||||
clv->addWidget(web);
|
||||
clv->addStretch();
|
||||
|
||||
@@ -411,6 +410,7 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con
|
||||
showCon = NULL;
|
||||
leftsplitter = NULL;
|
||||
}
|
||||
web->setChecked(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -425,6 +425,7 @@ PythonChart::setWeb(bool x)
|
||||
if (plot) {
|
||||
renderlayout->removeWidget(plot);
|
||||
delete plot; // deletes associated chart too
|
||||
plot = NULL;
|
||||
}
|
||||
|
||||
// setup the canvas
|
||||
|
||||
@@ -118,7 +118,7 @@ class PythonChart : public GcChartWindow, public PythonHost {
|
||||
|
||||
void emitUrl(QUrl x) { emit setUrl(x); }
|
||||
|
||||
bool asWeb() const { return (web ? web->isChecked() : true); }
|
||||
bool asWeb() const { return web->isChecked(); }
|
||||
void setWeb(bool);
|
||||
|
||||
bool showConsole() const { return (showCon ? showCon->isChecked() : true); }
|
||||
|
||||
Reference in New Issue
Block a user