+void DocumentChecker::slotPlaceholders()
+{
+ int ix = 0;
+ QTreeWidgetItem *child = m_view.treeWidget->topLevelItem(ix);
+ while (child) {
+ if (child->data(0, statusRole).toInt() == CLIPMISSING) {
+ child->setData(0, statusRole, CLIPPLACEHOLDER);
+ child->setIcon(0, KIcon("dialog-ok"));
+ }
+ ix++;
+ child = m_view.treeWidget->topLevelItem(ix);
+ }
+ checkStatus();
+}
+
+
+void DocumentChecker::checkStatus()
+{
+ bool status = true;
+ int ix = 0;
+ QTreeWidgetItem *child = m_view.treeWidget->topLevelItem(ix);
+ while (child) {
+ if (child->data(0, statusRole).toInt() == CLIPMISSING) {
+ status = false;
+ break;
+ }
+ ix++;
+ child = m_view.treeWidget->topLevelItem(ix);
+ }
+ m_view.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(status);
+}
+