1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Relocated "User Settings" to Edit->Preferences

Removed <QDebug> reference from view.hpp
This commit is contained in:
graffy76 2013-05-11 07:40:10 -05:00
parent a8b45e0a13
commit d0b23a4786
2 changed files with 4 additions and 15 deletions

View File

@ -16,8 +16,6 @@
#include "operations.hpp" #include "operations.hpp"
#include "subview.hpp" #include "subview.hpp"
#include <QDebug>
void CSVDoc::View::closeEvent (QCloseEvent *event) void CSVDoc::View::closeEvent (QCloseEvent *event)
{ {
if (!mViewManager.closeRequest (this)) if (!mViewManager.closeRequest (this))
@ -52,6 +50,10 @@ void CSVDoc::View::setupEditMenu()
mRedo= mDocument->getUndoStack().createRedoAction (this, tr("&Redo")); mRedo= mDocument->getUndoStack().createRedoAction (this, tr("&Redo"));
mRedo->setShortcuts (QKeySequence::Redo); mRedo->setShortcuts (QKeySequence::Redo);
edit->addAction (mRedo); edit->addAction (mRedo);
QAction *userSettings = new QAction (tr ("&Preferences"), this);
connect (userSettings, SIGNAL (triggered()), this, SLOT (showUserSettings()));
edit->addAction (userSettings);
} }
void CSVDoc::View::setupViewMenu() void CSVDoc::View::setupViewMenu()
@ -80,23 +82,12 @@ void CSVDoc::View::setupWorldMenu()
world->addAction (mVerify); world->addAction (mVerify);
} }
void CSVDoc::View::setupSettingsMenu()
{
QMenu *settings = menuBar()->addMenu( (tr ("&Settings")));
QAction *userSettings = new QAction (tr ("User Settings"), this);
connect (userSettings, SIGNAL (triggered()), this, SLOT (showUserSettings()));
settings->addAction (userSettings);
}
void CSVDoc::View::setupUi() void CSVDoc::View::setupUi()
{ {
setupFileMenu(); setupFileMenu();
setupEditMenu(); setupEditMenu();
setupViewMenu(); setupViewMenu();
setupWorldMenu(); setupWorldMenu();
setupSettingsMenu();
} }
void CSVDoc::View::updateTitle() void CSVDoc::View::updateTitle()

View File

@ -59,8 +59,6 @@ namespace CSVDoc
void setupWorldMenu(); void setupWorldMenu();
void setupSettingsMenu();
void setupUi(); void setupUi();
void updateTitle(); void updateTitle();