Mercurial > hg > svgui
changeset 1535:873ff035364c
Tidy / debug
author | Chris Cannam |
---|---|
date | Mon, 14 Oct 2019 14:20:02 +0100 |
parents | bfd8b22fd67c |
children | 5a215033b853 |
files | layer/BoxLayer.cpp widgets/ModelDataTableDialog.cpp |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/BoxLayer.cpp Wed Oct 09 13:45:17 2019 +0100 +++ b/layer/BoxLayer.cpp Mon Oct 14 14:20:02 2019 +0100 @@ -223,10 +223,14 @@ } bool -BoxLayer::adoptExtents(double /* min */, double /* max */, QString unit) +BoxLayer::adoptExtents(double min, double max, QString unit) { auto model = ModelById::getAs<BoxModel>(m_model); if (!model) return false; + + SVDEBUG << "BoxLayer[" << this << "]::adoptExtents: min " << min + << ", max " << max << ", unit " << unit << endl; + if (model->getScaleUnits() == "") { model->setScaleUnits(unit); return true;
--- a/widgets/ModelDataTableDialog.cpp Wed Oct 09 13:45:17 2019 +0100 +++ b/widgets/ModelDataTableDialog.cpp Mon Oct 14 14:20:02 2019 +0100 @@ -75,14 +75,6 @@ CommandHistory::getInstance()->registerToolbar(toolbar); -/* - action = new QAction(il.load("dataedit"), tr("Edit Selected Item"), this); - action->setShortcut(tr("Edit")); - action->setStatusTip(tr("Edit the selected item")); - connect(action, SIGNAL(triggered()), this, SLOT(editRow())); - toolbar->addAction(action); -*/ - QFrame *mainFrame = new QFrame; setCentralWidget(mainFrame);