Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 397:2c59b0cd176b
* Update translations, and add change counter to name of bundle command
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2008 10:47:11 +0000 |
parents | 2669267fb7ea |
children | 80e279e4f9fe |
comparison
equal
deleted
inserted
replaced
396:2669267fb7ea | 397:2c59b0cd176b |
---|---|
68 | 68 |
69 connect(m_tableView, SIGNAL(clicked(const QModelIndex &)), | 69 connect(m_tableView, SIGNAL(clicked(const QModelIndex &)), |
70 this, SLOT(viewClicked(const QModelIndex &))); | 70 this, SLOT(viewClicked(const QModelIndex &))); |
71 connect(m_tableView, SIGNAL(pressed(const QModelIndex &)), | 71 connect(m_tableView, SIGNAL(pressed(const QModelIndex &)), |
72 this, SLOT(viewPressed(const QModelIndex &))); | 72 this, SLOT(viewPressed(const QModelIndex &))); |
73 connect(m_table, SIGNAL(executeCommand(Command *)), | |
74 this, SLOT(executeCommand(Command *))); | |
73 | 75 |
74 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Close); | 76 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Close); |
75 connect(bb, SIGNAL(rejected()), this, SLOT(close())); | 77 connect(bb, SIGNAL(rejected()), this, SLOT(close())); |
76 grid->addWidget(bb, 2, 0); | 78 grid->addWidget(bb, 2, 0); |
77 grid->setRowStretch(2, 0); | 79 grid->setRowStretch(2, 0); |
116 } | 118 } |
117 | 119 |
118 void | 120 void |
119 ModelDataTableDialog::executeCommand(Command *command) | 121 ModelDataTableDialog::executeCommand(Command *command) |
120 { | 122 { |
121 CommandHistory::getInstance()->addCommand(command, true, true); | 123 std::cerr << "ModelDataTableDialog::executeCommand(" << command << ")" << std::endl; |
124 CommandHistory::getInstance()->addCommand(command, false, true); | |
122 } | 125 } |
123 | 126 |