MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / AboutDialog

Method AboutDialog

src_gui/aboutdialog.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <QColorDialog>
29
30AboutDialog::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
49AboutDialog::~AboutDialog()
50{

Callers

nothing calls this directly

Calls 1

getUseCustomUiColorsMethod · 0.80

Tested by

no test coverage detected