summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component_p.cpp
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-09-30 15:27:57 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-11-04 10:07:47 +0300
commitd3cae4df15598bf4797cd7fc03aced50bb5a25a1 (patch)
treed5889d6dc6bb99702eeec61337ba0544e94ff071 /src/libs/installer/component_p.cpp
parent07f4848b5ee0cdc9407d9a0de4d30ca5e03403e0 (diff)
Remove unused code blocks and functions
Results analyzed using cppcheck tools. Also add Q_DECL_OVERRIDE to overwrited functions. Change-Id: Iab5eb43206af0050c1dd84efb7ed860ab9594496 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/component_p.cpp')
-rw-r--r--src/libs/installer/component_p.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libs/installer/component_p.cpp b/src/libs/installer/component_p.cpp
index 7c107cac2..8533d8e4c 100644
--- a/src/libs/installer/component_p.cpp
+++ b/src/libs/installer/component_p.cpp
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -187,14 +187,6 @@ void ComponentModelHelper::setCheckable(bool checkable)
}
/*!
- Returns whether the component is selectable by the user. The default value is \c true.
-*/
-bool ComponentModelHelper::isSelectable() const
-{
- return (flags() & Qt::ItemIsSelectable) != 0;
-}
-
-/*!
Sets whether the component is selectable. If \a selectable is \c true, the component can be selected by the
user; otherwise, the user cannot select the component.
*/