Removed QDebug include, moved updateUndoRedoAction to an anonymous namespace

remotes/1728160796594174844/tmp_0.7.0-alpha
Doc West 7 years ago
parent 5d38160239
commit f9b565a46e

@ -4,7 +4,6 @@
#include <stdexcept>
#include <QCloseEvent>
#include <QDebug>
#include <QMenuBar>
#include <QMdiArea>
#include <QDockWidget>
@ -102,11 +101,16 @@ void CSVDoc::View::setupFileMenu()
file->addAction(exit);
}
static void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
namespace
{
QKeySequence seq;
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
action->setShortcut(seq);
void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
{
QKeySequence seq;
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
action->setShortcut(seq);
}
}
void CSVDoc::View::undoActionChanged()

Loading…
Cancel
Save