Files
qt-creator/src/plugins/designer/qtcreatorintegration.h

43 lines
1.2 KiB
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
2008-12-02 15:08:31 +01:00
#pragma once
2008-12-02 12:01:29 +01:00
#include <QtGlobal>
#include <QDesignerIntegration>
2008-12-02 12:01:29 +01:00
QT_FORWARD_DECLARE_CLASS(QUrl)
2008-12-02 12:01:29 +01:00
namespace Designer {
namespace Internal {
class QtCreatorIntegration : public QDesignerIntegration
{
2008-12-02 12:01:29 +01:00
Q_OBJECT
2008-12-02 12:01:29 +01:00
public:
explicit QtCreatorIntegration(QDesignerFormEditorInterface *core, QObject *parent = nullptr);
2008-12-02 12:01:29 +01:00
QWidget *containerWindow(QWidget *widget) const override;
2008-12-02 12:01:29 +01:00
bool supportsToSlotNavigation() { return true; }
void updateSelection() override;
signals:
void creatorHelpRequested(const QUrl &url);
2008-12-02 12:01:29 +01:00
private:
void slotNavigateToSlot(const QString &objectName, const QString &signalSignature, const QStringList &parameterNames);
void slotDesignerHelpRequested(const QString &manual, const QString &document);
void slotSyncSettingsToDesigner();
bool navigateToSlot(const QString &objectName,
const QString &signalSignature,
const QStringList &parameterNames,
QString *errorMessage);
2008-12-02 12:01:29 +01:00
};
} // namespace Internal
} // namespace Designer