Changeset View
Changeset View
Standalone View
Standalone View
mainWindow/kpMainWindow_Settings.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
60 | 60 | | |||
61 | 61 | | |||
62 | d->actionFullScreen = KStandardAction::fullScreen (this, SLOT (slotFullScreen()), | 62 | d->actionFullScreen = KStandardAction::fullScreen (this, SLOT (slotFullScreen()), | ||
63 | this/*window*/, ac); | 63 | this/*window*/, ac); | ||
64 | 64 | | |||
65 | 65 | | |||
66 | d->actionShowPath = ac->add<KToggleAction> ("settings_show_path"); | 66 | d->actionShowPath = ac->add<KToggleAction> ("settings_show_path"); | ||
67 | d->actionShowPath->setText (i18n ("Show &Path")); | 67 | d->actionShowPath->setText (i18n ("Show &Path")); | ||
68 | connect(d->actionShowPath, SIGNAL(triggered(bool)), SLOT (slotShowPathToggled())); | 68 | connect (d->actionShowPath, &QAction::triggered, this, &kpMainWindow::slotShowPathToggled); | ||
69 | slotEnableSettingsShowPath (); | 69 | slotEnableSettingsShowPath (); | ||
70 | 70 | | |||
71 | KToggleAction *action = ac->add<KToggleAction>("settings_draw_antialiased"); | 71 | KToggleAction *action = ac->add<KToggleAction>("settings_draw_antialiased"); | ||
72 | action->setText(i18n("Draw Anti-Aliased")); | 72 | action->setText(i18n("Draw Anti-Aliased")); | ||
73 | action->setChecked(kpToolEnvironment::drawAntiAliased); | 73 | action->setChecked(kpToolEnvironment::drawAntiAliased); | ||
74 | connect(action, SIGNAL(triggered(bool)), SLOT(slotDrawAntiAliasedToggled(bool))); | 74 | connect (action, &KToggleAction::triggered, this, &kpMainWindow::slotDrawAntiAliasedToggled); | ||
75 | 75 | | |||
76 | d->actionKeyBindings = KStandardAction::keyBindings (this, SLOT (slotKeyBindings()), ac); | 76 | d->actionKeyBindings = KStandardAction::keyBindings (this, SLOT (slotKeyBindings()), ac); | ||
77 | 77 | | |||
78 | KStandardAction::configureToolbars(this, SLOT(configureToolbars()), actionCollection()); | 78 | KStandardAction::configureToolbars(this, SLOT(configureToolbars()), actionCollection()); | ||
79 | 79 | | |||
80 | enableSettingsMenuDocumentActions (false); | 80 | enableSettingsMenuDocumentActions (false); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |