PdfRangeDialog

class PdfRangeDialog : public QDialog

Public Functions

explicit PdfRangeDialog(QWidget *parent = nullptr, int numOfPages = INT_MAX, int maxLimit = 100)

This class is responsible for showing the PDF range dialog whose maximum value can be restricted by specifying the maxLimit parameter in the constructor.

Parameters:
  • parent

  • numOfPages

  • maxLimit

~PdfRangeDialog()

Deletes the UI object(s)

bool isOkClicked()

Returns true if ok button is clicked and false otherwise.

Returns:

bool okClicked

int getStartPage() const

It returns the start page from which the PDF should be printed.

It returns the end page to which the PDF should be printed.

Returns:

int startPage

bool on_checkBox_clicked()

PdfRangeDialog::on_checkBox_clicked.

Checks whether the user wants to print the empty pages in pdf or not.

Returns:

Private Slots

void on_button_Cancel_clicked()

Marks the okClicked flag as false.

void on_button_Ok_clicked()

Gets the start page and end page from the spinBox widget and stores them in the data members.