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

Use Q_OBJECT macro with more QObject subclasses

parent e2814a3c
......@@ -36,6 +36,8 @@ class QuickOpenEmbeddedWidgetCombinerPrivate;
*/
class KDEVPLATFORMLANGUAGE_EXPORT QuickOpenEmbeddedWidgetCombiner : public QWidget, public QuickOpenEmbeddedWidgetInterface
{
Q_OBJECT
public:
explicit QuickOpenEmbeddedWidgetCombiner(QWidget* parent = nullptr);
~QuickOpenEmbeddedWidgetCombiner() override;
......
......@@ -41,6 +41,8 @@ enum class GuardType
class AddHeaderGuardAction
: public KDevelop::IAssistantAction
{
Q_OBJECT
public:
AddHeaderGuardAction(const GuardType type, const int startLine, const KDevelop::IndexedString& path)
: m_type(type)
......@@ -126,3 +128,5 @@ void HeaderGuardAssistant::createActions()
addAction(KDevelop::IAssistantAction::Ptr{new AddHeaderGuardAction(GuardType::Pragma, m_line, m_path)});
addAction(KDevelop::IAssistantAction::Ptr{new AddHeaderGuardAction(GuardType::Macro, m_line, m_path)});
}
#include "headerguardassistant.moc"
......@@ -29,6 +29,8 @@
class HeaderGuardAssistant
: public KDevelop::IAssistant
{
Q_OBJECT
public:
HeaderGuardAssistant(const CXTranslationUnit unit, const CXFile file);
virtual ~HeaderGuardAssistant() override = default;
......
......@@ -37,6 +37,8 @@ using namespace ClangTidy;
class JobTester : public Job
{
Q_OBJECT
public:
JobTester(Job::Parameters params)
: Job(params)
......@@ -101,3 +103,5 @@ void TestClangTidyJob::testJob()
}
QTEST_GUILESS_MAIN(TestClangTidyJob)
#include "test_clangtidyjob.moc"
......@@ -26,6 +26,8 @@ class CMakeDocumentation;
class CMakeDoc : public KDevelop::IDocumentation
{
Q_OBJECT
public:
CMakeDoc(const QString& name, const QString& desc) : mName(name), mDesc(desc) {}
......
......@@ -145,3 +145,4 @@ QWidget* CMakeDoc::documentationWidget(KDevelop::DocumentationFindWidget* findWi
}
#include "cmakedocumentation.moc"
#include "moc_cmakedoc.cpp"
......@@ -30,6 +30,8 @@ using namespace cppcheck;
class JobTester : public Job
{
Q_OBJECT
public:
explicit JobTester(const Parameters& params) : Job(params) {}
......@@ -89,3 +91,5 @@ void TestCppcheckJob::testJob()
}
QTEST_GUILESS_MAIN(TestCppcheckJob)
#include "test_cppcheckjob.moc"
......@@ -23,6 +23,8 @@
class TestThread : public QThread
{
Q_OBJECT
public:
void run() override {
sleep(1);
......@@ -42,3 +44,5 @@ int main(int /*argc*/, char** /*argv*/) {
QThread::usleep(600000);
return 0;
}
#include "debugeethreads.moc"
......@@ -136,6 +136,8 @@ private:
class TestFrameStackModel : public GdbFrameStackModel
{
Q_OBJECT
public:
explicit TestFrameStackModel(DebugSession* session)
......
......@@ -30,6 +30,8 @@ const QString BINARY_PATH(DEBUGGEE_BIN_DIR);
class GdbProcess : private QProcess
{
Q_OBJECT
public:
explicit GdbProcess(const QString &program) : QProcess()
{
......@@ -470,3 +472,5 @@ void QtPrintersTest::testKDevelopTypes()
}
QTEST_MAIN(QtPrintersTest)
#include "test_gdbprinters.moc"
......@@ -120,6 +120,8 @@ private:
class TestFrameStackModel : public LldbFrameStackModel
{
Q_OBJECT
public:
explicit TestFrameStackModel(DebugSession* session)
......
......@@ -26,6 +26,8 @@
class EmptyMessageListView
: public QListView
{
Q_OBJECT
public:
EmptyMessageListView(QWidget* parent);
void setEmptyMessage(const QString& message);
......
......@@ -44,6 +44,8 @@
class FileRenameDelegate
: public QStyledItemDelegate
{
Q_OBJECT
public:
FileRenameDelegate(QObject* parent, Scratchpad* scratchpad)
: QStyledItemDelegate(parent)
......@@ -228,3 +230,6 @@ QModelIndex ScratchpadView::currentIndex() const
{
return scratchView->currentIndex();
}
#include "scratchpadview.moc"
#include "moc_emptymessagelistview.cpp"
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