本文整理汇总了C++中HostComboBox::fillSelectionsFromDir方法的典型用法代码示例。如果您正苦于以下问题:C++ HostComboBox::fillSelectionsFromDir方法的具体用法?C++ HostComboBox::fillSelectionsFromDir怎么用?C++ HostComboBox::fillSelectionsFromDir使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HostComboBox
的用法示例。
在下文中一共展示了HostComboBox::fillSelectionsFromDir方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dev
HostComboBox *AudioMixerSettings::MixerDevice()
{
HostComboBox *gc = new HostComboBox("MixerDevice", true);
gc->setLabel(QObject::tr("Mixer device"));
#ifdef USING_OSS
QDir dev("/dev", "mixer*", QDir::Name, QDir::System);
gc->fillSelectionsFromDir(dev);
dev.setPath("/dev/sound");
if (dev.exists())
{
gc->fillSelectionsFromDir(dev);
}
#endif
#ifdef USING_ALSA
gc->addSelection("ALSA:default", "ALSA:default");
#endif
#ifdef USING_MINGW
gc->addSelection("DirectX:", "DirectX:");
gc->addSelection("Windows:", "Windows:");
#endif
#if !defined(USING_MINGW)
gc->addSelection("software", "software");
gc->setHelpText(QObject::tr("Setting the mixer device to \"software\" "
"lets MythTV control the volume of all audio at the "
"expense of a slight quality loss."));
#endif
return gc;
}
示例2: dev
static HostComboBox *MusicAudioDevice()
{
HostComboBox *gc = new HostComboBox("MusicAudioDevice", true);
gc->setLabel(QObject::tr("Audio device"));
gc->addSelection(QObject::tr("default"), "default");
QDir dev("/dev", "dsp*", QDir::Name, QDir::System);
gc->fillSelectionsFromDir(dev);
dev.setNameFilter("adsp*");
gc->fillSelectionsFromDir(dev);
dev.setNameFilter("dsp*");
dev.setPath("/dev/sound");
gc->fillSelectionsFromDir(dev);
dev.setNameFilter("adsp*");
gc->fillSelectionsFromDir(dev);
gc->setHelpText(QObject::tr("Audio Device used for playback. 'default' will use the device specified in MythTV"));
return gc;
};