Changeset View
Changeset View
Standalone View
Standalone View
mainWindow/kpMainWindow_View.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
60 | 60 | | |||
61 | setupViewMenuZoomActions (); | 61 | setupViewMenuZoomActions (); | ||
62 | 62 | | |||
63 | 63 | | |||
64 | d->actionShowGrid = ac->add <KToggleAction> ("view_show_grid"); | 64 | d->actionShowGrid = ac->add <KToggleAction> ("view_show_grid"); | ||
65 | d->actionShowGrid->setText (i18n ("Show &Grid")); | 65 | d->actionShowGrid->setText (i18n ("Show &Grid")); | ||
66 | ac->setDefaultShortcut (d->actionShowGrid, Qt::CTRL + Qt::Key_G); | 66 | ac->setDefaultShortcut (d->actionShowGrid, Qt::CTRL + Qt::Key_G); | ||
67 | //d->actionShowGrid->setCheckedState (KGuiItem(i18n ("Hide &Grid"))); | 67 | //d->actionShowGrid->setCheckedState (KGuiItem(i18n ("Hide &Grid"))); | ||
68 | connect (d->actionShowGrid, SIGNAL (triggered(bool)), | 68 | connect (d->actionShowGrid, &KToggleAction::triggered, | ||
69 | SLOT (slotShowGridToggled())); | 69 | this, &kpMainWindow::slotShowGridToggled); | ||
70 | 70 | | |||
71 | 71 | | |||
72 | setupViewMenuThumbnailActions (); | 72 | setupViewMenuThumbnailActions (); | ||
73 | 73 | | |||
74 | 74 | | |||
75 | enableViewMenuDocumentActions (false); | 75 | enableViewMenuDocumentActions (false); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |