示例#1
0
void TreeListWidget::closeEditor(QWidget * editor, QAbstractItemDelegate::EndEditHint hint)
{
    #ifdef K_DEBUG
        #ifdef Q_OS_WIN32
            qDebug() << "[TupCommandExecutor::removeItem()]";
        #else
           T_FUNCINFO;
        #endif
    #endif

    QLineEdit *edit = qobject_cast<QLineEdit *>(editor);

    if (edit)
        emit editorClosed();

    QTreeWidget::closeEditor(editor, hint);
}
示例#2
0
void QgsVertexEditor::closeEvent( QCloseEvent *event )
{
  QgsDockWidget::closeEvent( event );

  emit editorClosed();
}