Comments.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-28 19:20:28 +02:00
parent 0152ef0352
commit c6afb63fb7

View File

@ -115,7 +115,7 @@ void DialogHistory::cellClicked(int row, int column)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief ChangedCursor changed cursor of input. Cursor show after what record we will insert new object * @brief ChangedCursor changed cursor of input. Cursor show after which record we will insert new object
* @param id id of object * @param id id of object
*/ */
void DialogHistory::ChangedCursor(quint32 id) void DialogHistory::ChangedCursor(quint32 id)
@ -155,7 +155,7 @@ void DialogHistory::FillTable()
SCASSERT(history != nullptr); SCASSERT(history != nullptr);
qint32 currentRow = -1; qint32 currentRow = -1;
qint32 count = 0; qint32 count = 0;
ui->tableWidget->setRowCount(history->size()); ui->tableWidget->setRowCount(history->size());//Make row count max possible number
for (qint32 i = 0; i< history->size(); ++i) for (qint32 i = 0; i< history->size(); ++i)
{ {
const VToolRecord tool = history->at(i); const VToolRecord tool = history->at(i);
@ -182,7 +182,7 @@ void DialogHistory::FillTable()
++count; ++count;
} }
} }
ui->tableWidget->setRowCount(count); ui->tableWidget->setRowCount(count);//Real row count
if (history->size()>0) if (history->size()>0)
{ {
cursorRow = currentRow; cursorRow = currentRow;