Thanks, I've forked the surfboard and started to play with the code a
bit.
This is my repo git://
github.com/pawelprazak/surfboard.git
I'm doing kde versions of browsermainwindow and tabwidget. I've
modified all QTabWidget to KTabWidget and QAction to KAction and now
it's broken.
I've have a problem with MOC and I have no idea what is wrong, please
help :)
I keep getting this error:
[ 29%] [ 32%] [ 32%] Building CXX object src/CMakeFiles/surfboard.dir/
surfboard_automoc.o
In file included from /home/kojot/dev/arora-surfboard/src/
surfboard_automoc.cpp:29:
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:121: error:
'KTabWidget' has not been declared
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp: In member
function 'virtual void* TabWidget::qt_metacast(const char*)':
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:135: error:
'KTabWidget' has not been declared
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp: In member
function 'virtual int TabWidget::qt_metacall(QMetaObject::Call, int,
void**)':
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:140: error:
'KTabWidget' has not been declared
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:177: error:
expected type-specifier before 'KAction'
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:177: error:
expected `>' before 'KAction'
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:177: error:
expected `(' before 'KAction'
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:177: error:
'KAction' was not declared in this scope
/home/kojot/dev/arora-surfboard/src/moc_stabwidget.cpp:177: error:
expected primary-expression before ')' token
Here is the header from which moc file is generated:
http://github.com/pawelprazak/surfboard/blob/62e0824a4ac7710e913f6829bcfab5d377bcc438/src/kde/stabwidget.h
and relevant lines look like this:
---
int TabWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = KTabWidget::qt_metacall(_c, _id, _a); // <- line 140
if (_id < 0)
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
/* ... */
case 32: aboutToShowRecentTriggeredAction
((*reinterpret_cast< KAction*(*)>(_a[1]))); break; // <- line 177
---
Any help, sugestions, any feadback would be appreciated.
Regards,
Paweł