Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
f16ba683
Commit
f16ba683
authored
Oct 12, 2021
by
Laurent Montel
😁
Browse files
Continue to implement historyswitchfolder
parent
28280c32
Pipeline
#88191
passed with stage
in 24 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/historyswitchfoldermanager.cpp
View file @
f16ba683
...
...
@@ -37,11 +37,13 @@ void HistorySwitchFolderManager::changeCollection(const Akonadi::Collection &cur
void
HistorySwitchFolderManager
::
undo
()
{
qDebug
()
<<
" void HistorySwitchFolderManager::undo()"
;
mUndoStack
->
undo
();
}
void
HistorySwitchFolderManager
::
redo
()
{
qDebug
()
<<
" void HistorySwitchFolderManager::redo()"
;
mUndoStack
->
redo
();
}
...
...
src/kmmainwidget.cpp
View file @
f16ba683
...
...
@@ -3513,6 +3513,18 @@ void KMMainWidget::setupActions()
mRestartAccountSettings
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-refresh"
)),
i18n
(
"Restart Account"
),
this
);
actionCollection
()
->
addAction
(
QStringLiteral
(
"resource_restart"
),
mRestartAccountSettings
);
connect
(
mRestartAccountSettings
,
&
QAction
::
triggered
,
this
,
&
KMMainWidget
::
slotRestartAccount
);
{
auto
act
=
new
QAction
(
i18n
(
"Previous Selected Folder"
),
this
);
// TODO fix me i18n
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
ALT
|
Qt
::
Key_Tab
));
actionCollection
()
->
addAction
(
QStringLiteral
(
"previous_folder"
),
act
);
connect
(
act
,
&
QAction
::
triggered
,
mHistorySwitchFolderManager
,
&
HistorySwitchFolderManager
::
undo
);
act
=
new
QAction
(
i18n
(
"Next Selected Folder"
),
this
);
// TODO fix me i18n
actionCollection
()
->
addAction
(
QStringLiteral
(
"next_folder"
),
act
);
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
ALT
|
Qt
::
Key_Tab
|
Qt
::
CTRL
));
connect
(
act
,
&
QAction
::
triggered
,
mHistorySwitchFolderManager
,
&
HistorySwitchFolderManager
::
redo
);
}
}
void
KMMainWidget
::
slotAddFavoriteFolder
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment