Changeset View
Changeset View
Standalone View
Standalone View
kcms/nightcolor/package/contents/ui/NumberField.qml
Show All 9 Lines | |||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | *********************************************************************/ | 16 | *********************************************************************/ | ||
17 | import QtQuick 2.1 | 17 | import QtQuick 2.1 | ||
18 | import QtQuick.Controls 1.4 as Controls | 18 | import QtQuick.Controls 2.5 as QQC2 | ||
19 | 19 | | |||
20 | Controls.TextField { | 20 | QQC2.TextField { | ||
21 | property double backend | 21 | property double backend | ||
22 | 22 | | |||
23 | maximumLength: 10 | 23 | maximumLength: 10 | ||
24 | horizontalAlignment: TextInput.AlignHCenter | 24 | horizontalAlignment: TextInput.AlignHCenter | ||
25 | 25 | | |||
26 | inputMethodHints: Qt.ImhFormattedNumbersOnly | 26 | inputMethodHints: Qt.ImhFormattedNumbersOnly | ||
27 | 27 | | |||
28 | text: backend | 28 | text: backend | ||
Show All 20 Lines |