Exemplo n.º 1
0
//! When a level is created, we can set  the final steps for the window creation and connect widgets between one another
void MainWindow::setFinalCreationStep(){

    //Scene creation and connection with the element panel
    m_scene = new Scene(m_project->getLayerList(), this);
    m_panelWidget->init();

    connect(m_scene, SIGNAL(newEntity()), m_panelWidget, SLOT(newEntityWidget()));
    connect(m_scene, SIGNAL(selectedItemsChanged(QList<QGraphicsItem *>)), m_panelWidget, SLOT(setCurrentSelectionWidget(QList<QGraphicsItem *>)));

    //Window title
    setWindowTitle("Indielib Editor | " + m_project->getName() + " - " + m_project->getCurrentLevel());

    m_viewer->setScene(m_scene);
}
Exemplo n.º 2
0
void AbstractLiveEditTool::updateSelectedItems()
{
    selectedItemsChanged(items());
}
void AbstractFormEditorTool::setItems(const QList<FormEditorItem*> &itemList)
{
    m_itemList = itemList;
    selectedItemsChanged(m_itemList);
}
Exemplo n.º 4
0
void core::BasicTable::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
{
	QTableView::selectionChanged(selected, deselected);

	emit selectedItemsChanged(selected, deselected);
}