conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change default size to small.\n" }, { "from": "human", "value": "import VPlay 1.0\nimport QtQuick 1.1\n\nimport \"manager\"\n\nGameWindow {\n id: window\n width: 960\n height: 640\n\n\n minimizeable: true\n maximizeable: true\n\n // this would disable the fps...
qml
chosen
[ { "from": "human", "value": "Add form for the workflow/modeller metadata\n" }, { "from": "gpt", "value": "import QtQuick 2.2;\nimport QtQuick.Controls 1.1;\nimport QtQuick.Layouts 1.1;\n\nColumn {\n property string formresult : \"safasdf\";\n property string outputfield_0;\n x:5;\n w...
qml
chosen
[ { "from": "system", "value": "Use 'pointer' cursor if url is undefined.\n" }, { "from": "human", "value": "Item {\n\tsignal entered;\n\tsignal exited;\n\tsignal clicked;\n\tsignal canceled;\n\tsignal wheelEvent;\n\n\tproperty bool hoverEnabled;\n\tproperty bool containsMouse;\n\tproperty real mo...
qml
chosen
[ { "from": "system", "value": "Add new icons and use it in keyboard.w\n" }, { "from": "human", "value": "ListModel {\n\tproperty int begin;\n\tproperty int end;\n\tproperty Object parentModel;\n\n\tonCompleted: {\n\t\tvar letters = this.parentModel.letters;\n\t\tvar last = letters.length > this.e...
qml
chosen
[ { "from": "system", "value": "Use actual protocol interface in resource.\n" }, { "from": "human", "value": "Protocol {\n\tproperty string data;\n\n\tonUrlChanged: {\n\t\tvar self = this\n\t\tthis.request(value, function(data) { self.data = data })\n\t}\n}\n" }, { "from": "gpt", "valu...
qml
chosen
[ { "from": "system", "value": "Use skin.manifest to display skin meta information\n" }, { "from": "human", "value": "import QtQuick 1.1\n\nListView {\n id: root\n focus: true\n\n SystemPalette { \n id: palette\n colorGroup: SystemPalette.Active \n }\n\n anchors.fill: ...
qml
chosen
[ { "from": "system", "value": "Fix autotest on Windows and OS X.\n\nChange-Id: I1dee6242d2da8f746bd0f7a79b22341f51184752\nReviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@theqtcompany.com>\n" }, { "from": "human", "value": "import qbs\n\nCppApplication {\n Depends { name:...
qml
chosen
[ { "from": "system", "value": "Change qbs qmake files product name\n" }, { "from": "human", "value": "import qbs\n\nProject {\n minimumQbsVersion: \"1.9.0\"\n references: [\n \"examples/examples.qbs\",\n \"others.qbs\",\n \"src/log4qt/log4qt.qbs\",\n \"tests/test...
qml
chosen
[ { "from": "system", "value": "Add cmake files to qbs project\n" }, { "from": "human", "value": "import qbs\n\nProject {\n minimumQbsVersion: \"1.9.0\"\n references: [\n \"examples/examples.qbs\",\n \"others.qbs\",\n \"src/log4qt/log4qt.qbs\",\n \"tests/tests.qbs...
qml
chosen
[ { "from": "system", "value": "Add elide to menu items\n" }, { "from": "human", "value": "import Qt 4.7\n\nItem {\n id: mainArea\n width: parent.width\n height: label.height + 20\n\n property alias text: label.text\n\n signal clicked()\n\n Component.onCompleted: {\n var t...
qml
chosen
[ { "from": "system", "value": "Use anchors instead of grid layout\n" }, { "from": "human", "value": "import QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nRectangle {\n width: 700\n height: 100\n\n GridLayout {\n id: grid\n columns: 2\n anchors.left: parent.left\n ...
qml
chosen
[ { "from": "system", "value": "Update conversation view on new message\n" }, { "from": "human", "value": "import bb.cascades 1.0\nimport bb.system 1.0\nimport bb.platform 1.0\n\nimport \"prettyDate.js\" as PrettyDate\n\nNavigationPane {\n\tid: navigationPane\n\tproperty bool shouldNotify: false\n...
qml
chosen
[ { "from": "system", "value": "Change property label color for better readability\n" }, { "from": "human", "value": "import QtQuick 2.0\nimport Sailfish.Silica 1.0\n\nItem {\n property alias label: labelComp.text\n property alias value: valueComp.text\n\n anchors.left: parent.left\n a...
qml
chosen
[ { "from": "system", "value": "CplusPlus: Install run-time resources also with qbs build.\n\nChange-Id: I65741f6a74a73925df78b7f35f21f98be35f8270\nReviewed-by: Nikolai Kosjar <9571db158ca61a0d070db010803474231fa0cbab@theqtcompany.com>\n" }, { "from": "human", "value": "import qbs 1.0\n\nProduct {...
qml
chosen
[ { "from": "system", "value": "Remove unnecessary margin that was set from a removed file\n" }, { "from": "human", "value": "import QtQuick 2.2\nimport QtQuick.Controls 1.1\nimport QtQuick.Layouts 1.1\nimport QtQuick.Window 2.1\n\nimport UM 1.0 as UM\n\nUM.Dialog {\n id: base\n\n //: Add Pr...
qml
chosen
[ { "from": "system", "value": "Make Select Upgrades page look like the other pages\n\nCURA-1385\n" }, { "from": "human", "value": "// Copyright (c) 2016 Ultimaker B.V.\n// Cura is released under the terms of the AGPLv3 or higher.\n\nimport QtQuick 2.2\nimport QtQuick.Controls 1.1\nimport QtQuick....
qml
chosen
[ { "from": "system", "value": "Fix testAssembly blackbox test on all non-Intel architectures.\n\nChange-Id: I2ba9017be9c748c95f465c87f66898ee73e81163\nReviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@theqtcompany.com>\n" }, { "from": "human", "value": "import qbs 1.0\n\nP...
qml
chosen
[ { "from": "system", "value": "Use default font size in dialog\n" }, { "from": "human", "value": "import QtQuick 1.0\n\nRectangle {\n id: dialog\n property int animationSpeed: 500\n property bool autoClose: false\n\n signal opened\n signal closed\n\n\n function show(text) {\n ...
qml
chosen
[ { "from": "system", "value": "Change the visibility of the avatar according to image status\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Intel Corporation.\n *\n * This program is licensed under the terms and conditions of the\n * Apache License, version 2.0. The full text of the Ap...
qml
chosen
[ { "from": "system", "value": "Fix custom list view to clip content before the border\n\nSigned-off-by: Pauli Nieminen <ce89c68871fad9564c22852774cc328c5c04372c@gmail.com>\n" }, { "from": "human", "value": "\nimport QtQuick 2.4\nimport QtQuick.Controls 1.1\n\nListView {\n id: view\n \n a...
qml
chosen
[ { "from": "system", "value": "Make panel button always the same width\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Intel Corporation.\n *\n * This program is licensed under the terms and conditions of the\n * Apache License, version 2.0. The full text of the Apache License is at\n *...
qml
chosen
[ { "from": "system", "value": "Add 'url' property bacause it was removed from the Protocol.\n" }, { "from": "human", "value": "Protocol {\n\tproperty string data;\n\n\tonUrlChanged: {\n\t\tvar self = this\n\t\tthis.requestXHR({\n\t\t\t\"url\": value,\n\t\t\t\"callback\": function(data) { self.dat...
qml
chosen
[ { "from": "system", "value": "Fix default setting value cast\n" }, { "from": "human", "value": "import QtQuick 2.12\n\nItem {\n id: root\n\n property string key\n property var def\n property var obj: settings\n\n property var value: root.obj ? root.obj.value(root.key, root.def) : ...
qml
chosen
[ { "from": "system", "value": "Fix scrollbar after API changes.\n" }, { "from": "human", "value": "import Qt 4.6\n\nItem {\n id: Container\n\n property var flickableArea\n\n Rectangle {\n radius: 5\n color: \"black\"\n opacity: 0.3\n border.color: \"white\"\n ...
qml
chosen
[ { "from": "system", "value": "Remove filling so that palette will be more reusable\n" }, { "from": "human", "value": "import QtQuick 2.0\n\nRectangle {\n property var paletteModel\n anchors.fill: parent\n Column {\n Text {\n text: paletteModel.name\n }\n\n ...
qml
chosen
[ { "from": "system", "value": "Move QML files over to QtQuick 2.1 instead of 2.2\n" }, { "from": "human", "value": "import QtQuick 2.2\nimport QtQuick.Controls 1.2\nimport QtQuick.Layouts 1.1\n\nimport Cura 1.0 as Cura\n\nCura.DefaultWindow {\n title: \"Cura\"\n}\n" }, { "from": "gpt",...
qml
chosen
[ { "from": "system", "value": "Update the year in the About dialog\n" }, { "from": "human", "value": "import QtQuick 2.5\nimport QtQuick.Controls 1.4\n\nDefaultDialog {\n\n id: aboutPage\n title: qsTr(\"About YubiKey Manager\")\n\n Label {\n text: qsTr(\"YubiKey Manager\")\n ...
qml
chosen
[ { "from": "system", "value": "Exit when Steam button is pressed.\n" }, { "from": "human", "value": "/*\n * steamlink-qml-example\n * Copyright (c) 2016 Mackenzie Straight. See LICENSE for license details.\n */\nimport QtQuick 2.0\nimport org.e7m.steamlink 1.0\n\nRectangle {\n id: page\n wi...
qml
chosen
[ { "from": "system", "value": "Adjust the font size after changing the size of the button\n" }, { "from": "human", "value": "// -*- qml -*-\nimport QtQuick 1.1\nimport com.nokia.meego 1.1\nimport QtCamera 1.0\n\nSelector {\n id: button\n\n property alias value: evComp.value\n\n ...
qml
chosen
[ { "from": "system", "value": "Improve unit tests of WebView\n\nThis guards that https://bugzilla.mozilla.org/show_bug.cgi?id=1001853\nlike error does not reappear.\n" }, { "from": "human", "value": "/****************************************************************************\n**\n** Copyright (...
qml
chosen
[ { "from": "human", "value": "Implement control for .srt subtitles parsing and displaying\n" }, { "from": "gpt", "value": "Resource {\n\tproperty real progress;\n\tproperty string text;\n\n\tonProgressChanged: {\n\t\tvar blocks = this._textBlocks\n\t\tif (!blocks || blocks.length == 0) {\n\t\t\tt...
qml
chosen
[ { "from": "system", "value": "Use clip instead of z\n" }, { "from": "human", "value": "import QtQuick 2.7\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.3\nimport QtQuick.Window 2.0\n\nApplicationWindow {\n id: root\n visible: false\n width: bar.implicitWidth\n height: 400\n ...
qml
chosen
[ { "from": "system", "value": "QmlDesigner.PropertyEditor: Change default editor for color\n\nThis template breaks the layout and is currently unusable.\nTherefore we replace it by a string editor.\n\nChange-Id: I0818d006a4516f34954d5406ee4074664e909891\nReviewed-by: Tim Jenssen <6a21f175c697b4129e1bafb6e9b5...
qml
chosen
[ { "from": "human", "value": "Create a base/interface for the viewer components\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Les...
qml
chosen
[ { "from": "system", "value": "Add import Qt.widgets 4.6 to layout.qml example\n" }, { "from": "human", "value": "import Qt 4.6\n\nItem {\n id: resizable\n width:400\n height:400\n\n GraphicsObjectContainer {\n anchors.fill:parent\n\n QGraphicsWidget {\n size....
qml
chosen
[ { "from": "system", "value": "Save sort field per zone; don't leak dyn menu items\n" }, { "from": "human", "value": "import QtQuick 2.8\nimport org.kde.plasma.components 2.0 as PlasmaComponents\nimport Qt.labs.platform 1.0\n\nItem {\n id: sorter\n width: button.width\n height: button.he...
qml
chosen
[ { "from": "system", "value": "Increase minimum width for NEO\n" }, { "from": "human", "value": "import QtQuick 2.5\r\nimport QtQuick.Controls 1.4\r\nimport QtQuick.Layouts 1.1\r\n\r\nApplicationWindow {\r\n visible: true\r\n title: qsTr(\"YubiKey Manager\")\r\n minimumHeight: 300\r\n ...
qml
chosen
[ { "from": "system", "value": "Support headres in protocol's request.\n" }, { "from": "human", "value": "Object {\n\tsignal error;\n\tproperty bool enabled: true;\n\tproperty bool loading: false;\n\tproperty string baseUrl;\n\tproperty string url;\n\n\trequestImpl(url, data, callback, type, heade...
qml
chosen
[ { "from": "system", "value": "Allow Node.js applications to run without -p and fix the autotest.\n\nChange-Id: I9b48f997840fe8fe8bac6cf305399c1bf6e7c714\nReviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@digia.com>\n" }, { "from": "human", "value": "import qbs\nimport qbs...
qml
chosen
[ { "from": "system", "value": "Update progressbar color and opacity\n" }, { "from": "human", "value": "/****************************************************************************\n**\n** Copyright (C) 2013 Jolla Ltd.\n** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com>\n...
qml
chosen
[ { "from": "human", "value": "Add semi-generic config list item\n" }, { "from": "gpt", "value": "import QtQuick 2.9\nimport QtQuick.Controls 2.2\nimport QtQuick.Layouts 1.3\nimport org.kde.plasma.components 2.0 as PlasmaComponents\n\nColumnLayout {\n id: cfgList\n\n property var items: []\n...
qml
chosen
[ { "from": "system", "value": "Add missing Android library type.\n\nChange-Id: Ia698d2387be3185d4bd513cb9b47ba8bc7233a84\nReviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@theqtcompany.com>\n" }, { "from": "human", "value": "Product {\n type: {\n if (qbs.targetOS...
qml
chosen
[ { "from": "human", "value": "Add simple profile qml page\n" }, { "from": "gpt", "value": "/*\nThe MIT License (MIT)\n\nCopyright (c) 2016 Oleg Linkin <maledictusdemagog@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated doc...
qml
chosen
[ { "from": "human", "value": "Add Item (KSortFilterProxyModel with extensions)\n" }, { "from": "gpt", "value": "import QtQuick 2.8\nimport org.kde.kitemmodels 1.0\nimport '../helpers/utils.js' as Utils\n\nKSortFilterProxyModel {\n\n function get(row) {\n if (!sourceModel) {\n ...
qml
chosen
[ { "from": "system", "value": "Fix missing whitespace in labels\n" }, { "from": "human", "value": "Diagram {\n\tRepoGroup {\n\t\tRepo {\n\t\t\tname: \"Git Repository\"\n\n\t\t\tQtModule {\n\t\t\t\tname: \"Qt Module(C++ API Only)\"\n\t\t\t\tapi: \"CppOnly\"\n\n\t\t\t\tCppNamespace {name: \"C++ Nam...
qml
chosen
[ { "from": "system", "value": "Fix settings value data reading.\n" }, { "from": "human", "value": "LocalStorage {\n\tsignal saved;\n\tsignal loaded;\n\tsignal optionUpdated;\n\n\tload: {\n\t\tthis.read()\n\t\tthis.loaded()\n\t}\n\n\tgetValue(name): {\n\t\tthis.name = name\n\t\treturn this.value &...
qml
chosen
[ { "from": "system", "value": "Update line chart example to include stepped plotting\n" }, { "from": "human", "value": "import QtQuick.Controls 2.3\nimport QtQuick.Layouts 1.3\n\nimport Qnite 1.0\n\n\nApplicationWindow {\n width: 1600; height: 900\n visible: true\n\n ColumnLayout {\n ...
qml
chosen
[ { "from": "system", "value": "Fix a problem with mice" }, { "from": "human", "value": "import QtQuick 2.0\n\nListModel {\n\n ListElement {\n userId: 1\n created: qsTrId(\"orn-just-now\")\n commentId: 2\n //: https://simple.wikipedia.org/wiki/42_(answer)\n //...
qml
chosen
[ { "from": "system", "value": "Fix cover width, so that the label text is wrapped early enough, and no digits are left un-visible.\n" }, { "from": "human", "value": "import QtQuick 2.0\nimport Sailfish.Silica 1.0\nimport \"../pages\"\n\nCoverBackground {\n\n Column {\n anchors.fill: par...
qml
chosen
[ { "from": "system", "value": "Fix pluginMetaData autotest on macOS\n\nChange-Id: I45f62fba0472479a2fea745bec091da7adf0b407\nReviewed-by: Jake Petroules <2d627e1cecd5435752fa500bacbe05f7cc90c369@qt.io>\n" }, { "from": "human", "value": "import qbs\n\nProject {\n QtApplication {\n consol...
qml
chosen
[ { "from": "system", "value": "Set default x and y position for oposit target view direction\n" }, { "from": "human", "value": "Rectangle {\n\tproperty Object target;\t///< target view for highlighter\n\tproperty string updatePositionProperty: \"currentIndex\";\t///< which property must changed t...
qml
chosen
[ { "from": "system", "value": "Make a sourcePath a string to avoid resolving against the project\n" }, { "from": "human", "value": "import qbs\r\nimport qbs.File\r\nimport qbs.TextFile\r\nimport \"qbs/imports/QtUtils.js\" as QtUtils\r\n\r\nProject {\r\n id: root\r\n name: \"Qt\"\r\n\r\n ...
qml
chosen
[ { "from": "system", "value": "Change rating type to real.\n\nChange-Id: I7c0700b453f45264e97eacb3e927eda6e58f16d1\nReviewed-on: http://codereview.qt.nokia.com/3456\nReviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>\nReviewed-by: Aaron McCarthy <19f0c2781a6d2138802be69a27973bb2f9d...
qml
chosen
[ { "from": "system", "value": "Fix QML setting parser for numbers\n" }, { "from": "human", "value": "import QtQuick 2.12\n\nItem {\n id: root\n\n signal changed(var value)\n\n property string key\n property var def\n property var obj: settings\n property var parser: null\n pr...
qml
chosen
[ { "from": "system", "value": "Fix bug preventing CountriesList to open on sailfish update 10\n" }, { "from": "human", "value": "import QtQuick 2.0\nimport Sailfish.Silica 1.0\nimport \"../components\"\nimport \"../countries.js\" as Countries\n\nPage {\n\n id: countryListPage\n\n GamePageHe...
qml
chosen
[ { "from": "system", "value": "Add Basil to the developers list\n" }, { "from": "human", "value": "import QtQuick 2.0\n\nListModel {\n\n ListElement {\n //% \"Developers\"\n role: qsTrId(\"orn-developers\")\n participants: [\n ListElement {\n name...
qml
chosen
[ { "from": "system", "value": "Fix Process autotest on Windows.\n\nChange-Id: I29e8550ad02652ef457dfe824df573d73cdc5cb6\nReviewed-by: Jake Petroules <2d627e1cecd5435752fa500bacbe05f7cc90c369@petroules.com>\n" }, { "from": "human", "value": "import qbs\nimport qbs.Process\nimport qbs.TextFile\n\nP...
qml
chosen
[ { "from": "system", "value": "Fix issue with direct edit\n\nAlso show descriptive units label\n" }, { "from": "human", "value": "import QtQuick 2.9\nimport QtQuick.Controls 2.4\n\nSpinBox {\n id: control\n from: 0\n to: 100 * 100\n stepSize: 10\n\n property int decimals: 2\n pr...
qml
chosen
[ { "from": "system", "value": "Solve minor logic fail and add one thing" }, { "from": "human", "value": "import QtQuick 2.2\nimport Material 0.1\nimport Material.ListItems 0.1 as ListItem\n\nPage {\n\tid: page\n\ttitle: \"Page Title\"\n\n\ttabs: [\n\t\t// Each tab can have text and an icon\n\t\t{...
qml
chosen
[ { "from": "system", "value": "Add size calc to checkbox\n" }, { "from": "human", "value": "import QtQuick 1.0\nimport \"custom\" as Components\nimport \"plugin\"\n\n// jb : Size should not depend on background, we should make it consistent\n\nComponents.CheckBox{\n id:checkbox\n property s...
qml
chosen
[ { "from": "system", "value": "Add tabs to the demo\n" }, { "from": "human", "value": "import QtQuick 2.2\nimport Material 0.1\nimport Material.ListItems 0.1 as ListItem\n\nPage {\n id: page\n\n title: \"Sub Page\"\n\n ListView {\n anchors.fill: parent\n model: 3\n d...
qml
chosen
[ { "from": "system", "value": "Add an option to always show the progress bar\n" }, { "from": "human", "value": "/*\n * QML Material - An application framework implementing Material Design.\n * Copyright (C) 2014 Michael Spencer\n *\n * This program is free software: you can redistribute it and/or...
qml
chosen