#include <map_layer_delegate.h>
Public メソッド | |
| MapLayerDelegate (int col_visibility, int col_opacity, int col_name, QObject *parent=0) | |
| コンストラクタ。visibility, opacity, nameをどの行に表示するかを指定 | |
| 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 |
| モデルのデータをセット。 | |
| void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| エディタの大きさをitemに合わせる。 QAbstractItemData::updateEditorGeometry() | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| 自身を描画する。 | |
Private 変数 | |
| const int | col_visibility_ |
| visibilityをどの行に表示するか | |
| const int | col_opacity_ |
| opacityをどの行に表示するか | |
| const int | col_name_ |
| nameをどの行に表示するか | |
| MapLayerDelegate::MapLayerDelegate | ( | int | col_visibility, | |
| int | col_opacity, | |||
| int | col_name, | |||
| QObject * | parent = 0 | |||
| ) |
コンストラクタ。visibility, opacity, nameをどの行に表示するかを指定
| [in] | col_visibility | visibilityをどの行に表示するか |
| [in] | col_opacity | opacityをどの行に表示するか |
| [in] | col_name | nameをどの行に表示するか |
| [in] | parent | 親オブジェクト |
| QWidget * MapLayerDelegate::createEditor | ( | QWidget * | parent, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
項目の内容変更のためにエディタを起動する。
| void MapLayerDelegate::setEditorData | ( | QWidget * | editor, | |
| const QModelIndex & | index | |||
| ) | const |
エディタのデータをセット。
| void MapLayerDelegate::setModelData | ( | QWidget * | editor, | |
| QAbstractItemModel * | model, | |||
| const QModelIndex & | index | |||
| ) | const |
モデルのデータをセット。
| void MapLayerDelegate::updateEditorGeometry | ( | QWidget * | editor, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
エディタの大きさをitemに合わせる。 QAbstractItemData::updateEditorGeometry()
| void MapLayerDelegate::paint | ( | QPainter * | painter, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
自身を描画する。
const int MapLayerDelegate::col_visibility_ [private] |
visibilityをどの行に表示するか
const int MapLayerDelegate::col_opacity_ [private] |
opacityをどの行に表示するか
const int MapLayerDelegate::col_name_ [private] |
nameをどの行に表示するか
1.5.5