if (l.at(k)->type() == TEXTITEM) {
// Just update the position. We don't allow setting width/height for text items yet.
if (l.at(k)->type() == TEXTITEM) {
// Just update the position. We don't allow setting width/height for text items yet.
qtrans.rotate(t.rotatey, Qt::YAxis);
qtrans.rotate(t.rotatez, Qt::ZAxis);
i->setTransform(qtrans);
qtrans.rotate(t.rotatey, Qt::YAxis);
qtrans.rotate(t.rotatez, Qt::ZAxis);
i->setTransform(qtrans);
- std::cout << "scale is: " << scale << "\n";
- std::cout << i->boundingRect().width() << ": new width\n";
+ kDebug() << "scale is: " << scale << "\n";
+ kDebug() << i->boundingRect().width() << ": new width\n";
value_h->setValue(i->sceneBoundingRect().height());
} else if (i->type() == RECTITEM) {
QGraphicsRectItem *r = static_cast <QGraphicsRectItem *>(i);
value_h->setValue(i->sceneBoundingRect().height());
} else if (i->type() == RECTITEM) {
QGraphicsRectItem *r = static_cast <QGraphicsRectItem *>(i);
value_w->setValue((int) r->rect().width());
value_h->setValue((int) r->rect().height());
} else if (i->type() == TEXTITEM) {
value_w->setValue((int) r->rect().width());
value_h->setValue((int) r->rect().height());
} else if (i->type() == TEXTITEM) {
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal max = zIndexBounds(true, false);
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal max = zIndexBounds(true, false);
effect_stack->setHidden(true);
effect_frame->setEnabled(false);
effect_list->setCurrentIndex(0);
effect_stack->setHidden(true);
effect_frame->setEnabled(false);
effect_list->setCurrentIndex(0);