Changeset View
Changeset View
Standalone View
Standalone View
src/kassistantdialog.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 30 | public: | |||
---|---|---|---|---|---|
44 | void init(); | 44 | void init(); | ||
45 | void _k_slotUpdateButtons(); | 45 | void _k_slotUpdateButtons(); | ||
46 | 46 | | |||
47 | QModelIndex getNext(QModelIndex nextIndex) | 47 | QModelIndex getNext(QModelIndex nextIndex) | ||
48 | { | 48 | { | ||
49 | QModelIndex currentIndex; | 49 | QModelIndex currentIndex; | ||
50 | do { | 50 | do { | ||
51 | currentIndex = nextIndex; | 51 | currentIndex = nextIndex; | ||
52 | nextIndex = currentIndex.child(0, 0); | 52 | nextIndex = pageModel->index(0, 0, currentIndex); | ||
53 | if (!nextIndex.isValid()) { | 53 | if (!nextIndex.isValid()) { | ||
54 | nextIndex = currentIndex.sibling(currentIndex.row() + 1, 0); | 54 | nextIndex = currentIndex.sibling(currentIndex.row() + 1, 0); | ||
55 | } | 55 | } | ||
56 | } while (nextIndex.isValid() && !appropriate.value(pageModel->item(nextIndex), true)); | 56 | } while (nextIndex.isValid() && !appropriate.value(pageModel->item(nextIndex), true)); | ||
57 | return nextIndex; | 57 | return nextIndex; | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | QModelIndex getPrevious(QModelIndex nextIndex) | 60 | QModelIndex getPrevious(QModelIndex nextIndex) | ||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |