24 : QWidget(parent)
26{
27 setupUi(this);
33
34 zoomModeButtonStripAction->
button(0)->setChecked(
true);
35
36
37 zoomModeButtonStripAction->
button(0)->setToolTip(
38 i18n("Zoom in"));
39 zoomModeButtonStripAction->
button(1)->setToolTip(
40 i18n("Zoom out"));
41
44 i18n("Mode"));
45
47 qobject_cast<QVBoxLayout*>(
layout())->insertWidget(0,zoomMode);
48
49
50 connect(zoomModeButtonStripAction,
53 [this](int index, int checked) {
54 if (checked) {
56 }
57 });
58
60
61 QAction *action = actionCollection->
action(
"zoom_to_fit");
62 btnZoomToFit->setDefaultAction(action);
63
64 action = actionCollection->action("zoom_to_fit_width");
65 btnZoomToFitH->setDefaultAction(action);
66
67 action = actionCollection->action("zoom_to_fit_height");
68 btnZoomToFitV->setDefaultAction(action);
69}
A container for a set of QAction objects.
QAction * action(int index) const
KoCanvasController * canvasController() const
KisKActionCollection * actionCollection
QIcon loadIcon(const QString &name)