本文整理汇总了C++中Extensions::playlist方法的典型用法代码示例。如果您正苦于以下问题:C++ Extensions::playlist方法的具体用法?C++ Extensions::playlist怎么用?C++ Extensions::playlist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Extensions
的用法示例。
在下文中一共展示了Extensions::playlist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrefWidget
PrefAssociations::PrefAssociations(QWidget * parent, Qt::WindowFlags f)
: PrefWidget(parent, f )
{
setupUi(this);
connect(selectAll, SIGNAL(clicked(bool)), this, SLOT(selectAllClicked(bool)));
connect(selectNone, SIGNAL(clicked(bool)), this, SLOT(selectNoneClicked(bool)));
connect(listWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(listItemClicked(QListWidgetItem*)));
connect(listWidget, SIGNAL(itemPressed(QListWidgetItem*)), this, SLOT(listItemPressed(QListWidgetItem*)));
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
{
//Hide Select None - One cannot restore an association in Vista. Go figure.
selectNone->hide();
//QPushButton* lpbButton = new QPushButton("Launch Program Defaults", this);
//hboxLayout->addWidget(lpbButton);
//connect(lpbButton, SIGNAL(clicked(bool)), this, SLOT(launchAppDefaults()));
}
Extensions e;
for (int n=0; n < e.multimedia().count(); n++) {
addItem( e.multimedia()[n] );
}
// Add the playlist extensions
for (int n=0; n < e.playlist().count(); n++) {
addItem( e.playlist()[n] );
}
retranslateStrings();
something_changed = false;
}