Changeset View
Changeset View
Standalone View
Standalone View
src/cantor.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 151 | { | |||
---|---|---|---|---|---|
161 | } | 161 | } | ||
162 | addWorksheet(); | 162 | addWorksheet(); | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | void CantorShell::optionsConfigureKeys() | 165 | void CantorShell::optionsConfigureKeys() | ||
166 | { | 166 | { | ||
167 | KShortcutsDialog dlg( KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsDisallowed, this ); | 167 | KShortcutsDialog dlg( KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsDisallowed, this ); | ||
168 | dlg.addCollection( actionCollection(), i18n("Cantor") ); | 168 | dlg.addCollection( actionCollection(), i18n("Cantor") ); | ||
169 | if (m_part) | ||||
169 | dlg.addCollection( m_part->actionCollection(), i18n("Cantor") ); | 170 | dlg.addCollection( m_part->actionCollection(), i18n("Cantor") ); | ||
170 | dlg.configure( true ); | 171 | dlg.configure( true ); | ||
171 | } | 172 | } | ||
172 | 173 | | |||
173 | void CantorShell::fileOpen() | 174 | void CantorShell::fileOpen() | ||
174 | { | 175 | { | ||
175 | // this slot is called whenever the File->Open menu is selected, | 176 | // this slot is called whenever the File->Open menu is selected, | ||
176 | // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar | 177 | // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar | ||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |