Commit b9f19711 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

KDevelop::QuickOpenEmbeddedWidgetInterface: use via Q_INTERFACES

parent 1f0bb483
......@@ -40,6 +40,7 @@ class KDEVPLATFORMLANGUAGE_EXPORT AbstractNavigationWidget
, public QuickOpenEmbeddedWidgetInterface
{
Q_OBJECT
Q_INTERFACES(KDevelop::QuickOpenEmbeddedWidgetInterface)
public:
enum DisplayHint {
......
......@@ -27,7 +27,7 @@ using namespace KDevelop;
QuickOpenEmbeddedWidgetInterface* toInterface(QObject *object)
{
return dynamic_cast<QuickOpenEmbeddedWidgetInterface*>(object);
return qobject_cast<QuickOpenEmbeddedWidgetInterface*>(object);
}
class KDevelop::QuickOpenEmbeddedWidgetCombinerPrivate
......
......@@ -37,6 +37,7 @@ class QuickOpenEmbeddedWidgetCombinerPrivate;
class KDEVPLATFORMLANGUAGE_EXPORT QuickOpenEmbeddedWidgetCombiner : public QWidget, public QuickOpenEmbeddedWidgetInterface
{
Q_OBJECT
Q_INTERFACES(KDevelop::QuickOpenEmbeddedWidgetInterface)
public:
explicit QuickOpenEmbeddedWidgetCombiner(QWidget* parent = nullptr);
......
......@@ -212,4 +212,6 @@ public:
bool KDEVPLATFORMLANGUAGE_EXPORT extractLineNumber(const QString& from, QString& path, uint& lineNumber);
}
Q_DECLARE_INTERFACE(KDevelop::QuickOpenEmbeddedWidgetInterface, "org.kdevelop.QuickOpenEmbeddedWidgetInterface")
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment