| 28 | #include <QColorDialog> |
| 29 | |
| 30 | AboutDialog::AboutDialog(QWidget *parent, MainWindow *mainwindow) : |
| 31 | QDialog(parent), |
| 32 | mainwindow(mainwindow), |
| 33 | ui(new Ui::AboutDialog) |
| 34 | { |
| 35 | ui->setupUi(this); |
| 36 | |
| 37 | connect(ui->pushButton_sourcecode, SIGNAL(clicked()), this, SLOT(openSourcecodeLink())); |
| 38 | connect(ui->pushButton_latestVersion, SIGNAL(clicked()), this, SLOT(openLatestVersionLink())); |
| 39 | |
| 40 | connect(ui->radioButton_useCustomColors, SIGNAL(toggled(bool)), mainwindow, SLOT(setUseCustomUiColors(bool))); |
| 41 | connect(ui->pushButton_mainColor, SIGNAL(clicked()), this, SLOT(showMainColorDialog())); |
| 42 | connect(ui->pushButton_textColor, SIGNAL(clicked()), this, SLOT(showTextColorDialog())); |
| 43 | connect(ui->pushButton_graphicsViewColor, SIGNAL(clicked()), this, SLOT(showGraphicsViewColorDialog())); |
| 44 | connect(ui->pushButton_resetColorsToDefault, SIGNAL(clicked()), mainwindow, SLOT(resetUiColors())); |
| 45 | |
| 46 | ui->radioButton_useCustomColors->setChecked(mainwindow->getUseCustomUiColors()); |
| 47 | } |
| 48 | |
| 49 | AboutDialog::~AboutDialog() |
| 50 | { |
nothing calls this directly
no test coverage detected