Show the window maximized when the user opens the program for the very first time

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=369730
This commit is contained in:
Albert Astals Cid 2004-12-10 22:27:55 +00:00
parent 3ff4415c92
commit b7588b4b33
2 changed files with 7 additions and 0 deletions

View file

@ -54,6 +54,7 @@ More items (first items will enter 'In progress list' first):
-> incremental zoom with fast-refresh (tested but flickering!) or contour tracing
Done (newest feature comes firts):
-> ADD: Show the window maximized when the user opens the program for the very first time (Albert)
-> ADD: Use 'Generators' as providers for contents generation.
-> ADD: Add properties dialog (Albert)
-> ADD: Support for show/hide menubar in rmb menu, different from HEAD so that supports Konqueror too (Albert)

View file

@ -34,6 +34,7 @@
#include <kpopupmenu.h>
#include <kparts/componentfactory.h>
#include <kio/netaccess.h>
#include <kmainwindowiface.h>
#include <qcursor.h>
@ -77,6 +78,11 @@ Shell::Shell()
connect( this, SIGNAL( saveDocumentRestoreInfo(KConfig*) ), m_part, SLOT( saveDocumentRestoreInfo(KConfig*)));
readSettings();
if (!KGlobal::config()->hasGroup("MainWindow"))
{
KMainWindowInterface kmwi(this);
kmwi.maximize();
}
}
Shell::~Shell()