Commit 5dd5afd3 authored by Dirk Wilden's avatar Dirk Wilden

toolbox icon added

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10538 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 053da355
......@@ -85,7 +85,8 @@ void DecimaterPlugin::initializePlugin()
// Force update if the Toolbox gets visible
connect(tool_, SIGNAL(showing()), this, SLOT( slotUpdateNumVertices() ) );
emit addToolbox( tr("Decimater") , tool_ );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"decimater.png");
emit addToolbox( tr("Decimater") , tool_, toolIcon_ );
}
/** \brief Initialization of the plugin when it is loaded by the core
......
......@@ -96,7 +96,7 @@ signals:
void functionExists( QString _pluginName , QString _functionName , bool& _exists );
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget );
void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
// ScriptInterface
void scriptInfo( QString _functionName );
......@@ -130,6 +130,7 @@ private :
/// Widget for Toolbox
DecimaterToolbarWidget* tool_;
QIcon* toolIcon_;
typedef OpenMesh::Decimater::DecimaterT< TriMesh > DecimaterType;
......
Markdown is supported
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