graphic fix
This commit is contained in:
@@ -22,7 +22,6 @@ GraphicType::GraphicType(QString name_, QColor color, Qt::PenStyle style, double
|
||||
name = name_;
|
||||
visible = visible_;
|
||||
pointWidth = 2.;
|
||||
pb = new QCheckBox(name);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +33,20 @@ void GraphicType::removeData() {
|
||||
}
|
||||
|
||||
|
||||
bool GraphicType::init() {
|
||||
if (pb) return false;
|
||||
pb = new QCheckBox(name);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void GraphicType::destroy() {
|
||||
if (!pb) return;
|
||||
delete pb;
|
||||
pb = nullptr;
|
||||
}
|
||||
|
||||
|
||||
// GraphicConf
|
||||
|
||||
GraphicConf::GraphicConf(QVector<GraphicType> & graphics_, QWidget * parent): QDialog(parent), graphics(graphics_) {
|
||||
|
||||
Reference in New Issue
Block a user