From caef6078fda0d539f5481858252c41e432c0d935 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 22 Mar 2013 09:36:02 +0100 Subject: Drop Window placement Drop all the stuff placing the window somewhere. I'm using a tiling window manager :) --- shemov.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 6aa7c74..402af56 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -1041,11 +1041,7 @@ void SheMov::createToolBar(){ void SheMov::writeSettings(){ QSettings s; - s.setValue("windows/mainpos", pos()); - s.setValue("windows/mainsize", size()); - bool winState = windowState() & Qt::WindowMaximized; - s.setValue("windows/maximized", winState); - s.setValue("ui/selectedtab", mTab->currentIndex()); + s.setValue("ui/selectedtab", mTab->currentIndex()); FilesTreeModel *filesModel = static_cast(SmGlobals::instance()->model("FilesModel")); s.setValue("ui/filestreemode", filesModel->mode()); QList visibleHeaders; @@ -1061,15 +1057,7 @@ void SheMov::writeSettings(){ void SheMov::readSettings(){ QSettings s; - QPoint winPos = s.value("windows/mainpos").toPoint(); - QSize winSize = s.value("windows/mainsize").toSize(); - bool winState = s.value("windows/maximized", false).toBool(); - resize(winSize); - move(winPos); - if(winState){ - setWindowState(Qt::WindowMaximized); - } - int currentTab = s.value("ui/selectedtab", 0).toInt(); + int currentTab = s.value("ui/selectedtab", 0).toInt(); if(currentTab < mTab->count() && currentTab != mTab->currentIndex()){ mTab->setCurrentIndex(currentTab); } -- cgit v1.2.3-70-g09d2