Spreadsheet: Removed setPosition() function.

This commit is contained in:
Eivind Kvedalen
2015-11-08 11:58:46 +01:00
committed by wmayer
parent 899956cd51
commit ef7c8977ca
7 changed files with 0 additions and 67 deletions

View File

@@ -98,7 +98,6 @@ SheetView::SheetView(Gui::Document *pcDocument, App::DocumentObject *docObj, QWi
columnWidthChangedConnection = sheet->columnWidthChanged.connect(bind(&SheetView::resizeColumn, this, _1, _2));
rowHeightChangedConnection = sheet->rowHeightChanged.connect(bind(&SheetView::resizeRow, this, _1, _2));
positionChangedConnection = sheet->positionChanged.connect(bind(&SheetView::setPosition, this, _1));
QPalette palette = ui->cells->palette();
palette.setColor(QPalette::Base, QColor(255, 255, 255));
@@ -263,17 +262,6 @@ void SheetView::resizeColumn(int col, int newSize)
ui->cells->setColumnWidth(col, newSize);
}
void SheetView::setPosition(CellAddress address)
{
QModelIndex curr = ui->cells->currentIndex();
QModelIndex i = ui->cells->model()->index(address.row(), address.col());
if (i.isValid() && (curr.row() != address.row() || curr.column() != address.col())) {
ui->cells->clearSelection();
ui->cells->setCurrentIndex(i);
}
}
void SheetView::resizeRow(int col, int newSize)
{
if (ui->cells->verticalHeader()->sectionSize(col) != newSize)
@@ -299,7 +287,6 @@ void SheetView::editingFinished()
void SheetView::currentChanged ( const QModelIndex & current, const QModelIndex & previous )
{
updateContentLine();
sheet->setPosition(CellAddress(current.row(), current.column()));
}
void SheetView::updateCell(const App::Property *prop)