|
|
|
@ -42,6 +42,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
|
|
foreach (IPlugin *plugin, Context::instance().plugins()) {
|
|
|
|
|
if (plugin->pluginId() != "CORE")
|
|
|
|
|
{
|
|
|
|
|
QToolButton *plugButton = new QToolButton(this);
|
|
|
|
|
plugButton->setText(plugin->pluginName());
|
|
|
|
|
plugButton->setIcon(plugin->pluginIcon());
|
|
|
|
@ -50,9 +52,10 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
plugButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
|
|
|
|
ui->navigation->layout()->addWidget(plugButton);
|
|
|
|
|
plugButton->setProperty(PLUGIN_INDEX, i);
|
|
|
|
|
i++;
|
|
|
|
|
connect(plugButton, SIGNAL(clicked()), this, SLOT(openPlugin()) );
|
|
|
|
|
}
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
((QVBoxLayout*)ui->navigation->layout())->addStretch(1);
|
|
|
|
|
|
|
|
|
|