~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to akonadiconsole/mainwindow.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "mainwindow.h"
23
23
 
24
 
#include "mainwidget.h"
25
24
#include <libkdepim/uistatesaver.h>
26
25
 
27
26
#include <KActionCollection>
34
33
MainWindow::MainWindow( QWidget *parent )
35
34
  : KXmlGuiWindow( parent )
36
35
{
37
 
  setCentralWidget( new MainWidget( this ) );
 
36
  mMain = new MainWidget( this );
 
37
  setCentralWidget( mMain );
38
38
 
39
39
  KStandardAction::quit( qApp, SLOT(quit()), actionCollection() );
40
40
 
50
50
       QString(), "UseAtYourOwnRiskWarning" );
51
51
}
52
52
 
 
53
MainWindow::~MainWindow()
 
54
{
 
55
  delete mMain;
 
56
}
 
57
 
53
58
bool MainWindow::queryExit()
54
59
{
55
60
  KConfigGroup config( KGlobal::config(), "UiState" );
56
61
  KPIM::UiStateSaver::saveState( this, config );
57
62
  KGlobal::config()->sync();
 
63
  delete mMain;
 
64
  mMain = 0;
58
65
  return KXmlGuiWindow::queryExit();
59
66
}