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

pull/16/head
graffy76 12 years ago
parent c71d921f09
commit 13242c2bd5

@ -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…
Cancel
Save