Const'ify and use "KDE::versionRelease"

svn path=/trunk/KDE/kdepim/kmail/; revision=1150316
wilder-work
Laurent Montel 16 years ago
parent 14d7f0bd74
commit 28e2dd5645
  1. 2
      configuredialog.cpp
  2. 2
      kmreaderwin.cpp
  3. 2
      kmsystemtray.cpp

@ -2965,7 +2965,7 @@ void ComposerPage::AttachmentsTab::doLoadFromGlobalSettings()
mMissingAttachmentDetectionCheck->setChecked(
GlobalSettings::self()->showForgottenAttachmentWarning() );
QStringList attachWordsList = GlobalSettings::self()->attachmentKeywords();
const QStringList attachWordsList = GlobalSettings::self()->attachmentKeywords();
mAttachWordsListEditor->setStringList( attachWordsList );
}

@ -337,7 +337,7 @@ void KMReaderWin::displayAboutPage()
QString featuresText =
i18n("<p>Some of the new features in this release of KMail include "
"(compared to KMail %1, which is part of KDE Software Compilation %2):</p>\n",
QString("1.13"), QString("4.4")); // prior KMail and KDE version
QString("1.13"), KDE::versionRelease() ); // prior KMail and KDE version
featuresText += "<ul>\n";
for ( int i = 0 ; i < numKMailNewFeatures ; i++ )
featuresText += "<li>" + i18n( kmailNewFeatures[i] ) + "</li>\n";

@ -387,7 +387,7 @@ void KMSystemTray::unreadMail( const QAbstractItemModel *model, const QModelInde
if ( KMail::Util::isVirtualCollection( collection ) )
continue;
Akonadi::CollectionStatistics statistics = collection.statistics();
const Akonadi::CollectionStatistics statistics = collection.statistics();
const qint64 count = qMax( 0LL, statistics.unreadCount() );
if ( count > 0 ) {

Loading…
Cancel
Save