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
24bcbaef
Commit
24bcbaef
authored
Oct 15, 2009
by
Roberto Raggi
Browse files
Don't use modality to inform the user about the dangerous world of code refactoring.
parent
f92b1428
Changes
3
Show whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
24bcbaef
...
...
@@ -571,6 +571,8 @@ CPPEditor::CPPEditor(QWidget *parent)
CPPEditor
::~
CPPEditor
()
{
Core
::
EditorManager
::
instance
()
->
hideEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
));
m_semanticHighlighter
->
abort
();
m_semanticHighlighter
->
wait
();
}
...
...
@@ -763,13 +765,18 @@ void CPPEditor::renameUsages()
Core
::
EditorManager
::
instance
()
->
showEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
),
tr
(
"This change cannot be undone."
),
tr
(
"Yes, I know what I am doing."
),
this
,
SLOT
(
renameUsagesNow
()));
this
,
SLOT
(
hideRenameNotification
()));
renameUsagesNow
();
}
void
CPPEditor
::
hideRenameNotification
()
{
Core
::
EditorManager
::
instance
()
->
hideEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
));
}
void
CPPEditor
::
renameUsagesNow
()
{
if
(
Symbol
*
canonicalSymbol
=
markSymbols
())
{
Core
::
EditorManager
::
instance
()
->
hideEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
));
m_modelManager
->
renameUsages
(
canonicalSymbol
);
}
}
...
...
src/plugins/cppeditor/cppeditor.h
View file @
24bcbaef
...
...
@@ -196,6 +196,7 @@ public Q_SLOTS:
void
renameUsages
();
void
findUsages
();
void
renameUsagesNow
();
void
hideRenameNotification
();
protected:
bool
event
(
QEvent
*
e
);
...
...
src/plugins/cpptools/cppfindreferences.cpp
View file @
24bcbaef
...
...
@@ -682,6 +682,8 @@ static void applyChanges(QTextDocument *doc, const QString &text, const QList<Fi
void
CppFindReferences
::
onReplaceButtonClicked
(
const
QString
&
text
,
const
QList
<
Find
::
SearchResultItem
>
&
items
)
{
Core
::
EditorManager
::
instance
()
->
hideEditorInfoBar
(
QLatin1String
(
"CppEditor.Rename"
));
if
(
text
.
isEmpty
())
return
;
...
...
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