mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Eliminated code centering the initial view in the middle of the screen
This commit is contained in:
parent
c71d921f09
commit
13242c2bd5
2 changed files with 0 additions and 10 deletions
|
@ -16,8 +16,6 @@
|
|||
#include "operations.hpp"
|
||||
#include "subview.hpp"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
void CSVDoc::View::closeEvent (QCloseEvent *event)
|
||||
{
|
||||
if (!mViewManager.closeRequest (this))
|
||||
|
@ -262,8 +260,6 @@ void CSVDoc::View::slotUpdateEditorSetting(const QString &settingName, const QSt
|
|||
{
|
||||
static QString lastValue = "";
|
||||
|
||||
qDebug() << "updating setting: " << settingName << " = " << settingValue;
|
||||
|
||||
if (lastValue != settingValue)
|
||||
{
|
||||
//evaluate settingName against tokens to determine which function to call to update Editor application.
|
||||
|
|
|
@ -72,12 +72,6 @@ CSVDoc::View *CSVDoc::ViewManager::addView (CSMDoc::Document *document)
|
|||
|
||||
mViews.push_back (view);
|
||||
|
||||
if (mViews.size()==1)
|
||||
{
|
||||
QRect scr = QApplication::desktop()->screenGeometry();
|
||||
QRect rect = view->geometry();
|
||||
view->move (scr.center().x() - rect.center().x(), scr.center().y() - rect.center().y());
|
||||
}
|
||||
view->show();
|
||||
|
||||
connect (view, SIGNAL (newDocumentRequest ()), this, SIGNAL (newDocumentRequest()));
|
||||
|
|
Loading…
Reference in a new issue