Changeset View
Changeset View
Standalone View
Standalone View
addons/gdbplugin/configview.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 48 | { | |||
---|---|---|---|---|---|
111 | m_useBottomLayout = false; | 111 | m_useBottomLayout = false; | ||
112 | resizeEvent(nullptr); | 112 | resizeEvent(nullptr); | ||
113 | m_useBottomLayout = true; | 113 | m_useBottomLayout = true; | ||
114 | resizeEvent(nullptr); | 114 | resizeEvent(nullptr); | ||
115 | 115 | | |||
116 | m_advanced = new AdvancedGDBSettings(this); | 116 | m_advanced = new AdvancedGDBSettings(this); | ||
117 | m_advanced->hide(); | 117 | m_advanced->hide(); | ||
118 | 118 | | |||
119 | connect(m_targetCombo, SIGNAL(editTextChanged(QString)), this, SLOT(slotTargetEdited(QString))); | 119 | connect(m_targetCombo, &QComboBox::editTextChanged, this, &ConfigView::slotTargetEdited); | ||
120 | connect(m_targetCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(slotTargetSelected(int))); | 120 | connect(m_targetCombo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ConfigView::slotTargetSelected); | ||
121 | connect(m_addTarget, SIGNAL(clicked()), this, SLOT(slotAddTarget())); | 121 | connect(m_addTarget, &QToolButton::clicked, this, &ConfigView::slotAddTarget); | ||
122 | connect(m_copyTarget, SIGNAL(clicked()), this, SLOT(slotCopyTarget())); | 122 | connect(m_copyTarget, &QToolButton::clicked, this, &ConfigView::slotCopyTarget); | ||
123 | connect(m_deleteTarget, SIGNAL(clicked()), this, SLOT(slotDeleteTarget())); | 123 | connect(m_deleteTarget, &QToolButton::clicked, this, &ConfigView::slotDeleteTarget); | ||
124 | connect(m_browseExe, SIGNAL(clicked()), this, SLOT(slotBrowseExec())); | 124 | connect(m_browseExe, &QToolButton::clicked, this, &ConfigView::slotBrowseExec); | ||
125 | connect(m_browseDir, SIGNAL(clicked()), this, SLOT(slotBrowseDir())); | 125 | connect(m_browseDir, &QToolButton::clicked, this, &ConfigView::slotBrowseDir); | ||
126 | connect(m_redirectTerminal, SIGNAL(toggled(bool)), this, SIGNAL(showIO(bool))); | 126 | connect(m_redirectTerminal, &QCheckBox::toggled, this, &ConfigView::showIO); | ||
127 | connect(m_advancedSettings, SIGNAL(clicked()), this, SLOT(slotAdvancedClicked())); | 127 | connect(m_advancedSettings, &QPushButton::clicked, this, &ConfigView::slotAdvancedClicked); | ||
128 | } | 128 | } | ||
129 | 129 | | |||
130 | ConfigView::~ConfigView() | 130 | ConfigView::~ConfigView() | ||
131 | { | 131 | { | ||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | void ConfigView::registerActions(KActionCollection* actionCollection) | 134 | void ConfigView::registerActions(KActionCollection* actionCollection) | ||
135 | { | 135 | { | ||
136 | m_targetSelectAction = actionCollection->add<KSelectAction>(QStringLiteral("targets")); | 136 | m_targetSelectAction = actionCollection->add<KSelectAction>(QStringLiteral("targets")); | ||
137 | m_targetSelectAction->setText(i18n("Targets")); | 137 | m_targetSelectAction->setText(i18n("Targets")); | ||
138 | connect(m_targetSelectAction, SIGNAL(triggered(int)), | 138 | connect(m_targetSelectAction, static_cast<void (KSelectAction::*)(int)>(&KSelectAction::triggered), | ||
139 | this, SLOT(slotTargetSelected(int))); | 139 | this, &ConfigView::slotTargetSelected); | ||
140 | } | 140 | } | ||
141 | 141 | | |||
142 | void ConfigView::readConfig(const KConfigGroup& group) | 142 | void ConfigView::readConfig(const KConfigGroup& group) | ||
143 | { | 143 | { | ||
144 | m_targetCombo->clear(); | 144 | m_targetCombo->clear(); | ||
145 | 145 | | |||
146 | int version = group.readEntry(QStringLiteral("version"), 4); | 146 | int version = group.readEntry(QStringLiteral("version"), 4); | ||
147 | int targetCount = group.readEntry(QStringLiteral("targetCount"), 1); | 147 | int targetCount = group.readEntry(QStringLiteral("targetCount"), 1); | ||
▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines |