From 43383ded0260773434481664f1e653eff0139f92 Mon Sep 17 00:00:00 2001 From: liranbg Date: Thu, 16 Oct 2014 14:50:03 +0300 Subject: [PATCH] update help dialog. change color in gpa selection also, next row selected after editing course's grade for bettern inserting --- main/CourseTab/coursestablemanager.cpp | 4 +++- main/HelpBox/helpbox.ui | 8 ++++---- main/mainscreen.cpp | 13 ------------- main/mainscreen.ui | 2 +- src/jceData/Calendar/Exams/examDialog.ui | 15 +++++++++------ .../Calendar/coursesSchedule/calendarDialog.ui | 5 ++++- src/jceData/Grades/graph/gradegraph.ui | 5 ++++- 7 files changed, 25 insertions(+), 27 deletions(-) diff --git a/main/CourseTab/coursestablemanager.cpp b/main/CourseTab/coursestablemanager.cpp index 155ea52..aff749f 100644 --- a/main/CourseTab/coursestablemanager.cpp +++ b/main/CourseTab/coursestablemanager.cpp @@ -17,7 +17,7 @@ coursesTableManager::coursesTableManager(QTableWidget *ptr, user *usrPtr) courseTBL->verticalHeader()->setVisible(false); courseTBL->setSelectionMode(QAbstractItemView::SingleSelection); courseTBL->setShowGrid(true); - courseTBL->setStyleSheet("QTableView {selection-background-color: red;}"); + courseTBL->setStyleSheet("QTableView {selection-background-color: #004080;}"); graph = new gradegraph(ptr); } @@ -56,6 +56,7 @@ void coursesTableManager::setCoursesList(QString &html) gp = new GradePage(html); this->gpCpy = new GradePage(*gp); insertJceCoursesIntoTable(); + this->courseTBL->setCurrentCell(0,0); } /** * @brief coursesTableManager::changes when user changes the table manually it updates it @@ -144,6 +145,7 @@ bool coursesTableManager::changes(QString change, int row, int col) break; } } + this->courseTBL->setCurrentCell(row+1,col); //set focus to next grade return isNumFlag; } diff --git a/main/HelpBox/helpbox.ui b/main/HelpBox/helpbox.ui index 743a8a7..987cf28 100644 --- a/main/HelpBox/helpbox.ui +++ b/main/HelpBox/helpbox.ui @@ -11,7 +11,7 @@ - Help Dialog + JCE Manager @@ -40,7 +40,7 @@ - + <html> <head></head> @@ -127,7 +127,7 @@ - + 0 @@ -135,7 +135,7 @@ - <html><head/><body><p align="center"><span style=" font-size:18pt; font-weight:600; text-decoration: underline;">Help Dialog</span></p></body></html> + <html><head/><body><p><center><img src=":/icons/help.png" height="18" width="18"/><span style=" font-size:18pt; font-weight:600;"> Help Dialog </span><img src=":/icons/help.png" height="18" width="18"/></p></body></html> diff --git a/main/mainscreen.cpp b/main/mainscreen.cpp index d42f611..4acb76a 100644 --- a/main/mainscreen.cpp +++ b/main/mainscreen.cpp @@ -383,19 +383,6 @@ void MainScreen::on_howtoButton_clicked() { helpBox help(this); help.exec(); -// qDebug() << Q_FUNC_INFO; -// QMessageBox::information( -// this,"How To", -// "" -// +tr("Help Guide")+ -// "