mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Removed QDebug include, moved updateUndoRedoAction to an anonymous namespace
This commit is contained in:
parent
5d38160239
commit
f9b565a46e
1 changed files with 9 additions and 5 deletions
|
@ -4,7 +4,6 @@
|
|||
#include <stdexcept>
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QDebug>
|
||||
#include <QMenuBar>
|
||||
#include <QMdiArea>
|
||||
#include <QDockWidget>
|
||||
|
@ -102,13 +101,18 @@ void CSVDoc::View::setupFileMenu()
|
|||
file->addAction(exit);
|
||||
}
|
||||
|
||||
static void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
|
||||
namespace
|
||||
{
|
||||
|
||||
void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
|
||||
{
|
||||
QKeySequence seq;
|
||||
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
|
||||
action->setShortcut(seq);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CSVDoc::View::undoActionChanged()
|
||||
{
|
||||
updateUndoRedoAction(mUndo, "document-edit-undo");
|
||||
|
|
Loading…
Reference in a new issue