Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9e937b59
Commit
9e937b59
authored
Apr 21, 2010
by
Tobias Hunger
Browse files
Remove unused parameter
Reviewed-by: dt
parent
12b0933d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/environmenteditmodel.cpp
View file @
9e937b59
...
...
@@ -423,8 +423,8 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, QWidget *additionalDetails
this
,
SLOT
(
removeEnvironmentButtonClicked
()));
connect
(
m_unsetButton
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
unsetEnvironmentButtonClicked
()));
connect
(
m_environmentTreeView
->
selectionModel
(),
SIGNAL
(
currentChanged
(
QModelIndex
,
QModelIndex
)),
this
,
SLOT
(
environmentCurrentIndexChanged
(
QModelIndex
,
QModelIndex
)));
connect
(
m_environmentTreeView
->
selectionModel
(),
SIGNAL
(
currentChanged
(
QModelIndex
,
QModelIndex
)),
this
,
SLOT
(
environmentCurrentIndexChanged
(
QModelIndex
)));
connect
(
m_model
,
SIGNAL
(
userChangesChanged
()),
this
,
SLOT
(
updateSummaryText
()));
}
...
...
@@ -488,7 +488,7 @@ void EnvironmentWidget::updateSummaryText()
void
EnvironmentWidget
::
updateButtons
()
{
environmentCurrentIndexChanged
(
m_environmentTreeView
->
currentIndex
()
,
QModelIndex
()
);
environmentCurrentIndexChanged
(
m_environmentTreeView
->
currentIndex
());
}
void
EnvironmentWidget
::
editEnvironmentButtonClicked
()
...
...
@@ -523,9 +523,8 @@ void EnvironmentWidget::unsetEnvironmentButtonClicked()
updateButtons
();
}
void
EnvironmentWidget
::
environmentCurrentIndexChanged
(
const
QModelIndex
&
current
,
const
QModelIndex
&
previous
)
void
EnvironmentWidget
::
environmentCurrentIndexChanged
(
const
QModelIndex
&
current
)
{
Q_UNUSED
(
previous
)
if
(
current
.
isValid
())
{
m_editButton
->
setEnabled
(
true
);
const
QString
&
name
=
m_model
->
indexToVariable
(
current
);
...
...
src/plugins/projectexplorer/environmenteditmodel.h
View file @
9e937b59
...
...
@@ -121,7 +121,7 @@ private slots:
void
addEnvironmentButtonClicked
();
void
removeEnvironmentButtonClicked
();
void
unsetEnvironmentButtonClicked
();
void
environmentCurrentIndexChanged
(
const
QModelIndex
&
current
,
const
QModelIndex
&
previous
);
void
environmentCurrentIndexChanged
(
const
QModelIndex
&
current
);
void
updateSummaryText
();
void
renamedVariable
(
const
QString
&
name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment