20 lines
446 B
C++
Executable File
20 lines
446 B
C++
Executable File
|
|
|
|
#include "ngltools_helpevent.h"
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
QEvent::Type NGLHelpEvent::sHelpEventId = (QEvent::Type)(-1);
|
|
|
|
void NGLHelpEvent::sendHelpEvent(const QString &helpContext)
|
|
{
|
|
NGLHelpEvent he(helpContext);
|
|
QCoreApplication::sendEvent(qApp, &he);
|
|
}
|
|
|
|
QEvent::Type NGLHelpEvent::helpEventId()
|
|
{
|
|
if(sHelpEventId < 0)
|
|
sHelpEventId = (QEvent::Type)(QEvent::registerEventType());
|
|
return sHelpEventId;
|
|
}
|