mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Relocated "User Settings" to Edit->Preferences
Removed <QDebug> reference from view.hpp
This commit is contained in:
parent
a8b45e0a13
commit
d0b23a4786
@ -16,8 +16,6 @@
|
||||
#include "operations.hpp"
|
||||
#include "subview.hpp"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
void CSVDoc::View::closeEvent (QCloseEvent *event)
|
||||
{
|
||||
if (!mViewManager.closeRequest (this))
|
||||
@ -52,6 +50,10 @@ void CSVDoc::View::setupEditMenu()
|
||||
mRedo= mDocument->getUndoStack().createRedoAction (this, tr("&Redo"));
|
||||
mRedo->setShortcuts (QKeySequence::Redo);
|
||||
edit->addAction (mRedo);
|
||||
|
||||
QAction *userSettings = new QAction (tr ("&Preferences"), this);
|
||||
connect (userSettings, SIGNAL (triggered()), this, SLOT (showUserSettings()));
|
||||
edit->addAction (userSettings);
|
||||
}
|
||||
|
||||
void CSVDoc::View::setupViewMenu()
|
||||
@ -80,23 +82,12 @@ void CSVDoc::View::setupWorldMenu()
|
||||
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()
|
||||
{
|
||||
setupFileMenu();
|
||||
setupEditMenu();
|
||||
setupViewMenu();
|
||||
setupWorldMenu();
|
||||
setupSettingsMenu();
|
||||
}
|
||||
|
||||
void CSVDoc::View::updateTitle()
|
||||
|
@ -59,8 +59,6 @@ namespace CSVDoc
|
||||
|
||||
void setupWorldMenu();
|
||||
|
||||
void setupSettingsMenu();
|
||||
|
||||
void setupUi();
|
||||
|
||||
void updateTitle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user