mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 10:45:34 +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 <stdexcept>
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QDebug>
|
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
#include <QMdiArea>
|
#include <QMdiArea>
|
||||||
#include <QDockWidget>
|
#include <QDockWidget>
|
||||||
|
@ -102,11 +101,16 @@ void CSVDoc::View::setupFileMenu()
|
||||||
file->addAction(exit);
|
file->addAction(exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
|
||||||
|
{
|
||||||
QKeySequence seq;
|
QKeySequence seq;
|
||||||
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
|
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
|
||||||
action->setShortcut(seq);
|
action->setShortcut(seq);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::View::undoActionChanged()
|
void CSVDoc::View::undoActionChanged()
|
||||||
|
|
Loading…
Reference in a new issue