diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -245,6 +245,7 @@ ${BACKEND_DIR}/generalTest/CorrelationCoefficient.cpp ${BACKEND_DIR}/generalTest/GeneralTest.cpp ${BACKEND_DIR}/generalTest/HypothesisTest.cpp + ${BACKEND_DIR}/generalTest/MyTextEdit.cpp ${BACKEND_DIR}/matrix/Matrix.cpp ${BACKEND_DIR}/matrix/matrixcommands.cpp ${BACKEND_DIR}/matrix/MatrixModel.cpp diff --git a/src/backend/generalTest/CorrelationCoefficient.cpp b/src/backend/generalTest/CorrelationCoefficient.cpp --- a/src/backend/generalTest/CorrelationCoefficient.cpp +++ b/src/backend/generalTest/CorrelationCoefficient.cpp @@ -60,7 +60,6 @@ void CorrelationCoefficient::performTest(int test, bool categoricalVariable) { m_statsTable = ""; - m_tooltips.clear(); m_correlationValue = 0; m_statisticValue.clear(); m_pValue.clear(); diff --git a/src/backend/generalTest/GeneralTest.h b/src/backend/generalTest/GeneralTest.h --- a/src/backend/generalTest/GeneralTest.h +++ b/src/backend/generalTest/GeneralTest.h @@ -77,7 +77,6 @@ QStringList allColumns(); QString testName(); QString statsTable(); - QMap tooltips(); QVBoxLayout* summaryLayout(); @@ -110,7 +109,6 @@ QVBoxLayout* m_summaryLayout{nullptr}; QLabel* m_resultLine[RESULTLINESCOUNT]; - QMap m_tooltips; QString round(QVariant number, int precision = 3); diff --git a/src/backend/generalTest/GeneralTest.cpp b/src/backend/generalTest/GeneralTest.cpp --- a/src/backend/generalTest/GeneralTest.cpp +++ b/src/backend/generalTest/GeneralTest.cpp @@ -86,10 +86,6 @@ return m_statsTable; } -QMap GeneralTest::tooltips() { - return m_tooltips; -} - QVBoxLayout* GeneralTest::summaryLayout() { return m_summaryLayout; } @@ -422,12 +418,18 @@ } QString GeneralTest::getHtmlTable3(const QList& rowMajor) { - m_tooltips.clear(); int rowMajorSize = rowMajor.size(); if (rowMajorSize == 0) return QString(); + QString startToolTip = "[tooltip]"; + QString endToolTip = "[/tooltip]"; + QString startData = "[data]"; + QString endData = "[/data]"; + QString startTip = "[tip]"; + QString endTip = "[/tip]"; + QString table; table = "