Commit 46f0d59c authored by Laurent Montel's avatar Laurent Montel 😁

Remove not implemented function

Const'ify

svn path=/trunk/KDE/kdepim/kmail/; revision=1158260
parent 0e923be2
......@@ -72,8 +72,8 @@ void CollectionQuotaPage::init()
void CollectionQuotaPage::load( const Akonadi::Collection & col )
{
if ( col.hasAttribute<Akonadi::CollectionQuotaAttribute>() ) {
qint64 currentValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->currentValue();
qint64 maximumValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->maximumValue();
const qint64 currentValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->currentValue();
const qint64 maximumValue = col.attribute<Akonadi::CollectionQuotaAttribute>()->maximumValue();
mQuotaWidget->setQuotaInfo( currentValue, maximumValue );
}
}
......
......@@ -54,7 +54,8 @@ void ConfigModuleWithTabs::addTab( ConfigModuleTab* tab, const QString & title )
void ConfigModuleWithTabs::load()
{
for ( int i = 0 ; i < mTabWidget->count() ; ++i ) {
const int numberOfTab = mTabWidget->count();
for ( int i = 0 ; i < numberOfTab ; ++i ) {
ConfigModuleTab *tab = dynamic_cast<ConfigModuleTab*>( mTabWidget->widget(i) );
if ( tab )
tab->load();
......@@ -65,7 +66,8 @@ void ConfigModuleWithTabs::load()
void ConfigModuleWithTabs::save()
{
KCModule::save();
for ( int i = 0 ; i < mTabWidget->count() ; ++i ) {
const int numberOfTab = mTabWidget->count();
for ( int i = 0 ; i < numberOfTab ; ++i ) {
ConfigModuleTab *tab = dynamic_cast<ConfigModuleTab*>( mTabWidget->widget(i) );
if ( tab )
tab->save();
......
......@@ -62,8 +62,6 @@ public:
void setHideImapFolder( bool hide );
bool hideImapFolder() const;
void setNecessaryRight( Akonadi::Collection::Rights right );
protected:
virtual bool acceptRow( int sourceRow, const QModelIndex &sourceParent ) const;
......
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