minimoog / qtwitdget

Simple multiplatform Twitter client based on Qt library
12 stars 3 forks source link

Move regex from delegates to C++ model #37

Open minimoog opened 13 years ago

minimoog commented 13 years ago

Because qml delegates are dynamically instantiated (created and destroyed depending if they are in the listview), regexing to determine links, tags, and mentions should be moved to corresponding C++ model. Regexed text of the tweet should be also stored in the model.

This will remove unnecessary regexing when delegate is instantiated in the view.

minimoog commented 13 years ago

Not easy fixable. Delayed solution for future versions.