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
2c160a9b
Commit
2c160a9b
authored
Aug 13, 2010
by
Thomas Hartmann
Browse files
QmlJSEditor: extending IContextPane with a signal
closed() is emitted when the pane is hidden/closed.
parent
bc28e5d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/libs/qmleditorwidgets/contextpanewidget.cpp
View file @
2c160a9b
...
...
@@ -363,6 +363,7 @@ void ContextPaneWidget::onTogglePane()
setLineButton
();
}
else
{
deactivate
();
emit
closed
();
}
}
...
...
src/libs/qmleditorwidgets/contextpanewidget.h
View file @
2c160a9b
...
...
@@ -100,6 +100,7 @@ signals:
void
removeAndChangeProperty
(
const
QString
&
,
const
QString
&
,
const
QVariant
&
,
bool
);
void
pinnedChanged
(
bool
);
void
enabledChanged
(
bool
);
void
closed
();
private
slots
:
void
onDisable
(
bool
);
...
...
src/libs/qmljs/qmljsicontextpane.h
View file @
2c160a9b
...
...
@@ -56,6 +56,8 @@ public:
virtual
void
setEnabled
(
bool
)
=
0
;
virtual
bool
isAvailable
(
TextEditor
::
BaseTextEditorEditable
*
editor
,
Document
::
Ptr
doc
,
const
QmlJS
::
Snapshot
&
snapshot
,
AST
::
Node
*
node
)
=
0
;
virtual
QWidget
*
widget
()
=
0
;
signals:
void
closed
();
};
}
// namespace QmlJS
...
...
src/plugins/qmljseditor/quicktoolbar.cpp
View file @
2c160a9b
...
...
@@ -367,6 +367,7 @@ ContextPaneWidget* QuickToolBar::contextWidget()
connect
(
m_widget
.
data
(),
SIGNAL
(
removeAndChangeProperty
(
QString
,
QString
,
QVariant
,
bool
)),
this
,
SLOT
(
onPropertyRemovedAndChange
(
QString
,
QString
,
QVariant
,
bool
)));
connect
(
m_widget
.
data
(),
SIGNAL
(
enabledChanged
(
bool
)),
this
,
SLOT
(
onEnabledChanged
(
bool
)));
connect
(
m_widget
.
data
(),
SIGNAL
(
pinnedChanged
(
bool
)),
this
,
SLOT
(
onPinnedChanged
(
bool
)));
connect
(
m_widget
.
data
(),
SIGNAL
(
closed
()),
this
,
SIGNAL
(
closed
()));
}
return
m_widget
.
data
();
}
...
...
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