Changeset View
Changeset View
Standalone View
Standalone View
addons/gdbplugin/advanced_settings.cpp
Show All 25 Lines | |||||
26 | #endif | 26 | #endif | ||
27 | 27 | | |||
28 | #include <QFileDialog> | 28 | #include <QFileDialog> | ||
29 | 29 | | |||
30 | AdvancedGDBSettings::AdvancedGDBSettings(QWidget *parent) : QDialog(parent) | 30 | AdvancedGDBSettings::AdvancedGDBSettings(QWidget *parent) : QDialog(parent) | ||
31 | { | 31 | { | ||
32 | setupUi(this); | 32 | setupUi(this); | ||
33 | u_gdbBrowse->setIcon(QIcon::fromTheme(QStringLiteral("application-x-ms-dos-executable"))); | 33 | u_gdbBrowse->setIcon(QIcon::fromTheme(QStringLiteral("application-x-ms-dos-executable"))); | ||
34 | connect(u_gdbBrowse, SIGNAL(clicked()), this, SLOT(slotBrowseGDB())); | 34 | connect(u_gdbBrowse, &QToolButton::clicked, this, &AdvancedGDBSettings::slotBrowseGDB); | ||
35 | 35 | | |||
36 | u_setSoPrefix->setIcon(QIcon::fromTheme(QStringLiteral("folder"))); | 36 | u_setSoPrefix->setIcon(QIcon::fromTheme(QStringLiteral("folder"))); | ||
37 | connect(u_setSoPrefix, SIGNAL(clicked()), this, SLOT(slotSetSoPrefix())); | 37 | connect(u_setSoPrefix, &QToolButton::clicked, this, &AdvancedGDBSettings::slotSetSoPrefix); | ||
38 | 38 | | |||
39 | u_addSoSearchPath->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | 39 | u_addSoSearchPath->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | ||
40 | u_delSoSearchPath->setIcon(QIcon::fromTheme(QStringLiteral("list-remove"))); | 40 | u_delSoSearchPath->setIcon(QIcon::fromTheme(QStringLiteral("list-remove"))); | ||
41 | connect(u_addSoSearchPath, SIGNAL(clicked()), this, SLOT(slotAddSoPath())); | 41 | connect(u_addSoSearchPath, &QToolButton::clicked, this, &AdvancedGDBSettings::slotAddSoPath); | ||
42 | connect(u_delSoSearchPath, SIGNAL(clicked()), this, SLOT(slotDelSoPath())); | 42 | connect(u_delSoSearchPath, &QToolButton::clicked, this, &AdvancedGDBSettings::slotDelSoPath); | ||
43 | 43 | | |||
44 | u_addSrcPath->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | 44 | u_addSrcPath->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); | ||
45 | u_delSrcPath->setIcon(QIcon::fromTheme(QStringLiteral("list-remove"))); | 45 | u_delSrcPath->setIcon(QIcon::fromTheme(QStringLiteral("list-remove"))); | ||
46 | connect(u_addSrcPath, SIGNAL(clicked()), this, SLOT(slotAddSrcPath())); | 46 | connect(u_addSrcPath, &QToolButton::clicked, this, &AdvancedGDBSettings::slotAddSrcPath); | ||
47 | connect(u_delSrcPath, SIGNAL(clicked()), this, SLOT(slotDelSrcPath())); | 47 | connect(u_delSrcPath, &QToolButton::clicked, this, &AdvancedGDBSettings::slotDelSrcPath); | ||
48 | 48 | | |||
49 | connect(u_buttonBox, SIGNAL(accepted()), this, SLOT(accept())); | 49 | connect(u_buttonBox, &QDialogButtonBox::accepted, this, &AdvancedGDBSettings::accept); | ||
50 | connect(u_buttonBox, SIGNAL(rejected()), this, SLOT(reject())); | 50 | connect(u_buttonBox, &QDialogButtonBox::rejected, this, &AdvancedGDBSettings::reject); | ||
51 | 51 | | |||
52 | connect(u_localRemote, SIGNAL(activated(int)), this, SLOT(slotLocalRemoteChanged())); | 52 | connect(u_localRemote, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &AdvancedGDBSettings::slotLocalRemoteChanged); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | AdvancedGDBSettings::~AdvancedGDBSettings() | 55 | AdvancedGDBSettings::~AdvancedGDBSettings() | ||
56 | { | 56 | { | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | const QStringList AdvancedGDBSettings::configs() const | 59 | const QStringList AdvancedGDBSettings::configs() const | ||
60 | { | 60 | { | ||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |