Commit 7aaf09da authored by Jan Möbius's avatar Jan Möbius

No ui in nogui mode

parent 597e8d4e
......@@ -52,15 +52,17 @@ void
NoisePlugin::
initializePlugin()
{
tool_ = new noiseToolbarWidget();
QSize size(300, 300);
tool_->resize(size);
if ( OpenFlipper::Options::gui() ) {
tool_ = new noiseToolbarWidget();
QSize size(300, 300);
tool_->resize(size);
connect(tool_->addNoise, SIGNAL(clicked()), this, SLOT(slotAddNoise()));
connect(tool_->addNoise, SIGNAL(clicked()), this, SLOT(slotAddNoise()));
QIcon* toolIcon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"NoiseIcon.png");
QIcon* toolIcon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"NoiseIcon.png");
emit addToolbox( tr("Noise") , tool_, toolIcon );
emit addToolbox( tr("Noise") , tool_, toolIcon );
}
}
......
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