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
Tobias Hunger
qt-creator
Commits
4f4bbe98
Commit
4f4bbe98
authored
Mar 26, 2010
by
con
Browse files
Change contextChanged signal to also notify about additional contexts.
parent
7daeffbd
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/plugins/bookmarks/bookmarkmanager.cpp
View file @
4f4bbe98
...
...
@@ -321,7 +321,7 @@ BookmarkManager::BookmarkManager() :
m_bookmarkIcon
(
QLatin1String
(
":/bookmarks/images/bookmark.png"
)),
m_selectionModel
(
new
QItemSelectionModel
(
this
,
this
))
{
connect
(
Core
::
ICore
::
instance
(),
SIGNAL
(
contextChanged
(
Core
::
IContext
*
)),
connect
(
Core
::
ICore
::
instance
(),
SIGNAL
(
contextChanged
(
Core
::
IContext
*
,
QList
<
int
>
)),
this
,
SLOT
(
updateActionStatus
()));
connect
(
ProjectExplorerPlugin
::
instance
()
->
session
(),
SIGNAL
(
sessionLoaded
()),
...
...
src/plugins/coreplugin/filemanager.cpp
View file @
4f4bbe98
...
...
@@ -149,7 +149,7 @@ FileManager::FileManager(QMainWindow *mw)
this
,
SLOT
(
changedFile
(
QString
)));
connect
(
d
->
m_mainWindow
,
SIGNAL
(
windowActivated
()),
this
,
SLOT
(
mainWindowActivated
()));
connect
(
core
,
SIGNAL
(
contextChanged
(
Core
::
IContext
*
)),
connect
(
core
,
SIGNAL
(
contextChanged
(
Core
::
IContext
*
,
QList
<
int
>
)),
this
,
SLOT
(
syncWithEditor
(
Core
::
IContext
*
)));
const
QSettings
*
s
=
core
->
settings
();
...
...
src/plugins/coreplugin/icore.cpp
View file @
4f4bbe98
...
...
@@ -374,7 +374,7 @@
*/
/*!
\fn void ICore::contextChanged(Core::IContext *context)
\fn void ICore::contextChanged(Core::IContext *context
, const QList<int> &additionalContexts
)
\brief Sent just after a new \a context became the current context
(meaning that its widget got focus).
(meaning that its widget got focus)
, or if the additional context ids changed
.
*/
src/plugins/coreplugin/icore.h
View file @
4f4bbe98
...
...
@@ -124,7 +124,7 @@ signals:
void
optionsDialogRequested
();
void
coreAboutToClose
();
void
contextAboutToChange
(
Core
::
IContext
*
context
);
void
contextChanged
(
Core
::
IContext
*
context
);
void
contextChanged
(
Core
::
IContext
*
context
,
const
QList
<
int
>
&
additionalContexts
);
};
}
// namespace Core
...
...
src/plugins/coreplugin/mainwindow.cpp
View file @
4f4bbe98
...
...
@@ -1096,7 +1096,6 @@ void MainWindow::updateContextObject(IContext *context)
if
(
debugMainWindow
)
qDebug
()
<<
"new context object ="
<<
context
<<
(
context
?
context
->
widget
()
:
0
)
<<
(
context
?
context
->
widget
()
->
metaObject
()
->
className
()
:
0
);
emit
m_coreImpl
->
contextChanged
(
context
);
}
}
...
...
@@ -1215,6 +1214,7 @@ void MainWindow::updateContext()
}
m_actionManager
->
setContext
(
uniquecontexts
);
emit
m_coreImpl
->
contextChanged
(
m_activeContext
,
m_additionalContexts
);
}
void
MainWindow
::
aboutToShowRecentFiles
()
...
...
src/plugins/vcsbase/vcsbaseplugin.cpp
View file @
4f4bbe98
...
...
@@ -173,7 +173,7 @@ StateListener::StateListener(QObject *parent) :
QObject
(
parent
)
{
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
connect
(
core
,
SIGNAL
(
contextChanged
(
Core
::
IContext
*
)),
connect
(
core
,
SIGNAL
(
contextChanged
(
Core
::
IContext
*
,
QList
<
int
>
)),
this
,
SLOT
(
slotStateChanged
()));
connect
(
core
->
fileManager
(),
SIGNAL
(
currentFileChanged
(
QString
)),
this
,
SLOT
(
slotStateChanged
()));
...
...
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