* scribo/demo/viewer/viewer.cc
---
scribo/ChangeLog | 56 +++++++++++++++++++++++------------------
scribo/demo/viewer/viewer.cc | 5 +---
2 files changed, 32 insertions(+), 29 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index b318aba..527a0a6 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,34 +1,40 @@
2010-07-20 Arthur Crepin-Leblond <crepin(a)ptaouchnok.lrde.epita.fr>
+ Text selectable in Qt interface.
+
+ * scribo/demo/viewer/viewer.cc
+
+2010-07-20 Arthur Crepin-Leblond <crepin(a)ptaouchnok.lrde.epita.fr>
+
Some changes in XML interface.
- * demo/viewer/property_widget.cc,
- * demo/viewer/property_widget.hh,
- * demo/viewer/domitem.cc,
- * demo/viewer/domitem.hh,
- * demo/viewer/dommodel.cc,
- * demo/viewer/dommodel.hh: Delete.
-
- * demo/viewer/Makefile.am
-
- * demo/viewer/browser_widget.cc: Fix, xmlc extension instead of xmle.
-
- * demo/viewer/key_widget.cc,
- * demo/viewer/step_widget.cc,
- * demo/viewer/step_widget.hh,
- * demo/viewer/image_scene.cc,
- * demo/viewer/image_scene.hh,
- * demo/viewer/help_dialog.cc,
- * demo/viewer/image_region.cc,
- * demo/viewer/image_region.hh,
- * demo/viewer/image_region.hxx: Small changes.
-
- * demo/viewer/viewer.cc,
- * demo/viewer/viewer.hh: Add base 64 cropped pictures support, text viewer
+ * scribo/demo/viewer/property_widget.cc,
+ * scribo/demo/viewer/property_widget.hh,
+ * scribo/demo/viewer/domitem.cc,
+ * scribo/demo/viewer/domitem.hh,
+ * scribo/demo/viewer/dommodel.cc,
+ * scribo/demo/viewer/dommodel.hh: Delete.
+
+ * scribo/demo/viewer/Makefile.am
+
+ * scribo/demo/viewer/browser_widget.cc: Fix, xmlc extension instead of xmle.
+
+ * scribo/demo/viewer/key_widget.cc,
+ * scribo/demo/viewer/step_widget.cc,
+ * scribo/demo/viewer/step_widget.hh,
+ * scribo/demo/viewer/image_scene.cc,
+ * scribo/demo/viewer/image_scene.hh,
+ * scribo/demo/viewer/help_dialog.cc,
+ * scribo/demo/viewer/image_region.cc,
+ * scribo/demo/viewer/image_region.hh,
+ * scribo/demo/viewer/image_region.hxx: Small changes.
+
+ * scribo/demo/viewer/viewer.cc,
+ * scribo/demo/viewer/viewer.hh: Add base 64 cropped pictures support, text viewer
and change XML parsing.
- * demo/viewer/xml_widget.cc,
- * demo/viewer/xml_widget.hh: Change widget, tree and attributes are together.
+ * scribo/demo/viewer/xml_widget.cc,
+ * scribo/demo/viewer/xml_widget.hh: Change widget, tree and attributes are together.
2010-07-16 Arthur Crepin-Leblond <crepin(a)ptaouchnok.lrde.epita.fr>
diff --git a/scribo/demo/viewer/viewer.cc b/scribo/demo/viewer/viewer.cc
index 090bb1b..f93177e 100644
--- a/scribo/demo/viewer/viewer.cc
+++ b/scribo/demo/viewer/viewer.cc
@@ -275,6 +275,7 @@ Viewer::add_text(QDomNode line, QDomNode region)
font.setPixelSize(a_height + d_height);
QGraphicsTextItem* text_item = scene_->addText(text, font);
text_item->setPos(x_min, y_min);
+ text_item->setTextInteractionFlags(Qt::TextSelectableByMouse);
text_vector_ << text_item;
if (!text_)
scene_->removeItem(text_item);
@@ -619,7 +620,6 @@ Viewer::useText(bool b)
scene_->addItem(text_vector_[i]);
}
- emit updated();
scene_->update();
}
@@ -644,9 +644,6 @@ Viewer::useImage(bool b)
scene_->addItem(image_vector_[i]);
}
-
-
- emit updated();
scene_->update();
}
--
1.5.6.5