Changeset View
Changeset View
Standalone View
Standalone View
src/commonfrontend/matrix/MatrixView.cpp
Context not available. | |||||
112 | 112 | | |||
---|---|---|---|---|---|
113 | //horizontal header | 113 | //horizontal header | ||
114 | QHeaderView* h_header = m_tableView->horizontalHeader(); | 114 | QHeaderView* h_header = m_tableView->horizontalHeader(); | ||
115 | h_header->setMovable(false); | 115 | h_header->setSectionsMovable(false); | ||
116 | h_header->installEventFilter(this); | 116 | h_header->installEventFilter(this); | ||
117 | 117 | | |||
118 | //vertical header | 118 | //vertical header | ||
119 | QHeaderView* v_header = m_tableView->verticalHeader(); | 119 | QHeaderView* v_header = m_tableView->verticalHeader(); | ||
120 | v_header->setMovable(false); | 120 | v_header->setSectionsMovable(false); | ||
121 | v_header->installEventFilter(this); | 121 | v_header->installEventFilter(this); | ||
122 | 122 | | |||
123 | //set the header sizes to the (potentially user customized) sizes stored in Matrix | 123 | //set the header sizes to the (potentially user customized) sizes stored in Matrix | ||
Context not available. | |||||
544 | void MatrixView::goToCell() { | 544 | void MatrixView::goToCell() { | ||
545 | bool ok; | 545 | bool ok; | ||
546 | 546 | | |||
547 | int col = QInputDialog::getInteger(0, i18n("Go to Cell"), i18n("Enter column"), | 547 | int col = QInputDialog::getInt(0, i18n("Go to Cell"), i18n("Enter column"), | ||
548 | 1, 1, m_matrix->columnCount(), 1, &ok); | 548 | 1, 1, m_matrix->columnCount(), 1, &ok); | ||
549 | if (!ok) return; | 549 | if (!ok) return; | ||
550 | 550 | | |||
551 | int row = QInputDialog::getInteger(0, i18n("Go to Cell"), i18n("Enter row"), | 551 | int row = QInputDialog::getInt(0, i18n("Go to Cell"), i18n("Enter row"), | ||
552 | 1, 1, m_matrix->rowCount(), 1, &ok); | 552 | 1, 1, m_matrix->rowCount(), 1, &ok); | ||
553 | if (!ok) return; | 553 | if (!ok) return; | ||
554 | 554 | | |||
Context not available. |