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:
parent
a8b45e0a13
commit
d0b23a4786
@ -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()
|
||||||
|
@ -59,8 +59,6 @@ namespace CSVDoc
|
|||||||
|
|
||||||
void setupWorldMenu();
|
void setupWorldMenu();
|
||||||
|
|
||||||
void setupSettingsMenu();
|
|
||||||
|
|
||||||
void setupUi();
|
void setupUi();
|
||||||
|
|
||||||
void updateTitle();
|
void updateTitle();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user