From 13242c2bd54fa376d2ac4aed03ed282010f42001 Mon Sep 17 00:00:00 2001 From: graffy76 Date: Thu, 16 May 2013 10:14:13 -0500 Subject: [PATCH] Eliminated code centering the initial view in the middle of the screen --- apps/opencs/view/doc/view.cpp | 4 ---- apps/opencs/view/doc/viewmanager.cpp | 6 ------ 2 files changed, 10 deletions(-) diff --git a/apps/opencs/view/doc/view.cpp b/apps/opencs/view/doc/view.cpp index 6d2d3df8c9..d088a2417e 100644 --- a/apps/opencs/view/doc/view.cpp +++ b/apps/opencs/view/doc/view.cpp @@ -16,8 +16,6 @@ #include "operations.hpp" #include "subview.hpp" -#include - 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. diff --git a/apps/opencs/view/doc/viewmanager.cpp b/apps/opencs/view/doc/viewmanager.cpp index 81fb2f4e38..68d125706a 100644 --- a/apps/opencs/view/doc/viewmanager.cpp +++ b/apps/opencs/view/doc/viewmanager.cpp @@ -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()));