diff options
author | Slávek Banko <[email protected]> | 2012-08-12 02:52:29 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-08-12 02:56:41 +0200 |
commit | ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f (patch) | |
tree | c81fe26511d674954ea8d5baa3dc3b67555cf836 /src/kmplayer_part.cpp | |
parent | 4a70f9ee1c6339957664811c67a9232a908138fb (diff) | |
download | kmplayer-ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f.tar.gz kmplayer-ab7a4fc222b18eadf1eeeef8d870ac3f2b33276f.zip |
Added next preset scales and shortcuts for zoom
This partially resolves Bug 1032
(cherry picked from commit b929f2e6f6210eccc0ccd35f66104e16578159ff)
Diffstat (limited to 'src/kmplayer_part.cpp')
-rw-r--r-- | src/kmplayer_part.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/kmplayer_part.cpp b/src/kmplayer_part.cpp index 4fb7800..fbdc632 100644 --- a/src/kmplayer_part.cpp +++ b/src/kmplayer_part.cpp @@ -316,6 +316,10 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char * this, TQT_SLOT (setMenuZoom (int))); panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150, this, TQT_SLOT (setMenuZoom (int))); + panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200, + this, TQT_SLOT (setMenuZoom (int))); + panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300, + this, TQT_SLOT (setMenuZoom (int))); m_view->setNoInfoMessages (m_features != Feat_InfoPanel); if (m_features == Feat_InfoPanel) @@ -619,7 +623,13 @@ KDE_NO_EXPORT void KMPlayerPart::setMenuZoom (int id) { m_liveconnectextension->setSize (w, h); return; } - float scale = 1.5; + float scale = 1; + if (id == KMPlayer::ControlPanel::menu_zoom300) + scale = 3.0; + if (id == KMPlayer::ControlPanel::menu_zoom200) + scale = 2.0; + if (id == KMPlayer::ControlPanel::menu_zoom150) + scale = 1.5; if (id == KMPlayer::ControlPanel::menu_zoom50) scale = 0.5; if (m_view->viewer ()) |