forked from qt-creator/qt-creator
VCS: Replace QToolButtons in VCS toolbar with QActions
Change VcsBaseEditorParameterWidget to add actions/widgets to an existing toolbar, instead of being a widget itself. The class is renamed in a follow-up commit. Task-number: QTCREATORBUG-14934 Change-Id: I473a439d12a096f4cbb64f06faa0598ee72000de Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
6cd68d5401
commit
2c6adc1e74
@@ -39,6 +39,7 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QFileInfo;
|
||||
class QProcessEnvironment;
|
||||
class QToolBar;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Core { class Id; }
|
||||
@@ -223,7 +224,7 @@ protected:
|
||||
|
||||
virtual QStringList revisionSpec(const QString &revision) const = 0;
|
||||
|
||||
typedef std::function<VcsBaseEditorParameterWidget *()> ParameterWidgetCreator;
|
||||
typedef std::function<VcsBaseEditorParameterWidget *(QToolBar *)> ParameterWidgetCreator;
|
||||
void setDiffParameterWidgetCreator(ParameterWidgetCreator creator);
|
||||
void setLogParameterWidgetCreator(ParameterWidgetCreator creator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user