All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GeopsyGui::StationCoordinatesDelegate Class Reference

Brief description of class still missing. More...

#include <StationCoordinatesDelegate.h>

List of all members.

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditorData (QWidget *editor, const QModelIndex &index) const
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 StationCoordinatesDelegate (QObject *parent=0)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

: QItemDelegate(parent) {}

Member Function Documentation

QWidget * GeopsyGui::StationCoordinatesDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
{
  return new QLineEdit(parent);
}
void GeopsyGui::StationCoordinatesDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

References TRACE, and w.

{
  TRACE;
  QLineEdit * w= qobject_cast<QLineEdit *>(editor);
  ASSERT(w);
  w->setText(index.model() ->data(index).toString());
  w->selectAll();
}
void GeopsyGui::StationCoordinatesDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

References TRACE, and w.

{
  TRACE;
  QLineEdit * w=qobject_cast<QLineEdit *>(editor);
  ASSERT(w);
  model->setData(index, w->text());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines