if (images.at(i).toElement().hasAttribute("url"))
result.append(images.at(i).toElement().attribute("url"));
}
if (images.at(i).toElement().hasAttribute("url"))
result.append(images.at(i).toElement().attribute("url"));
}
if (images.at(i).toElement().hasAttribute("font"))
result.append(images.at(i).toElement().attribute("font"));
}
if (images.at(i).toElement().hasAttribute("font"))
result.append(images.at(i).toElement().attribute("font"));
}
void TitleWidget::zIndexChanged(int v)
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
void TitleWidget::zIndexChanged(int v)
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
value_x->setEnabled(true);
value_y->setEnabled(true);
bool containsTextitem = false;
value_x->setEnabled(true);
value_y->setEnabled(true);
bool containsTextitem = false;
// Disable z index buttons if they don't make sense for the current selection
int firstZindex = l.at(0)->zValue();
allEqual = true;
// Disable z index buttons if they don't make sense for the current selection
int firstZindex = l.at(0)->zValue();
allEqual = true;
QGraphicsTextItem* item = NULL;
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
if (l.at(i)->type() == TEXTITEM) {
QGraphicsTextItem* item = NULL;
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
if (l.at(i)->type() == TEXTITEM) {
if (l.at(i)->type() == RECTITEM && !settingUp) {
QGraphicsRectItem *rec = static_cast<QGraphicsRectItem *>(l.at(i));
QColor f = rectFColor->color();
if (l.at(i)->type() == RECTITEM && !settingUp) {
QGraphicsRectItem *rec = static_cast<QGraphicsRectItem *>(l.at(i));
QColor f = rectFColor->color();
if (url.isEmpty()) url = KFileDialog::getOpenUrl(KUrl(m_projectTitlePath), "application/x-kdenlivetitle", this, i18n("Load Title"));
if (!url.isEmpty()) {
QList<QGraphicsItem *> items = m_scene->items();
if (url.isEmpty()) url = KFileDialog::getOpenUrl(KUrl(m_projectTitlePath), "application/x-kdenlivetitle", this, i18n("Load Title"));
if (!url.isEmpty()) {
QList<QGraphicsItem *> items = m_scene->items();
m_transformations.clear();
QList <QGraphicsItem *> items = graphicsView->scene()->items();
const double PI = 4.0 * atan(1.0);
m_transformations.clear();
QList <QGraphicsItem *> items = graphicsView->scene()->items();
const double PI = 4.0 * atan(1.0);
if (list.at(i)->zValue() > -1000) {
list.at(i)->setFlag(QGraphicsItem::ItemIsMovable, !anim);
list.at(i)->setFlag(QGraphicsItem::ItemIsSelectable, !anim);
if (list.at(i)->zValue() > -1000) {
list.at(i)->setFlag(QGraphicsItem::ItemIsMovable, !anim);
list.at(i)->setFlag(QGraphicsItem::ItemIsSelectable, !anim);
if (list.at(i)->zValue() > -1000) {
list.at(i)->setFlag(QGraphicsItem::ItemIsMovable, !anim);
list.at(i)->setFlag(QGraphicsItem::ItemIsSelectable, !anim);
if (list.at(i)->zValue() > -1000) {
list.at(i)->setFlag(QGraphicsItem::ItemIsMovable, !anim);
list.at(i)->setFlag(QGraphicsItem::ItemIsSelectable, !anim);
z = lItems[i]->zValue();
if (z < bound && !lItems[i]->isSelected() && z > -999) {
// There are items at the very bottom (background e.g.) with z-index < -1000.
z = lItems[i]->zValue();
if (z < bound && !lItems[i]->isSelected() && z > -999) {
// There are items at the very bottom (background e.g.) with z-index < -1000.
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal max = zIndexBounds(true, false);
std::cout << "Max z-index is " << max << ".\n";
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal max = zIndexBounds(true, false);
std::cout << "Max z-index is " << max << ".\n";
qreal currentZ = l[i]->zValue();
if (currentZ <= max) {
std::cout << "Updating item " << i << ", is " << currentZ << ".\n";
qreal currentZ = l[i]->zValue();
if (currentZ <= max) {
std::cout << "Updating item " << i << ", is " << currentZ << ".\n";
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal min = zIndexBounds(false, false);
{
QList<QGraphicsItem*> l = graphicsView->scene()->selectedItems();
qreal min = zIndexBounds(false, false);
if (l.at(i)->type() != itemType) {
l.at(i)->setSelected(false);
}
}
} else {
l = graphicsView->scene()->items();
if (l.at(i)->type() != itemType) {
l.at(i)->setSelected(false);
}
}
} else {
l = graphicsView->scene()->items();