mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
23 lines
449 B
C++
23 lines
449 B
C++
#include "globalbroadcaster.h"
|
|
#include <QGlobalStatic>
|
|
|
|
Q_GLOBAL_STATIC( GlobalBroadcaster, bdcaster )
|
|
GlobalBroadcaster::GlobalBroadcaster( QObject * parent ) : QObject( parent )
|
|
{
|
|
}
|
|
|
|
GlobalBroadcaster * GlobalBroadcaster::instance()
|
|
{
|
|
return bdcaster;
|
|
}
|
|
void GlobalBroadcaster::setPreference( Config::Preferences * p )
|
|
{
|
|
preference = p;
|
|
}
|
|
Config::Preferences * GlobalBroadcaster::getPreference()
|
|
{
|
|
return preference;
|
|
}
|
|
|
|
// namespace global
|