Commit 11f1e7c8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Delete Icons

parent 6bacf10c
......@@ -51,11 +51,18 @@
/// Constructor
HoleFillerPlugin::HoleFillerPlugin() :
tool_(0)
tool_(nullptr),
toolIcon_(nullptr)
{
}
HoleFillerPlugin::~HoleFillerPlugin()
{
delete toolIcon_;
}
/// Initialize the toolbox widget
void HoleFillerPlugin::initializePlugin()
{
......@@ -71,9 +78,9 @@ void HoleFillerPlugin::initializePlugin()
connect(tool_->detect,SIGNAL(clicked()),this,SLOT(detectButton()));
connect(tool_->fillButton, SIGNAL(clicked()), this, SLOT(slotFillSelection()) );
QIcon* toolIcon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"holefilling.png");
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"holefilling.png");
emit addToolbox( tr("Hole Filler") , tool_ , toolIcon);
emit addToolbox( tr("Hole Filler") , tool_ , toolIcon_);
}
}
......
......@@ -110,9 +110,8 @@ class HoleFillerPlugin : public QObject, BaseInterface, MouseInterface, PickingI
public :
~HoleFillerPlugin() {};
HoleFillerPlugin();
~HoleFillerPlugin();
QString name() { return (QString("HoleFiller")); };
QString description( ) { return (QString("Fill Holes or connect meshes")); };
......@@ -135,6 +134,8 @@ class HoleFillerPlugin : public QObject, BaseInterface, MouseInterface, PickingI
/// Widget for Toolbox
HoleFillerToolbarWidget* tool_;
QIcon* toolIcon_;
/// map from the index in the table to (object-id, hole-id)
std::vector< std::pair< int , int> > holeMapping_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment