forked from qt-creator/qt-creator
Add missing "final" to unexported/unshared classes
Change-Id: I84d5fc39d7ef5588a20545854d0cfd0b993db090 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -100,7 +100,7 @@ signals:
|
||||
void lockedStateChanged(QQuick3DNode *node);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) final;
|
||||
|
||||
private:
|
||||
void handlePendingToolStateUpdate();
|
||||
|
@@ -441,7 +441,7 @@ ComponentCompleteDisabler::~ComponentCompleteDisabler()
|
||||
class QrcEngineHandler : public QAbstractFileEngineHandler
|
||||
{
|
||||
public:
|
||||
QAbstractFileEngine *create(const QString &fileName) const;
|
||||
QAbstractFileEngine *create(const QString &fileName) const final;
|
||||
};
|
||||
|
||||
QAbstractFileEngine *QrcEngineHandler::create(const QString &fileName) const
|
||||
|
@@ -82,7 +82,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
bool preVisit(Symbol *s)
|
||||
bool preVisit(Symbol *s) final
|
||||
{
|
||||
if (s->line() < line || (s->line() == line && s->column() <= column)) {
|
||||
// skip blocks
|
||||
|
@@ -78,12 +78,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
QRectF boundingRect() const
|
||||
QRectF boundingRect() const final
|
||||
{
|
||||
return QRectF(0.0, 0.0, 20.0, 20.0);
|
||||
}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(widget)
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final
|
||||
{
|
||||
QMT_ASSERT(option, return);
|
||||
|
||||
|
@@ -60,7 +60,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final
|
||||
{
|
||||
QMT_ASSERT(option, return);
|
||||
|
||||
|
@@ -68,7 +68,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void visitDInheritance(const DInheritance *inheritance)
|
||||
void visitDInheritance(const DInheritance *inheritance) final
|
||||
{
|
||||
DObject *baseObject = m_diagramSceneModel->diagramController()->findElement<DObject>(inheritance->base(), m_diagramSceneModel->diagram());
|
||||
QMT_ASSERT(baseObject, return);
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
m_arrow->setPoints(m_points);
|
||||
}
|
||||
|
||||
void visitDDependency(const DDependency *dependency)
|
||||
void visitDDependency(const DDependency *dependency) final
|
||||
{
|
||||
ArrowItem::Head endAHead = ArrowItem::HeadNone;
|
||||
ArrowItem::Head endBHead = ArrowItem::HeadNone;
|
||||
@@ -126,7 +126,7 @@ public:
|
||||
m_arrow->setPoints(m_points);
|
||||
}
|
||||
|
||||
void visitDAssociation(const DAssociation *association)
|
||||
void visitDAssociation(const DAssociation *association) final
|
||||
{
|
||||
m_arrow->setShaft(ArrowItem::ShaftSolid);
|
||||
m_arrow->setArrowSize(12.0);
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
m_arrow->setPoints(m_points);
|
||||
}
|
||||
|
||||
void visitDConnection(const DConnection *connection)
|
||||
void visitDConnection(const DConnection *connection) final
|
||||
{
|
||||
|
||||
ArrowItem::Shaft shaft = ArrowItem::ShaftSolid;
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
QString identifier() const { return m_identifier; }
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(widget)
|
||||
@@ -64,12 +64,12 @@ public:
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
if (contains(event->pos()))
|
||||
m_alignable->align(m_alignType, m_identifier);
|
||||
|
@@ -81,7 +81,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
m_startPos = event->scenePos();
|
||||
m_lastPos = m_startPos;
|
||||
@@ -90,14 +90,14 @@ protected:
|
||||
setFocus();
|
||||
}
|
||||
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
m_lastPos = event->scenePos();
|
||||
QPointF delta = m_lastPos - m_startPos;
|
||||
m_owner->moveHandle(m_pointIndex, delta, Move, m_qualifier);
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
m_lastPos = event->scenePos();
|
||||
QPointF delta = m_lastPos - m_startPos;
|
||||
@@ -105,7 +105,7 @@ protected:
|
||||
clearFocus();
|
||||
}
|
||||
|
||||
void keyPressEvent(QKeyEvent *event)
|
||||
void keyPressEvent(QKeyEvent *event) final
|
||||
{
|
||||
m_owner->keyPressed(m_pointIndex, event, m_lastPos);
|
||||
}
|
||||
|
@@ -64,21 +64,21 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
m_startPos = mapToScene(event->pos());
|
||||
if (!m_isSecondarySelected)
|
||||
m_owner->moveHandle(m_handle, QPointF(0.0, 0.0), Press, None);
|
||||
}
|
||||
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
QPointF pos = mapToScene(event->pos()) - m_startPos;
|
||||
if (!m_isSecondarySelected)
|
||||
m_owner->moveHandle(m_handle, pos, Move, None);
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) final
|
||||
{
|
||||
QPointF pos = mapToScene(event->pos()) - m_startPos;
|
||||
if (!m_isSecondarySelected)
|
||||
|
@@ -78,20 +78,20 @@ public:
|
||||
|
||||
ModelItem *product() const { return m_item; }
|
||||
|
||||
void visitMElement(const MElement *element)
|
||||
void visitMElement(const MElement *element) final
|
||||
{
|
||||
Q_UNUSED(element)
|
||||
QMT_CHECK(false);
|
||||
}
|
||||
|
||||
void visitMObject(const MObject *object)
|
||||
void visitMObject(const MObject *object) final
|
||||
{
|
||||
Q_UNUSED(object)
|
||||
QMT_ASSERT(m_item, return);
|
||||
m_item->setEditable(false);
|
||||
}
|
||||
|
||||
void visitMPackage(const MPackage *package)
|
||||
void visitMPackage(const MPackage *package) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
visitMObject(package);
|
||||
}
|
||||
|
||||
void visitMClass(const MClass *klass)
|
||||
void visitMClass(const MClass *klass) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
visitMObject(klass);
|
||||
}
|
||||
|
||||
void visitMComponent(const MComponent *component)
|
||||
void visitMComponent(const MComponent *component) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -126,13 +126,13 @@ public:
|
||||
visitMObject(component);
|
||||
}
|
||||
|
||||
void visitMDiagram(const MDiagram *diagram)
|
||||
void visitMDiagram(const MDiagram *diagram) final
|
||||
{
|
||||
visitMObject(diagram);
|
||||
m_item->setData(TreeModel::Diagram, TreeModel::RoleItemType);
|
||||
}
|
||||
|
||||
void visitMCanvasDiagram(const MCanvasDiagram *diagram)
|
||||
void visitMCanvasDiagram(const MCanvasDiagram *diagram) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
visitMDiagram(diagram);
|
||||
}
|
||||
|
||||
void visitMItem(const MItem *item)
|
||||
void visitMItem(const MItem *item) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -154,7 +154,7 @@ public:
|
||||
visitMObject(item);
|
||||
}
|
||||
|
||||
void visitMRelation(const MRelation *relation)
|
||||
void visitMRelation(const MRelation *relation) final
|
||||
{
|
||||
Q_UNUSED(relation)
|
||||
QMT_ASSERT(m_item, return);
|
||||
@@ -162,7 +162,7 @@ public:
|
||||
m_item->setData(TreeModel::Relation, TreeModel::RoleItemType);
|
||||
}
|
||||
|
||||
void visitMDependency(const MDependency *dependency)
|
||||
void visitMDependency(const MDependency *dependency) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
visitMRelation(dependency);
|
||||
}
|
||||
|
||||
void visitMInheritance(const MInheritance *inheritance)
|
||||
void visitMInheritance(const MInheritance *inheritance) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -180,7 +180,7 @@ public:
|
||||
visitMRelation(inheritance);
|
||||
}
|
||||
|
||||
void visitMAssociation(const MAssociation *association)
|
||||
void visitMAssociation(const MAssociation *association) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
visitMRelation(association);
|
||||
}
|
||||
|
||||
void visitMConnection(const MConnection *connection)
|
||||
void visitMConnection(const MConnection *connection) final
|
||||
{
|
||||
QMT_CHECK(!m_item);
|
||||
|
||||
@@ -214,23 +214,23 @@ public:
|
||||
QMT_CHECK(m_item);
|
||||
}
|
||||
|
||||
void visitMElement(const MElement *element)
|
||||
void visitMElement(const MElement *element) final
|
||||
{
|
||||
Q_UNUSED(element)
|
||||
QMT_CHECK(false);
|
||||
}
|
||||
|
||||
void visitMObject(const MObject *object)
|
||||
void visitMObject(const MObject *object) final
|
||||
{
|
||||
updateObjectLabel(object);
|
||||
}
|
||||
|
||||
void visitMPackage(const MPackage *package)
|
||||
void visitMPackage(const MPackage *package) final
|
||||
{
|
||||
visitMObject(package);
|
||||
}
|
||||
|
||||
void visitMClass(const MClass *klass)
|
||||
void visitMClass(const MClass *klass) final
|
||||
{
|
||||
if (klass->stereotypes() != m_item->stereotypes()) {
|
||||
QIcon icon = m_treeModel->createIcon(StereotypeIcon::ElementClass, StyleEngine::TypeClass,
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
visitMObject(klass);
|
||||
}
|
||||
|
||||
void visitMComponent(const MComponent *component)
|
||||
void visitMComponent(const MComponent *component) final
|
||||
{
|
||||
if (component->stereotypes() != m_item->stereotypes()) {
|
||||
QIcon icon = m_treeModel->createIcon(StereotypeIcon::ElementComponent, StyleEngine::TypeComponent,
|
||||
@@ -253,17 +253,17 @@ public:
|
||||
visitMObject(component);
|
||||
}
|
||||
|
||||
void visitMDiagram(const MDiagram *diagram)
|
||||
void visitMDiagram(const MDiagram *diagram) final
|
||||
{
|
||||
visitMObject(diagram);
|
||||
}
|
||||
|
||||
void visitMCanvasDiagram(const MCanvasDiagram *diagram)
|
||||
void visitMCanvasDiagram(const MCanvasDiagram *diagram) final
|
||||
{
|
||||
visitMDiagram(diagram);
|
||||
}
|
||||
|
||||
void visitMItem(const MItem *item)
|
||||
void visitMItem(const MItem *item) final
|
||||
{
|
||||
QList<QString> stereotypes = item->stereotypes() << item->variety();
|
||||
if (stereotypes != m_item->stereotypes()) {
|
||||
@@ -275,27 +275,27 @@ public:
|
||||
visitMObject(item);
|
||||
}
|
||||
|
||||
void visitMRelation(const MRelation *relation)
|
||||
void visitMRelation(const MRelation *relation) final
|
||||
{
|
||||
updateRelationLabel(relation);
|
||||
}
|
||||
|
||||
void visitMDependency(const MDependency *dependency)
|
||||
void visitMDependency(const MDependency *dependency) final
|
||||
{
|
||||
visitMRelation(dependency);
|
||||
}
|
||||
|
||||
void visitMInheritance(const MInheritance *inheritance)
|
||||
void visitMInheritance(const MInheritance *inheritance) final
|
||||
{
|
||||
visitMRelation(inheritance);
|
||||
}
|
||||
|
||||
void visitMAssociation(const MAssociation *association)
|
||||
void visitMAssociation(const MAssociation *association) final
|
||||
{
|
||||
visitMRelation(association);
|
||||
}
|
||||
|
||||
void visitMConnection(const MConnection *connection)
|
||||
void visitMConnection(const MConnection *connection) final
|
||||
{
|
||||
visitMRelation(connection);
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
bool suppressGradients() const
|
||||
bool suppressGradients() const final
|
||||
{
|
||||
return m_styleController->suppressGradients();
|
||||
}
|
||||
|
@@ -68,11 +68,11 @@ signals:
|
||||
void rightMarginChanged();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent * event);
|
||||
void mouseReleaseEvent(QMouseEvent * event);
|
||||
void mouseMoveEvent(QMouseEvent * event);
|
||||
void leaveEvent(QEvent* event );
|
||||
void paintEvent(QPaintEvent *event) final;
|
||||
void mousePressEvent(QMouseEvent * event) final;
|
||||
void mouseReleaseEvent(QMouseEvent * event) final;
|
||||
void mouseMoveEvent(QMouseEvent * event) final;
|
||||
void leaveEvent(QEvent* event ) final;
|
||||
private:
|
||||
bool m_showBorders;
|
||||
int m_left, m_right, m_top, m_bottom;
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
void onSliderMoved(int value);
|
||||
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
void wheelEvent(QWheelEvent* event) final;
|
||||
|
||||
private:
|
||||
PreviewLabel *m_label;
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
signals:
|
||||
void doubleClicked();
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) final;
|
||||
};
|
||||
|
||||
class WheelFilter: public QObject {
|
||||
@@ -175,7 +175,7 @@ public:
|
||||
WheelFilter(QObject* parent =nullptr) : QObject(parent) {}
|
||||
void setTarget(QObject *target) { m_target = target; }
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) final;
|
||||
QObject *m_target;
|
||||
};
|
||||
|
||||
|
@@ -39,8 +39,8 @@ public:
|
||||
QSGNode *expandedRow(int row) const { return m_expandedRows[row]; }
|
||||
QSGNode *collapsedRow(int row) const { return m_collapsedRows[row]; }
|
||||
|
||||
const QVector<QSGNode *> &expandedRows() const { return m_expandedRows; }
|
||||
const QVector<QSGNode *> &collapsedRows() const { return m_collapsedRows; }
|
||||
const QVector<QSGNode *> &expandedRows() const final { return m_expandedRows; }
|
||||
const QVector<QSGNode *> &collapsedRows() const final { return m_collapsedRows; }
|
||||
TimelineItemsMaterial *collapsedRowMaterial() { return &m_collapsedRowMaterial; }
|
||||
|
||||
int indexFrom() const { return m_indexFrom; }
|
||||
|
@@ -39,8 +39,8 @@ struct Point2DWithDistanceFromTop {
|
||||
class NotesMaterial : public QSGMaterial
|
||||
{
|
||||
public:
|
||||
QSGMaterialType *type() const;
|
||||
QSGMaterialShader *createShader() const;
|
||||
QSGMaterialType *type() const final;
|
||||
QSGMaterialShader *createShader() const final;
|
||||
};
|
||||
|
||||
struct NotesGeometry
|
||||
@@ -61,8 +61,8 @@ public:
|
||||
~TimelineNotesRenderPassState();
|
||||
|
||||
QSGNode *expandedRow(int row) const { return m_expandedRows[row]; }
|
||||
QSGNode *collapsedOverlay() const { return m_collapsedOverlay; }
|
||||
const QVector<QSGNode *> &expandedRows() const { return m_expandedRows; }
|
||||
QSGNode *collapsedOverlay() const final { return m_collapsedOverlay; }
|
||||
const QVector<QSGNode *> &expandedRows() const final { return m_expandedRows; }
|
||||
|
||||
QSGGeometry *nullGeometry() { return &m_nullGeometry; }
|
||||
NotesMaterial *material() { return &m_material; }
|
||||
|
@@ -145,8 +145,8 @@ public:
|
||||
ChooseDirectoryPage(CreateAndroidManifestWizard *wizard);
|
||||
|
||||
private:
|
||||
void initializePage();
|
||||
bool isComplete() const;
|
||||
void initializePage() final;
|
||||
bool isComplete() const final;
|
||||
void checkPackageSourceDir();
|
||||
|
||||
CreateAndroidManifestWizard *m_wizard;
|
||||
|
@@ -69,7 +69,7 @@ signals:
|
||||
void copyShortcutTriggered();
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) final;
|
||||
};
|
||||
|
||||
class TestResultsPane : public Core::IOutputPane
|
||||
|
@@ -134,8 +134,8 @@ public:
|
||||
static FilterMode toFilterMode(int f);
|
||||
|
||||
protected:
|
||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const final;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const final;
|
||||
|
||||
private:
|
||||
Autotest::TestTreeItem::SortMode m_sortMode = Autotest::TestTreeItem::Alphabetically;
|
||||
|
@@ -44,12 +44,12 @@ private:
|
||||
void handleStdErr();
|
||||
void handleProcessFinished(const QString &error);
|
||||
|
||||
bool isDeploymentNecessary() const { return true; }
|
||||
void doDeviceSetup() { handleDeviceSetupDone(true); }
|
||||
void stopDeviceSetup() { handleDeviceSetupDone(false); }
|
||||
bool isDeploymentNecessary() const final { return true; }
|
||||
void doDeviceSetup() final { handleDeviceSetupDone(true); }
|
||||
void stopDeviceSetup() final { handleDeviceSetupDone(false); }
|
||||
|
||||
void doDeploy();
|
||||
void stopDeployment();
|
||||
void doDeploy() final;
|
||||
void stopDeployment() final;
|
||||
|
||||
void cleanup();
|
||||
|
||||
|
@@ -188,7 +188,7 @@ class SelectFixitsCheckBox : public QCheckBox
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
void nextCheckState() final override
|
||||
void nextCheckState() final
|
||||
{
|
||||
setCheckState(checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked);
|
||||
}
|
||||
|
@@ -57,8 +57,8 @@ private slots:
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage);
|
||||
void extensionsInitialized();
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
||||
void extensionsInitialized() final;
|
||||
|
||||
void updateContextActions();
|
||||
|
||||
|
@@ -130,7 +130,7 @@ public:
|
||||
emit completeChanged();
|
||||
}
|
||||
|
||||
bool isComplete() const
|
||||
bool isComplete() const final
|
||||
{
|
||||
const FilePath path = m_data->sourcePath;
|
||||
if (!QFile::exists(path.toString())) {
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
int nextId() const
|
||||
int nextId() const final
|
||||
{
|
||||
if (hasLibSuffix(m_data->sourcePath))
|
||||
return WizardPage::nextId() + 1; // jump over check archive
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
vlayout->addWidget(m_output);
|
||||
}
|
||||
|
||||
void initializePage()
|
||||
void initializePage() final
|
||||
{
|
||||
m_isComplete = false;
|
||||
emit completeChanged();
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
InfoLabel::Error});
|
||||
}
|
||||
|
||||
void cleanupPage()
|
||||
void cleanupPage() final
|
||||
{
|
||||
// back button pressed
|
||||
m_cancelButton->disconnect();
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
m_tempDir.reset();
|
||||
}
|
||||
|
||||
bool isComplete() const { return m_isComplete; }
|
||||
bool isComplete() const final { return m_isComplete; }
|
||||
|
||||
std::unique_ptr<TemporaryDirectory> m_tempDir;
|
||||
Archive *m_archive = nullptr;
|
||||
@@ -402,7 +402,7 @@ public:
|
||||
vlayout->addWidget(m_summaryLabel);
|
||||
}
|
||||
|
||||
void initializePage()
|
||||
void initializePage() final
|
||||
{
|
||||
m_summaryLabel->setText(
|
||||
PluginInstallWizard::tr("\"%1\" will be installed into \"%2\".")
|
||||
|
@@ -62,8 +62,8 @@ public:
|
||||
: Utils::StaticTreeItem(text)
|
||||
{}
|
||||
|
||||
Qt::ItemFlags flags(int) const { return {}; }
|
||||
QVariant data(int column, int role) const
|
||||
Qt::ItemFlags flags(int) const final { return {}; }
|
||||
QVariant data(int column, int role) const final
|
||||
{
|
||||
if (role == Qt::ForegroundRole) {
|
||||
// Avoid disabled color.
|
||||
|
@@ -385,8 +385,8 @@ public:
|
||||
m_group.insert(action(MaximalStringLength), spinBoxMaximalStringLength);
|
||||
}
|
||||
|
||||
void apply() { m_group.apply(ICore::settings()); }
|
||||
void finish() { m_group.finish(); }
|
||||
void apply() final { m_group.apply(ICore::settings()); }
|
||||
void finish() final { m_group.finish(); }
|
||||
|
||||
private:
|
||||
Utils::SavedActionSet m_group;
|
||||
|
@@ -204,7 +204,7 @@ private: ////////// General Interface //////////
|
||||
void executeRunToFunction(const QString &functionName) final;
|
||||
void executeJumpToLine(const ContextData &data) final;
|
||||
void executeReturn() final;
|
||||
void executeRecordReverse(bool reverse);
|
||||
void executeRecordReverse(bool reverse) final;
|
||||
|
||||
void handleExecuteContinue(const DebuggerResponse &response);
|
||||
void handleExecuteStep(const DebuggerResponse &response);
|
||||
|
@@ -44,9 +44,9 @@ public:
|
||||
QString formSuffix() const;
|
||||
|
||||
private:
|
||||
Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const;
|
||||
Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const final;
|
||||
|
||||
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
|
||||
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const final;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -50,10 +50,10 @@ public:
|
||||
|
||||
Designer::FormClassWizardParameters parameters() const;
|
||||
|
||||
bool validateCurrentPage();
|
||||
bool validateCurrentPage() final;
|
||||
|
||||
protected:
|
||||
void initializePage(int id);
|
||||
void initializePage(int id) final;
|
||||
|
||||
private:
|
||||
FormTemplateWizardPage *m_formPage = nullptr;
|
||||
|
@@ -78,7 +78,7 @@ private:
|
||||
Utils::FilePath buildCommand() const;
|
||||
|
||||
bool init() final;
|
||||
void setupOutputFormatter(Utils::OutputFormatter *formatter);
|
||||
void setupOutputFormatter(Utils::OutputFormatter *formatter) final;
|
||||
void doRun() final;
|
||||
bool fromMap(const QVariantMap &map) final;
|
||||
QVariantMap toMap() const final;
|
||||
|
@@ -98,7 +98,7 @@ class IosDeviceInfoWidget : public IDeviceWidget
|
||||
public:
|
||||
IosDeviceInfoWidget(const ProjectExplorer::IDevice::Ptr &device);
|
||||
|
||||
void updateDeviceFromUi() {}
|
||||
void updateDeviceFromUi() final {}
|
||||
};
|
||||
|
||||
IosDevice::IosDevice(CtorHelper)
|
||||
|
@@ -51,7 +51,7 @@ private:
|
||||
// will get one of the results from examineDirectory
|
||||
const QList<ProjectExplorer::BuildInfo> buildInfoList(void *directoryData) const final;
|
||||
|
||||
virtual void deleteDirectoryData(void *directoryData) const final;
|
||||
void deleteDirectoryData(void *directoryData) const final;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -60,7 +60,7 @@ class FindComponentFromFilePath :
|
||||
public:
|
||||
void setFilePath(const QString &filePath);
|
||||
qmt::MComponent *component() const { return m_bestComponent; }
|
||||
void visitMComponent(qmt::MComponent *component);
|
||||
void visitMComponent(qmt::MComponent *component) final;
|
||||
|
||||
private:
|
||||
QString m_elementName;
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
void setModelController(qmt::ModelController *modelController);
|
||||
void setModelUtilities(ModelUtilities *modelUtilities);
|
||||
void updateFilePaths();
|
||||
void visitMComponent(qmt::MComponent *component);
|
||||
void visitMComponent(qmt::MComponent *component) final;
|
||||
|
||||
private:
|
||||
QStringList findFilePathOfComponent(const qmt::MComponent *component);
|
||||
|
@@ -201,8 +201,8 @@ class ModelIndexer::DiagramsCollectorVisitor :
|
||||
public:
|
||||
DiagramsCollectorVisitor(ModelIndexer::IndexedModel *indexedModel);
|
||||
|
||||
void visitMObject(const qmt::MObject *object);
|
||||
void visitMDiagram(const qmt::MDiagram *diagram);
|
||||
void visitMObject(const qmt::MObject *object) final;
|
||||
void visitMDiagram(const qmt::MDiagram *diagram) final;
|
||||
|
||||
private:
|
||||
ModelIndexer::IndexedModel *m_indexedModel;
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool running()
|
||||
bool running() final
|
||||
{
|
||||
return m_running;
|
||||
}
|
||||
|
@@ -63,8 +63,8 @@ public:
|
||||
uint occurrences;
|
||||
};
|
||||
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
int columnCount(const QModelIndex &parent) const final;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const final;
|
||||
void resort();
|
||||
|
||||
protected:
|
||||
@@ -135,9 +135,9 @@ public:
|
||||
|
||||
PerfProfilerStatisticsRelativesModel(Relation relation,
|
||||
PerfProfilerStatisticsMainModel *parent);
|
||||
int rowCount(const QModelIndex &parent) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
void sort(int column, Qt::SortOrder order);
|
||||
int rowCount(const QModelIndex &parent) const final;
|
||||
QVariant data(const QModelIndex &index, int role) const final;
|
||||
void sort(int column, Qt::SortOrder order) final;
|
||||
void sortForInsert();
|
||||
|
||||
void selectByTypeId(int typeId);
|
||||
|
@@ -55,7 +55,7 @@ class HexNumberDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
HexNumberDelegate(QObject *parent = nullptr) : QStyledItemDelegate(parent) {}
|
||||
|
||||
QString displayText(const QVariant &value, const QLocale &locale) const
|
||||
QString displayText(const QVariant &value, const QLocale &locale) const final
|
||||
{
|
||||
Q_UNUSED(locale)
|
||||
return QString::fromLatin1("0x%1").arg(value.toULongLong(), 16, 16, QLatin1Char('0'));
|
||||
|
@@ -53,7 +53,7 @@ class ProcessStep final : public AbstractProcessStep
|
||||
public:
|
||||
ProcessStep(BuildStepList *bsl, Id id);
|
||||
|
||||
void setupOutputFormatter(OutputFormatter *formatter);
|
||||
void setupOutputFormatter(OutputFormatter *formatter) final;
|
||||
};
|
||||
|
||||
ProcessStep::ProcessStep(BuildStepList *bsl, Id id)
|
||||
|
@@ -356,13 +356,13 @@ private:
|
||||
return HostOsInfo::isWindowsHost() && e->button() == Qt::RightButton;
|
||||
}
|
||||
|
||||
void mousePressEvent(QMouseEvent *e)
|
||||
void mousePressEvent(QMouseEvent *e) final
|
||||
{
|
||||
if (!userWantsContextMenu(e))
|
||||
BaseTreeView::mousePressEvent(e);
|
||||
}
|
||||
|
||||
void mouseReleaseEvent(QMouseEvent *e)
|
||||
void mouseReleaseEvent(QMouseEvent *e) final
|
||||
{
|
||||
if (!userWantsContextMenu(e))
|
||||
BaseTreeView::mouseReleaseEvent(e);
|
||||
|
@@ -309,7 +309,7 @@ public:
|
||||
|
||||
void redetectToolchains();
|
||||
|
||||
void apply();
|
||||
void apply() final;
|
||||
|
||||
private:
|
||||
TreeModel<TreeItem, ToolChainTreeItem> m_model;
|
||||
|
@@ -42,8 +42,8 @@ class AssetExporterPlugin : public QObject, QmlDesigner::IWidgetPlugin
|
||||
public:
|
||||
AssetExporterPlugin();
|
||||
|
||||
QString metaInfo() const;
|
||||
QString pluginName() const;
|
||||
QString metaInfo() const final;
|
||||
QString pluginName() const final;
|
||||
|
||||
private:
|
||||
void onExport();
|
||||
|
@@ -70,9 +70,9 @@ public:
|
||||
~BindingDocument();
|
||||
|
||||
protected:
|
||||
void applyFontSettings();
|
||||
void applyFontSettings() final;
|
||||
|
||||
void triggerPendingUpdates();
|
||||
void triggerPendingUpdates() final;
|
||||
|
||||
private:
|
||||
QmlJSEditor::SemanticHighlighter *m_semanticHighlighter = nullptr;
|
||||
|
@@ -103,7 +103,7 @@ public:
|
||||
return m_version;
|
||||
}
|
||||
|
||||
QVariant data(int column, int role) const
|
||||
QVariant data(int column, int role) const final
|
||||
{
|
||||
if (!m_version)
|
||||
return TreeItem::data(column, role);
|
||||
|
Reference in New Issue
Block a user