KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
Functions | Variables
KDDockWidgets::Tests Namespace Reference

Functions

static void fatalWarningsMessageHandler (QtMsgType t, const QMessageLogContext &context, const QString &msg)
 
static bool shouldBlacklistWarning (const QString &msg, const QString &category)
 
static void sleepWithEventLoop (int ms)
 
template<typename Func >
static bool waitFor (Func func, int timeout)
 

Variables

static QtMessageHandler s_original = nullptr
 

Function Documentation

◆ fatalWarningsMessageHandler()

static void KDDockWidgets::Tests::fatalWarningsMessageHandler ( QtMsgType  t,
const QMessageLogContext context,
const QString msg 
)
static

◆ shouldBlacklistWarning()

static bool KDDockWidgets::Tests::shouldBlacklistWarning ( const QString msg,
const QString category 
)
static

Definition at line 33 of file TestHelpers_qt.cpp.

References QString::contains().

Referenced by fatalWarningsMessageHandler().

◆ sleepWithEventLoop()

static void KDDockWidgets::Tests::sleepWithEventLoop ( int  ms)
static

Definition at line 82 of file TestHelpers_qt.cpp.

References QEventLoop::exec(), QEventLoop::exit(), and QTimer::singleShot.

Referenced by waitFor().

◆ waitFor()

template<typename Func >
static bool KDDockWidgets::Tests::waitFor ( Func  func,
int  timeout 
)
static

Variable Documentation

◆ s_original

QtMessageHandler KDDockWidgets::Tests::s_original = nullptr
static

Definition at line 31 of file TestHelpers_qt.cpp.

Referenced by fatalWarningsMessageHandler().


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8