summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-09-15 17:18:16 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-09-24 12:35:59 +0000
commite5033a5c9b769815112e922d0b224af860afd219 (patch)
treea5fae9fa60641df334be83d3fcf990e3c17f88c3
parent971adcaea144ec388324ec8520c1a1a20065136d (diff)
QThread::create: make qdoc generate its documentation
Change-Id: I6eaaa0f9cbda6ef985cda63f2bf36d3102f34f32 Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r--src/corelib/thread/qthread.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.h b/src/corelib/thread/qthread.h
index 5e6f216219..8f87888162 100644
--- a/src/corelib/thread/qthread.h
+++ b/src/corelib/thread/qthread.h
@@ -119,6 +119,12 @@ public:
bool event(QEvent *event) Q_DECL_OVERRIDE;
int loopLevel() const;
+#ifdef Q_QDOC
+ template <typename Function, typename... Args>
+ static QThread *create(Function &&f, Args &&... args);
+ template <typename Function>
+ static QThread *create(Function &&f);
+#else
#ifdef QTHREAD_HAS_CREATE
#ifdef QTHREAD_HAS_VARIADIC_CREATE
template <typename Function, typename... Args>
@@ -128,6 +134,7 @@ public:
static QThread *create(Function &&f);
#endif
#endif
+#endif
public Q_SLOTS:
void start(Priority = InheritPriority);