m_preview->hide();
m_playerWidget->show();
m_playerWidget->open(item.targetUrl().url());
+ m_playerWidget->setPlay(int(1));
} else {
- m_playerWidget->player()->stop();
+ m_playerWidget->setPlay(int(0));
m_playerWidget->hide();
m_preview->show();
}
} else {
- m_playerWidget->player()->stop();
+ m_playerWidget->setPlay(int(0));
m_playerWidget->hide();
}
m_metaDataWidget->setItems(items);
}
- m_playerWidget->player()->stop();
+ m_playerWidget->setPlay(int(0));
m_playerWidget->hide();
m_item = KFileItem();
case QEvent::Hide:
if (m_playerWidget)
- m_playerWidget->player()->stop();
+ m_playerWidget->setPlay(int(0));
break;
default:
const bool isChecked = action->isChecked();
if (action == previewAction) {
if (!isChecked) {
- m_playerWidget->player()->stop();
+ m_playerWidget->setPlay(int(0));
m_playerWidget->hide();
}
m_preview->setVisible(isChecked);