Changeset View
Changeset View
Standalone View
Standalone View
src/acbf/AcbfBody.cpp
Context not available. | |||||
94 | void Body::setBgcolor(const QString& newColor) | 94 | void Body::setBgcolor(const QString& newColor) | ||
---|---|---|---|---|---|
95 | { | 95 | { | ||
96 | d->bgcolor = newColor; | 96 | d->bgcolor = newColor; | ||
97 | emit bgcolorChanged(); | ||||
97 | } | 98 | } | ||
98 | 99 | | |||
99 | QList<Page *> Body::pages() const | 100 | QList<Page *> Body::pages() const | ||
Context not available. | |||||
119 | else { | 120 | else { | ||
120 | d->pages.append(page); | 121 | d->pages.append(page); | ||
121 | } | 122 | } | ||
123 | emit pageCountChanged(); | ||||
122 | } | 124 | } | ||
123 | 125 | | |||
124 | void Body::removePage(Page* page) | 126 | void Body::removePage(Page* page) | ||
125 | { | 127 | { | ||
126 | d->pages.removeAll(page); | 128 | d->pages.removeAll(page); | ||
129 | emit pageCountChanged(); | ||||
127 | } | 130 | } | ||
128 | 131 | | |||
129 | bool Body::swapPages(Page* swapThis, Page* withThis) | 132 | bool Body::swapPages(Page* swapThis, Page* withThis) | ||
Context not available. | |||||
132 | int index2 = d->pages.indexOf(withThis); | 135 | int index2 = d->pages.indexOf(withThis); | ||
133 | if(index1 > -1 && index2 > -1) { | 136 | if(index1 > -1 && index2 > -1) { | ||
134 | d->pages.swap(index1, index2); | 137 | d->pages.swap(index1, index2); | ||
138 | emit pageCountChanged(); | ||||
135 | return true; | 139 | return true; | ||
136 | } | 140 | } | ||
137 | return false; | 141 | return false; | ||
138 | } | 142 | } | ||
143 | | ||||
144 | int Body::pageCount() | ||||
145 | { | ||||
146 | return d->pages.size(); | ||||
147 | } | ||||
Context not available. |