~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/ui/input/kis_zoom_action.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    shortcuts.insert(i18n("Zoom Out"), ZoomOutShortcut);
48
48
    shortcuts.insert(i18n("Reset Zoom to 100%"), ZoomResetShortcut);
49
49
    shortcuts.insert(i18n("Fit to Page"), ZoomToPageShortcut);
 
50
    shortcuts.insert(i18n("Fit to Width"), ZoomToWidthShortcut);
50
51
    setShortcutIndexes(shortcuts);
51
52
}
52
53
 
98
99
        case ZoomToPageShortcut:
99
100
            inputManager()->canvas()->view()->zoomController()->setZoom(KoZoomMode::ZOOM_PAGE, 1.0);
100
101
            break;
 
102
        case ZoomToWidthShortcut:
 
103
            inputManager()->canvas()->view()->zoomController()->setZoom(KoZoomMode::ZOOM_WIDTH, 1.0);
 
104
            break;
101
105
    }
102
106
}
103
107