mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +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
|