1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 18:37:08 +00:00

Eliminated code centering the initial view in the middle of the screen

This commit is contained in:
graffy76 2013-05-16 10:14:13 -05:00
parent c71d921f09
commit 13242c2bd5
2 changed files with 0 additions and 10 deletions

View File

@ -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.

View File

@ -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()));