Re: LIBRECAD ISSUE WITH QT
Posted by IRD on Nov 29, 2013; 9:42pm
URL: https://forum.librecad.org/LIBRECAD-ISSUE-WITH-QT-tp5709218p5709227.html
I have applied your line of command.
However, even if I have not modified the qc_applicationwindow.cpp I have now the following bug :
librecad/src/main/qc_applicationwindow.cpp:314: error: cannot declare variable 'pligundoc' to be of abstract type 'Doc_plugin_interface'
Doc_plugin_interface pligundoc(currdoc, w->getGraphicView(), this);
What's wrong?
NB: Extract from the qc_applicationwindow.cpp
/**
* Execute the plugin.
*/
void QC_ApplicationWindow::execPlug() {
QAction *action = qobject_cast<QAction *>(sender());
QC_PluginInterface *plugin = qobject_cast<QC_PluginInterface *>(action->parent());
//get actual drawing
QC_MDIWindow* w = getMDIWindow();
RS_Document* currdoc = w->getDocument();
//create document interface instance
Doc_plugin_interface pligundoc(currdoc, w->getGraphicView(), this);
//execute plugin
plugin->execComm(&pligundoc, this, action->data().toString());
//TODO call update view
w->getGraphicView()->redraw();
}