dde-dock/plugins/sound/soundaccessible.h
donghualin 5c7e5ffefc chore: 修复任务栏内存泄露
修复任务栏内存泄露,不影响功能

Log: 修复任务栏内存泄露
Influence: 任务栏
Task: https://pms.uniontech.com/zentao/task-view-88885.html
Change-Id: Id0e1ecd672c91dce79d66c2d45115279657948a1
2021-10-25 14:17:17 +08:00

25 lines
657 B
C

#ifndef SOUNDACCESSIBLE_H
#define SOUNDACCESSIBLE_H
#include "accessibledefine.h"
#include "sounditem.h"
#include "soundapplet.h"
#include "./componments/volumeslider.h"
SET_BUTTON_ACCESSIBLE(SoundItem, "plugin-sounditem")
SET_FORM_ACCESSIBLE(SoundApplet, "soundapplet")
SET_SLIDER_ACCESSIBLE(VolumeSlider, "volumeslider")
QAccessibleInterface *soundAccessibleFactory(const QString &classname, QObject *object)
{
QAccessibleInterface *interface = nullptr;
USE_ACCESSIBLE(classname, SoundItem)
ELSE_USE_ACCESSIBLE(classname, SoundApplet)
ELSE_USE_ACCESSIBLE(classname, VolumeSlider);
return interface;
}
#endif // SOUNDACCESSIBLE_H