CommentsView

class CommentsView : public QDialog

The comments view class provides a window to user with title Comments and Accuracy and raating options are provided to correctors and verifiers.

It saves the comments in a json file.

Public Functions

explicit CommentsView(const int &words, const int &chars, const float &wordacc, const float &characc, const QString comments, const QString commentFilename, const QString currentpagename, int rating, const QString avgAcc, const QString role, QString version, QWidget *parent = nullptr)

This class provides a view for showing comments to the users.

It shows the “Words”, “Word Accuracy”, etc. values

Parameters:
  • words

  • chars

  • wordacc

  • characc

  • commentsField

  • commentsFilelocation

  • currentpagename

  • rating

  • avgAcc

  • role

  • version

  • parent

~CommentsView()

Destructor.

Private Slots

void on_pushButton_clicked()

This functions get called when push button is clicked in dialog.

It allows verifier to save the comments and rating in a json file with page details.

Note

Verifier-Version