1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 08:23:51 +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 "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))
@ -262,8 +260,6 @@ void CSVDoc::View::slotUpdateEditorSetting(const QString &settingName, const QSt
{ {
static QString lastValue = ""; static QString lastValue = "";
qDebug() << "updating setting: " << settingName << " = " << settingValue;
if (lastValue != settingValue) if (lastValue != settingValue)
{ {
//evaluate settingName against tokens to determine which function to call to update Editor application. //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); 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(); view->show();
connect (view, SIGNAL (newDocumentRequest ()), this, SIGNAL (newDocumentRequest())); connect (view, SIGNAL (newDocumentRequest ()), this, SIGNAL (newDocumentRequest()));