Esempio n. 1
0
void btEditorNodeType::disconnectChangeProperty()
{
    disconnect(m_sender, SIGNAL(propertyChanged(QString, QVariant)), this, SLOT(changeProperty(QString, QVariant)));
    disconnect(m_sender, SIGNAL(propertyDescriptionChanged(QString, QString, QString)), this, SLOT(changePropertyDescription(QString,QString, QString)));
    disconnect(m_sender, SIGNAL(nameChanged(QString)), this, SLOT(changeName(QString)));
    disconnect(m_sender, SIGNAL(descriptionChanged(QString)), this, SLOT(changeDescription(QString)));
    disconnect(m_sender, SIGNAL(classNameChanged(QString)), this, SLOT(changeClassName(QString)));
}
Esempio n. 2
0
void ARCommandListener::setClassName(const QString &className)
{
    Q_D(ARCommandListener);
    if(d->className != className)
    {
        d->className = className;
        emit classNameChanged();
    }
}
Esempio n. 3
0
void SpellList::setClassName(QString className)
{
    if (m_className == className)
        return;

    m_className = className;
    emit classNameChanged(className);

    populate();
}
Esempio n. 4
0
void PromotionModel::slotItemChanged(QStandardItem * changedItem) {
    // Retrieve DB item
    bool referenced;
    QDesignerWidgetDataBaseItemInterface *dbItem = databaseItem(changedItem, &referenced);
    Q_ASSERT(dbItem);
    // Change header or type
    switch (changedItem->column()) {
    case ClassNameColumn:
        emit classNameChanged(dbItem,  changedItem->text());
        break;
    case IncludeTypeColumn:
    case IncludeFileColumn: {
        // Get both file and type items via parent.
        const QStandardItem *baseClassItem = changedItem->parent();
        const QStandardItem *fileItem = baseClassItem->child(changedItem->row(), IncludeFileColumn);
        const QStandardItem *typeItem =  baseClassItem->child(changedItem->row(), IncludeTypeColumn);
        emit includeFileChanged(dbItem, buildIncludeFile(fileItem->text(), typeItem->checkState() == Qt::Checked ? IncludeGlobal : IncludeLocal));
    }
    break;
    }
}
void CustomWidgetEditor::checkWidgetName()
{
    QListBoxItem *i = oldItem ? oldItem : boxWidgets->item( boxWidgets->currentItem() );
    MetaDataBase::CustomWidget *w = findWidget( i );
    oldItem = 0;
    if ( !i || !w )
	return;

    if ( MetaDataBase::isWidgetNameUsed( w ) ) {
	QString s = w->className;
	w->className = oldName;
	QMessageBox::information( this, i18n( "Renaming Custom Widget" ),
				  i18n( "Custom widget names must be unique.\n"
				      "A custom widget called '%1' already exists, so it is not possible "
				      "to rename this widget with this name." ).arg( s ) );
	if ( i != boxWidgets->item( boxWidgets->currentItem() ) ) {
	    boxWidgets->setCurrentItem( i );
	    qApp->processEvents();
	}
	editClass->setText( w->className );
	classNameChanged( w->className );
    }
}
Esempio n. 6
0
void btEditorNodeType::changeClassName(QString className)
{
    this->setClassName(className);
    emit classNameChanged(className);
}
Esempio n. 7
0
void btEditorNodeType::emitClassNameChanged(QString className)
{
    emit classNameChanged(className);
}