Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (28 sloc) 0.803 kb
#include "brightnessplugin.h"
#include "brightnesscontroller.h"
Q_EXPORT_PLUGIN2(profile, BrightnessPlugin)
BrightnessPlugin::BrightnessPlugin(QObject *parent) :
statusIndicatorMenu(0),
m_brightnessController(0)
{
Q_UNUSED(parent)
}
void BrightnessPlugin::setStatusIndicatorMenuInterface(MStatusIndicatorMenuInterface &menuInterface)
{
statusIndicatorMenu = &menuInterface;
}
MStatusIndicatorMenuInterface *BrightnessPlugin::statusIndicatorMenuInterface() const
{
return statusIndicatorMenu;
}
// Methods derived from MApplicationExtensionInterface
bool BrightnessPlugin::initialize(const QString &)
{
m_brightnessController = new BrightnessController(this);
return true;
}
QGraphicsWidget *BrightnessPlugin::widget()
{
return m_brightnessController;
}
M_LIBRARY
Jump to Line
Something went wrong with that request. Please try again.