Skip to content
Commit 2af39a1b authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

[kcms/style] Improve GTK themes model code

* Renames m_themesList to m_themes, because it's a tree-based QMap, so
  it won't confuse developers.

* ItemModel::data() method:
  - uses simpler and sound checkIndex();
  - refactors from expensive QMap::{keys,values} (which construct a QList
    each time they called) to stl-style key/value iterator;

* Other accesses to themes now use const iterators too.
parent 62ad9e67
Pipeline #170642 passed with stage
in 5 minutes and 44 seconds
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