cd frame/ && make -f Makefile
make[1]: Entering directory '/tmp/deepin-topbar-0.3.5/Build/frame'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../frame -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -I../../interfaces -I../../widgets -I../../dbus -I/usr/include/libdtk-2.0/DCore -I/usr/include/libdtk-2.0/DWidget -I/usr/include/libdframeworkdbus-1.0 -I/usr/include/x86_64-linux-gnu/qt5/QGSettings -I. -I../../frame -I. -o switchitem.o ../../widgets/switchitem.cpp
In file included from ../../widgets/switchitem.h:6:0,
from ../../widgets/switchitem.cpp:1:
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:56:22: error: expected ‘;’ at end of member declaration
QSize sizeHint() const Q_DECL_OVERRIDE;
^~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:56:28: error: ‘Q_DECL_OVERRIDE’ does not name a type
QSize sizeHint() const Q_DECL_OVERRIDE;
^~~~~~~~~~~~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:72:35: error: expected ‘;’ at end of member declaration
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
^
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:72:37: error: ‘Q_DECL_OVERRIDE’ does not name a type
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
^~~~~~~~~~~~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:73:39: error: expected ‘;’ at end of member declaration
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
^
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:73:41: error: ‘Q_DECL_OVERRIDE’ does not name a type
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
^~~~~~~~~~~~~~~
../../widgets/switchitem.cpp: In constructor ‘topbar::widgets::SwitchItem::SwitchItem(QWidget*)’:
../../widgets/switchitem.cpp:23:39: error: ‘void Dtk::Widget::DSwitchButton::checkedChanged(bool)’ is protected within this context
connect(m_switch, &DSwitchButton::checkedChanged, this, &SwitchItem::clicked);
^~~~~~~~~~~~~~
In file included from ../../widgets/switchitem.h:6:0,
from ../../widgets/switchitem.cpp:1:
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:69:10: note: declared protected here
void checkedChanged(bool arg);
^~~~~~~~~~~~~~
../../widgets/switchitem.cpp:23:81: error: no matching function for call to ‘topbar::widgets::SwitchItem::connect(Dtk::Widget::DSwitchButton*&, void (Dtk::Widget::DSwitchButton::*)(bool), topbar::widgets::SwitchItem*, void (topbar::widgets::SwitchItem::*)(bool))’
connect(m_switch, &DSwitchButton::checkedChanged, this, &SwitchItem::clicked);
^
In file included from /usr/include/qt4/QtGui/qwidget.h:47:0,
from /usr/include/qt4/QtGui/QWidget:1,
from ../../widgets/switchitem.h:4,
from ../../widgets/switchitem.cpp:1:
/usr/include/qt4/QtCore/qobject.h:204:17: note: candidate: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
static bool connect(const QObject *sender, const char *signal,
^~~~~~~
/usr/include/qt4/QtCore/qobject.h:204:17: note: no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const char*’
/usr/include/qt4/QtCore/qobject.h:217:17: note: candidate: static bool QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
static bool connect(const QObject *sender, const QMetaMethod &signal,
^~~~~~~
/usr/include/qt4/QtCore/qobject.h:217:17: note: no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const QMetaMethod&’
/usr/include/qt4/QtCore/qobject.h:337:13: note: candidate: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
inline bool QObject::connect(const QObject *asender, const char *asignal,
^~~~~~~
/usr/include/qt4/QtCore/qobject.h:337:13: note: no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const char*’
Makefile:935: recipe for target 'switchitem.o' failed
make[1]: *** [switchitem.o] Error 1
make[1]: Leaving directory '/tmp/deepin-topbar-0.3.5/Build/frame'
Makefile:39: recipe for target 'sub-frame-make_default' failed
make: *** [sub-frame-make_default] Error 2