mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kmediaplayer: adjust to KMediaWidget changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bbcb990c65
commit
767c2c5e73
3 changed files with 1 additions and 17 deletions
|
@ -10,10 +10,6 @@
|
|||
<Separator/>
|
||||
<Action name="file_quit"/>
|
||||
</Menu>
|
||||
<Menu name="player"><text>&Player</text>
|
||||
<Action name="player_fullscreen"/>
|
||||
<Separator/>
|
||||
</Menu>
|
||||
<Menu name="settings"><text>&Settings</text>
|
||||
<Action name="settings_player"/>
|
||||
</Menu>
|
||||
|
|
|
@ -74,12 +74,6 @@ KMediaWindow::KMediaWindow(QWidget *parent, Qt::WindowFlags flags)
|
|||
action->setShortcut(KStandardShortcut::quit());
|
||||
action->setWhatsThis(i18n("Close the application."));
|
||||
|
||||
action = actionCollection()->addAction("player_fullscreen", this, SLOT(slotFullscreen()));
|
||||
action->setText(i18n("Fullscreen"));
|
||||
action->setIcon(KIcon("view-fullscreen"));
|
||||
action->setShortcut(KStandardShortcut::fullScreen());
|
||||
action->setWhatsThis(i18n("Set the player view to fullscreen/non-fullscreen"));
|
||||
|
||||
action = actionCollection()->addAction("settings_player", this, SLOT(slotConfigure()));
|
||||
action->setText(i18n("Configure KMediaPlayer"));
|
||||
action->setIcon(KIcon("preferences-desktop-sound"));
|
||||
|
@ -172,11 +166,6 @@ void KMediaWindow::slotClosePath()
|
|||
statusBar()->showMessage("");
|
||||
}
|
||||
|
||||
void KMediaWindow::slotFullscreen()
|
||||
{
|
||||
m_player->setFullscreen();
|
||||
}
|
||||
|
||||
void KMediaWindow::slotConfigure()
|
||||
{
|
||||
KCMultiDialog kcmdialg(this);
|
||||
|
@ -205,8 +194,8 @@ void KMediaWindow::slotQuit()
|
|||
void KMediaWindow::slotDelayedRestore()
|
||||
{
|
||||
disconnect(m_player->player(), SIGNAL(loaded()), this, SLOT(slotDelayedRestore()));
|
||||
m_player->setPlay(int(m_playing));
|
||||
m_player->setPosition(m_currenttime);
|
||||
m_player->setPlay(int(!m_playing));
|
||||
}
|
||||
|
||||
void KMediaWindow::saveProperties(KConfigGroup &configgroup)
|
||||
|
|
|
@ -37,7 +37,6 @@ public slots:
|
|||
void slotOpenURL();
|
||||
void slotOpenURL(KUrl url);
|
||||
void slotClosePath();
|
||||
void slotFullscreen();
|
||||
void slotConfigure();
|
||||
void slotMenubar();
|
||||
void slotMenu(QPoint position);
|
||||
|
|
Loading…
Add table
Reference in a new issue