Commit 25173056 authored by Christian Loose's avatar Christian Loose

Removed custom main window size handling.

Use setAutoSaveSettings() instead.

svn path=/trunk/kdesdk/cervisia/; revision=200447
parent eff74a82
2003-01-16 Christian Loose <christian.loose@hamburg.de>
* Changed main window size handling. The window size is now
handled by KMainWindow.
2003-01-11 Christian Loose <christian.loose@hamburg.de>
* Added help button to CommitDialog
......
......@@ -10,3 +10,9 @@ Key=Compression
Id=kde3.2/20021229
File=cervisiapartrc,cvsservicerc
Script=move_repositories.pl,perl
#
Id=kde3.2/20030116
File=cervisiapartrc
RemoveGroup=Main window
File=cervisiarc
RemoveGroup=Main window
\ No newline at end of file
/*
* Copyright (C) 1999-2002 Bernd Gehrmann
* bernd@mail.berlios.de
* Copyright (c) 2002-2003 Christian Loose <christian.loose@hamburg.de>
*
* This program may be distributed under the terms of the Q Public
* License as defined by Trolltech AS of Norway and appearing in the
......@@ -81,7 +82,9 @@ CervisiaShell::CervisiaShell( const char *name )
createGUI( part );
setAutoSaveSettings();
// enable auto-save of toolbar/menubar/statusbar and window size settings
// and apply the previously saved settings
setAutoSaveSettings("MainWindow", true);
}
CervisiaShell::~CervisiaShell()
......@@ -161,10 +164,6 @@ bool CervisiaShell::queryExit()
{
KConfig *config = part->config();
config->setGroup("Main window");
config->writeEntry("Customized", true);
config->writeEntry("Size", size());
part->saveDialogProperties(config);
config->setGroup("Session");
......@@ -178,10 +177,6 @@ void CervisiaShell::restorePseudo(const QString &dirname)
{
KConfig *config = part->config();
config->setGroup("Main window");
if (config->readBoolEntry("Customized"))
resize(config->readSizeEntry("Size"));
part->readDialogProperties(config);
config->setGroup("Session");
......
......@@ -66,10 +66,7 @@ int main(int argc, char **argv)
KCmdLineArgs::parsedArgs()->arg(0) : "");
CervisiaShell *t = new CervisiaShell();
t->resize(t->sizeHint().width(),
KApplication::desktop()->height()*8/10);
t->restorePseudo(dirname);
t->setIcon(app.icon());
app.setMainWidget(t);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment