Skip to content
GitLab
Menu
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
79f244c2
Commit
79f244c2
authored
Dec 04, 2008
by
con
Browse files
Fixes: - Give method combo box the current item as tool tip as well
parent
31d8116f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
79f244c2
...
...
@@ -206,6 +206,7 @@ void CPPEditor::createToolBar(CPPEditorEditable *editable)
connect
(
m_methodCombo
,
SIGNAL
(
activated
(
int
)),
this
,
SLOT
(
jumpToMethod
(
int
)));
connect
(
this
,
SIGNAL
(
cursorPositionChanged
()),
this
,
SLOT
(
updateMethodBoxIndex
()));
connect
(
m_methodCombo
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
updateMethodBoxToolTip
()));
connect
(
file
(),
SIGNAL
(
changed
()),
this
,
SLOT
(
updateFileName
()));
...
...
@@ -355,10 +356,16 @@ void CPPEditor::updateMethodBoxIndex()
if
(
lastIndex
.
isValid
())
{
bool
blocked
=
m_methodCombo
->
blockSignals
(
true
);
m_methodCombo
->
setCurrentIndex
(
lastIndex
.
row
());
updateMethodBoxToolTip
();
(
void
)
m_methodCombo
->
blockSignals
(
blocked
);
}
}
void
CPPEditor
::
updateMethodBoxToolTip
()
{
m_methodCombo
->
setToolTip
(
m_methodCombo
->
currentText
());
}
static
bool
isCompatible
(
Name
*
name
,
Name
*
otherName
)
{
if
(
NameId
*
nameId
=
name
->
asNameId
())
{
...
...
src/plugins/cppeditor/cppeditor.h
View file @
79f244c2
...
...
@@ -115,7 +115,7 @@ private slots:
void
updateFileName
();
void
jumpToMethod
(
int
index
);
void
updateMethodBoxIndex
();
void
updateMethodBoxToolTip
();
void
onDocumentUpdated
(
CPlusPlus
::
Document
::
Ptr
doc
);
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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