Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikeost committed Mar 18, 2024
1 parent e1b5a51 commit 6944b2d
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 40 deletions.
11 changes: 5 additions & 6 deletions src/StatisticsWindows/gradestatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

GradeStatisticsWindow::GradeStatisticsWindow(QWidget *parent)
: QWidget(parent)
, ui(new Ui::gradeStatistics)
, ui(new Ui::GradeStatisticsWindow)
{
ui->setupUi(this);

Expand Down Expand Up @@ -216,29 +216,28 @@ void GradeStatisticsWindow::on_subjectComboBox_currentIndexChanged(int index)

switch (i) {
case 2:
// you are stupid
if (virtualTable->model()->index(0, 0).data().toInt() != NULL) {
if (virtualTable->model()->index(0, 0).data().toInt() != 0) {
series->append("Незадовільно ["
+ virtualTable->model()->index(0, 0).data().toString() + "]",
virtualTable->model()->index(0, 0).data().toInt());
}
break;
case 3:
if (virtualTable->model()->index(0, 0).data().toInt() != NULL) {
if (virtualTable->model()->index(0, 0).data().toInt() != 0) {
series->append("Задовільно ["
+ virtualTable->model()->index(0, 0).data().toString() + "]",
virtualTable->model()->index(0, 0).data().toInt());
}
break;
case 4:
if (virtualTable->model()->index(0, 0).data().toInt() != NULL) {
if (virtualTable->model()->index(0, 0).data().toInt() != 0) {
series->append("Добре [" + virtualTable->model()->index(0, 0).data().toString()
+ "]",
virtualTable->model()->index(0, 0).data().toInt());
}
break;
case 5:
if (virtualTable->model()->index(0, 0).data().toInt() != NULL) {
if (virtualTable->model()->index(0, 0).data().toInt() != 0) {
series->append("Відмінно ["
+ virtualTable->model()->index(0, 0).data().toString() + "]",
virtualTable->model()->index(0, 0).data().toInt());
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/gradestatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QWidget>

namespace Ui {
class gradeStatistics;
class GradeStatisticsWindow;
}

class GradeStatisticsWindow : public QWidget
Expand All @@ -34,7 +34,7 @@ private slots:
void on_subjectComboBox_currentIndexChanged(int index);

private:
Ui::gradeStatistics *ui;
Ui::GradeStatisticsWindow *ui;

QChartView *chartView;
QChart *chart;
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/gradestatistics.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>gradeStatistics</class>
<widget class="QWidget" name="gradeStatistics">
<class>GradeStatisticsWindow</class>
<widget class="QWidget" name="GradeStatisticsWindow">
<property name="geometry">
<rect>
<x>0</x>
Expand Down
2 changes: 1 addition & 1 deletion src/StatisticsWindows/groupstatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

GroupStatisticsWindow::GroupStatisticsWindow(QWidget *parent)
: QWidget(parent)
, ui(new Ui::groupStatistics)
, ui(new Ui::GroupStatisticsWindow)
{
ui->setupUi(this);

Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/groupstatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QWidget>

namespace Ui {
class groupStatistics;
class GroupStatisticsWindow;
}

class GroupStatisticsWindow : public QWidget
Expand All @@ -27,7 +27,7 @@ private slots:
void clearPieChart();

private:
Ui::groupStatistics *ui;
Ui::GroupStatisticsWindow *ui;

QChartView *chartView;
QChart *chart;
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/groupstatistics.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>groupStatistics</class>
<widget class="QWidget" name="groupStatistics">
<class>GroupStatisticsWindow</class>
<widget class="QWidget" name="GroupStatisticsWindow">
<property name="geometry">
<rect>
<x>0</x>
Expand Down
2 changes: 1 addition & 1 deletion src/StatisticsWindows/studentstatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

StudentStatisticsWindow::StudentStatisticsWindow(QWidget *parent)
: QWidget(parent)
, ui(new Ui::studentStatistics)
, ui(new Ui::StudentStatisticsWindow)
{
ui->setupUi(this);

Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/studentstatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QWidget>

namespace Ui {
class studentStatistics;
class StudentStatisticsWindow;
}

class StudentStatisticsWindow : public QWidget
Expand All @@ -32,7 +32,7 @@ private slots:
void setCurrentChart();

private:
Ui::studentStatistics *ui;
Ui::StudentStatisticsWindow *ui;

QChartView *chartView;
QChart *chart;
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/studentstatistics.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>studentStatistics</class>
<widget class="QWidget" name="studentStatistics">
<class>StudentStatisticsWindow</class>
<widget class="QWidget" name="StudentStatisticsWindow">
<property name="geometry">
<rect>
<x>0</x>
Expand Down
2 changes: 1 addition & 1 deletion src/StatisticsWindows/subjectstatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

SubjectStatisticsWindow::SubjectStatisticsWindow(QWidget *parent)
: QWidget(parent)
, ui(new Ui::subjectStatistics)
, ui(new Ui::SubjectStatisticsWindow)
{
ui->setupUi(this);
setWindowTitle("Статистика предметів по типам");
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/subjectstatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QWidget>

namespace Ui {
class subjectStatistics;
class SubjectStatisticsWindow;
}

class SubjectStatisticsWindow : public QWidget
Expand All @@ -28,7 +28,7 @@ private slots:
void setSystemUI();

private:
Ui::subjectStatistics *ui;
Ui::SubjectStatisticsWindow *ui;

QChartView *chartView;
QChart *chart;
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/subjectstatistics.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>subjectStatistics</class>
<widget class="QWidget" name="subjectStatistics">
<class>SubjectStatisticsWindow</class>
<widget class="QWidget" name="SubjectStatisticsWindow">
<property name="geometry">
<rect>
<x>0</x>
Expand Down
2 changes: 1 addition & 1 deletion src/StatisticsWindows/teacherstatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

TeacherStatisticsWindow::TeacherStatisticsWindow(QWidget *parent)
: QWidget(parent)
, ui(new Ui::teacherStatistics)
, ui(new Ui::TeacherStatisticsWindow)
{
ui->setupUi(this);
setWindowTitle("Статистика викладачів по категоріям");
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/teacherstatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QWidget>

namespace Ui {
class teacherStatistics;
class TeacherStatisticsWindow;
}

class TeacherStatisticsWindow : public QWidget
Expand All @@ -28,7 +28,7 @@ private slots:
void setSystemUI();

private:
Ui::teacherStatistics *ui;
Ui::TeacherStatisticsWindow *ui;

QChartView *chartView;
QChart *chart;
Expand Down
4 changes: 2 additions & 2 deletions src/StatisticsWindows/teacherstatistics.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>teacherStatistics</class>
<widget class="QWidget" name="teacherStatistics">
<class>TeacherStatisticsWindow</class>
<widget class="QWidget" name="TeacherStatisticsWindow">
<property name="geometry">
<rect>
<x>0</x>
Expand Down
10 changes: 5 additions & 5 deletions src/styles/black/StatisticsWindows/StatisticsWindows.qss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
gradeStatistics,
groupStatistics,
studentStatistics,
subjectStatistics,
teacherStatistics
GradeStatisticsWindow,
GroupStatisticsWindow,
StudentStatisticsWindow,
SubjectStatisticsWindow,
TeacherStatisticsWindow
{
background-color: rgb(39, 41, 42);
}
Expand Down
10 changes: 5 additions & 5 deletions src/styles/white/StatisticsWindows/StatisticsWindows.qss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
gradeStatistics,
groupStatistics,
studentStatistics,
subjectStatistics,
teacherStatistics
GradeStatisticsWindow,
GroupStatisticsWindow,
StudentStatisticsWindow,
SubjectStatisticsWindow,
TeacherStatisticsWindow
{
background-color: rgb(231, 224, 223);
}
Expand Down

0 comments on commit 6944b2d

Please sign in to comment.