Commit ee3e8dfc authored by Arthur Crepin-Leblond's avatar Arthur Crepin-Leblond Committed by Guillaume Lazzara
Browse files

Text selectable in Qt interface.

        * scribo/demo/viewer/viewer.cc
parent d7ea2d35
2010-07-20 Arthur Crepin-Leblond <crepin@ptaouchnok.lrde.epita.fr>
Text selectable in Qt interface.
* scribo/demo/viewer/viewer.cc
2010-07-20 Arthur Crepin-Leblond <crepin@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.
* 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.
* demo/viewer/Makefile.am
* scribo/demo/viewer/Makefile.am
* demo/viewer/browser_widget.cc: Fix, xmlc extension instead of xmle.
* scribo/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.
* 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.
* demo/viewer/viewer.cc,
* demo/viewer/viewer.hh: Add base 64 cropped pictures support, text viewer
* 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@ptaouchnok.lrde.epita.fr>
......
......@@ -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();
}
......
Supports Markdown
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