
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file generated/gsiDeclQItemDelegate_EventAdaptor.cc
*  @brief Event adaptor implementations for QItemDelegate
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQItemDelegate_EventAdaptor.h"

// -----------------------------------------------------------------------
// class QItemDelegate_EventAdaptor

QItemDelegate_EventAdaptor::QItemDelegate_EventAdaptor (QObject *host)
  : QObject ()
{
  connect (host, SIGNAL(closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint)), this, SLOT(closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint)));
  connect (host, SIGNAL(commitData(QWidget *)), this, SLOT(commitData(QWidget *)));
  connect (host, SIGNAL(destroyed(QObject *)), this, SLOT(destroyed(QObject *)));
  connect (host, SIGNAL(sizeHintChanged(const QModelIndex &)), this, SLOT(sizeHintChanged(const QModelIndex &)));
}

//  Event QItemDelegate::closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
void QItemDelegate_EventAdaptor::closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint) {
BEGIN_PROTECTED
  closeEditor_e_4926(editor, qt_gsi::CppToQtAdaptor<QAbstractItemDelegate::EndEditHint>(hint));
END_PROTECTED
}

//  Event QItemDelegate::commitData(QWidget *editor)
void QItemDelegate_EventAdaptor::commitData(QWidget *editor) {
BEGIN_PROTECTED
  commitData_e_1315(editor);
END_PROTECTED
}

//  Event QItemDelegate::destroyed(QObject *arg1)
void QItemDelegate_EventAdaptor::destroyed(QObject *arg1) {
BEGIN_PROTECTED
  destroyed_e_1302(arg1);
END_PROTECTED
}

//  Event QItemDelegate::sizeHintChanged(const QModelIndex &arg1)
void QItemDelegate_EventAdaptor::sizeHintChanged(const QModelIndex &arg1) {
BEGIN_PROTECTED
  sizeHintChanged_e_2395(arg1);
END_PROTECTED
}
