[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: [kate/frameworks] part: port away from QAbstractItemModel::reset()
From:       Michal Humpula <michal.humpula () seznam ! cz>
Date:       2013-12-20 10:29:05
Message-ID: 6160362.pmAQSzvpWi () amonsul
[Download RAW message or body]

On Friday 20 of December 2013 11:17:33 Kevin Funk wrote:
> Am Donnerstag, 19. Dezember 2013, 20:36:44 schrieb Milian Wolff:
> > On Thursday 19 December 2013 17:58:25 Michal Humpula wrote:
> > > Git commit e6374518f5a966b8badda3a5e90fb873cd7ec08e by Michal Humpula.
> > > Committed on 19/12/2013 at 17:54.
> > > Pushed by michalhumpula into branch 'frameworks'.
> > > 
> > > port away from QAbstractItemModel::reset()
> > 
> > This is potentially dangerous as it can easily lead to undesired
> > side-effects, esp. performance wise.
> > 
> > See also: https://git.reviewboard.kde.org/r/113917/
> > 
> > Bye
> 
> Some hunks of the patch also seem flawed, e.g.:
> 
> @@ -1258,7 +1261,9 @@ const QList< QList < int > > &
> KateCompletionModel::columnMerges( ) const
>  void KateCompletionModel::setColumnMerges( const QList< QList < int > > &
> columnMerges )
>  {
>    m_columnMerges = columnMerges;
> -  reset();
> +
> +  beginResetModel();
> +  endResetModel();
>  }
> 
> (the call to beginResetModel() should be the very first statement in this
> block).
> 
> Anyway, I'll try to finish up my patch so we can possibly revert
> e6374518f5a966b8badda3a5e90fb873cd7ec08e and re-apply the diff from the
> review-request.
> 
> Greets

Well, that was simple "function expansion":) I'm looking forward for the clean 
patch.

Cheers

Michal
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic