quickNitin
20th June 2006, 04:51
bqgis_plugin_tcpcock_la-tcpcock.Tpo -c tcpcock.cpp -fPIC -DPIC -o .libs/libqgis_plugin_tcpcock_la-tcpcock.o
tcpcock.cpp: In member function 'virtual void tcpCock::initGui()':
tcpcock.cpp:105: error: no matching function for call to 'tcpCock::connect(QgsMapCanvas*, const char [28], tcpCock* const, const char [25])'
/usr/local/Trolltech/Qt-4.1.2//include/QtCore/qobject.h:174: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/local/Trolltech/Qt-4.1.2//include/QtCore/qobject.h:274: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
make[5]: *** [libqgis_plugin_tcpcock_la-tcpcock.lo] Error 1
make[5]: Leaving directory `/home1/qgis/src/plugins/tcpCock'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home1/qgis/src/plugins/tcpCock'
code of initGui():
void tcpCock::initGui()
{
// Create the action for tool
mQActionPointer = new QAction(QIcon(":/tcpcock/tcpcock.png"),"track", this);
// Set the what's this text
mQActionPointer->setWhatsThis(tr("Replace this with a short description of the what the plugin does"));
// Connect the action to the run
connect(mQActionPointer, SIGNAL(activated()), this, SLOT(run()));
// Add the toolbar
mToolBarPointer = new QToolBar((QMainWindow *) mQGisApp, "tcpCock");
mToolBarPointer->setLabel("track");
// Add the to the toolbar
mQGisIface->addToolBarIcon(mQActionPointer);
mQGisIface->addPluginMenu("&tcpCock", mQActionPointer);
connect(mQGisIface->getMapCanvas(),SIGNAL(renderComplete(QPainter *)),this, SLOT(savePainter(QPainter *)));//line no 105
}
both QgsMapCanvas and tcpCock inherits QObject. * mQGisIface is a private member of tcpCock and
tcpcock.cpp: In member function 'virtual void tcpCock::initGui()':
tcpcock.cpp:105: error: no matching function for call to 'tcpCock::connect(QgsMapCanvas*, const char [28], tcpCock* const, const char [25])'
/usr/local/Trolltech/Qt-4.1.2//include/QtCore/qobject.h:174: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/local/Trolltech/Qt-4.1.2//include/QtCore/qobject.h:274: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
make[5]: *** [libqgis_plugin_tcpcock_la-tcpcock.lo] Error 1
make[5]: Leaving directory `/home1/qgis/src/plugins/tcpCock'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home1/qgis/src/plugins/tcpCock'
code of initGui():
void tcpCock::initGui()
{
// Create the action for tool
mQActionPointer = new QAction(QIcon(":/tcpcock/tcpcock.png"),"track", this);
// Set the what's this text
mQActionPointer->setWhatsThis(tr("Replace this with a short description of the what the plugin does"));
// Connect the action to the run
connect(mQActionPointer, SIGNAL(activated()), this, SLOT(run()));
// Add the toolbar
mToolBarPointer = new QToolBar((QMainWindow *) mQGisApp, "tcpCock");
mToolBarPointer->setLabel("track");
// Add the to the toolbar
mQGisIface->addToolBarIcon(mQActionPointer);
mQGisIface->addPluginMenu("&tcpCock", mQActionPointer);
connect(mQGisIface->getMapCanvas(),SIGNAL(renderComplete(QPainter *)),this, SLOT(savePainter(QPainter *)));//line no 105
}
both QgsMapCanvas and tcpCock inherits QObject. * mQGisIface is a private member of tcpCock and