Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Devices.qml
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | import QtQuick.Controls 1.3 | 23 | import QtQuick.Controls 1.3 as QQC1 | ||
24 | import QtQuick.Controls 2.0 | ||||
24 | 25 | | |||
25 | ScrollView { | 26 | QQC1.ScrollView { | ||
26 | id: scrollView | 27 | id: scrollView | ||
27 | 28 | | |||
28 | ColumnLayout { | 29 | ColumnLayout { | ||
29 | Component.onCompleted: { | 30 | Component.onCompleted: { | ||
30 | // Normal binding causes binding loops | 31 | // Normal binding causes binding loops | ||
31 | width = Qt.binding(function() { | 32 | width = Qt.binding(function() { | ||
32 | return scrollView.viewport.width; | 33 | return scrollView.viewport.width; | ||
33 | }); | 34 | }); | ||
Show All 38 Lines |