~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kmail/kmail_part.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
  canvas->setFocusPolicy(Qt::ClickFocus);
90
90
  canvas->setObjectName( "canvas" );
91
91
  setWidget(canvas);
92
 
  KIconLoader::global()->addAppDir("kmail");
93
 
  KIconLoader::global()->addAppDir( "kdepim" );
 
92
  KIconLoader::global()->addAppDir( "libkdepim" );
94
93
#if 0
95
94
  //It's also possible to make a part out of a readerWin
96
95
  KMReaderWin *mReaderWin = new KMReaderWin( canvas, canvas, actionCollection() );
97
 
  connect(mReaderWin, SIGNAL(urlClicked(const KUrl&,int)),
 
96
  connect(mReaderWin, SIGNAL(urlClicked(KUrl,int)),
98
97
          mReaderWin, SLOT(slotUrlClicked()));
99
98
  QVBoxLayout *topLayout = new QVBoxLayout(canvas);
100
99
  topLayout->addWidget(mReaderWin);
119
118
  mStatusBar->addStatusBarItem( mainWidget->vacationScriptIndicator(), 2, false );
120
119
 
121
120
  // Get to know when the user clicked on a folder in the KMail part and update the headerWidget of Kontact
122
 
  connect( mainWidget->folderTreeView(), SIGNAL( currentChanged( const Akonadi::Collection & ) ),
123
 
           this, SLOT( slotFolderChanged( const Akonadi::Collection& ) ) );
124
 
  connect( kmkernel->folderCollectionMonitor(), SIGNAL(collectionChanged( const Akonadi::Collection &, const QSet<QByteArray> &)),
125
 
           this, SLOT(slotCollectionChanged( const Akonadi::Collection &, const QSet<QByteArray> &)));
 
121
  connect( mainWidget->folderTreeView(), SIGNAL(currentChanged(Akonadi::Collection)),
 
122
           this, SLOT(slotFolderChanged(Akonadi::Collection)) );
 
123
  connect( kmkernel->folderCollectionMonitor(), SIGNAL(collectionChanged(Akonadi::Collection,QSet<QByteArray>)),
 
124
           this, SLOT(slotCollectionChanged(Akonadi::Collection,QSet<QByteArray>)));
126
125
  setXMLFile( "kmail_part.rc", true );
127
126
#endif
128
127