4
0
mirror of https://github.com/QuasarApp/Hanoi-Towers.git synced 2025-05-06 06:29:34 +00:00

Merge pull request from QuasarApp/task_78

Fix dialog size
This commit is contained in:
Andrei Yankovich 2021-05-15 19:35:15 +03:00 committed by GitHub
commit 3669a88901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 59 additions and 43 deletions

@ -10,7 +10,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.15
import QtMultimedia 5.15
Item {
visible: true
@ -124,6 +124,8 @@ Item {
function trigered(obj) {
clickSound.play()
stateWidget.tumbler.visible = false;
let objectPlate = null;
if (upPlate) {
@ -247,4 +249,8 @@ Item {
id: help
}
SoundEffect {
id: clickSound
source: "qrc:/sound/blockSound"
}
}

@ -149,38 +149,38 @@
<translation type="vanished">Minimum steps for this lvl: %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>Congratulations! You have passed the level %0</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>

@ -167,38 +167,38 @@
<translation type="vanished">LVLの最小ステップ %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation> %0 </translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation> &lt;b&gt;%0&lt;/b&gt; &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; &lt;b&gt;%2&lt;/b&gt; .</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; : &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation> &lt;b&gt;%0&lt;/b&gt; </translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; &lt;b&gt;%1&lt;/b&gt; .</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>

@ -174,38 +174,38 @@
<translation type="vanished">Минимальные шаги для этого уровня:%1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>Поздравляем! Вы прошли уровень %0</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>Вы набрали &lt;b&gt;%0&lt;/b&gt; баллов за этот уровень и разблокировали уровень &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Всего &lt;b&gt;%2&lt;/b&gt; ходов.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; Минимально количество ходов для уровня: &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>Вы набрали &lt;b&gt;%0&lt;/b&gt; баллов за этот уровень!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Всего &lt;b&gt;%1&lt;/b&gt; ходов.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; Минимальное количиство ходов для уровня : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>

@ -175,38 +175,38 @@ Bu seviye için minimum adımlar: %2</translation>
<translation type="vanished">Bu seviye için minimum adımlar: %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>Tebrikler! %0 seviyesini geçtiniz</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>Bu seviye için &lt;b&gt;%0&lt;/b&gt; puan aldınız ve &lt;b&gt;%1&lt;/b&gt; seviyesinin kilidini açtınız!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Tamamen &lt;b&gt;%2&lt;/b&gt; adım.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; Bu seviye için minimum adım sayısı : &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>Bu seviye için &lt;b&gt;%0&lt;/b&gt; puan aldınız!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Tamamen &lt;b&gt;%1&lt;/b&gt; adım.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; Bu seviye için minimum adım sayısı : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>

@ -177,38 +177,38 @@
<translation type="vanished">Мінімальні кроки для цього рівня: %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>Вітаємо! Ви пройшли рівень %0</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>Ви отримали &lt;b&gt;%0&lt;/b&gt; балів за цей рівень і розблокували рівень &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt;Повністю&lt;b&gt;%2&lt;/b&gt; кроків.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; Мінімальна кількість кроків для цього рівня: &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>Ви отримали &lt;b&gt;%0&lt;/b&gt; балів за цей рівень!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt; &lt;br&gt; Повністю &lt;b&gt;%1&lt;/b&gt; кроків.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; Мінімальна кількість кроків для цього рівня: &lt;b&gt;%2&lt;/b&gt;</translation>
</message>

@ -59,7 +59,14 @@ Item {
id: loginPopUp
lognViewModel: userLogin // exampleLogin - this is inited model in main.cpp
width: 7 * controlPtMaterial
height: 12 * fontMetrics.height
width: 15 * fontMetrics.height
singleColumn: true
FontMetrics {
id: fontMetrics
font.capitalization: Font.AllUppercase
font.bold: true
}
Connections {
target: backEnd;
function onShowOnlinePage () {

@ -12,4 +12,7 @@
<qresource prefix="/sql">
<file>sql/database.sql</file>
</qresource>
<qresource prefix="/sound">
<file alias="blockSound">res/TowerBlockSound_18.wav</file>
</qresource>
</RCC>

Binary file not shown.

@ -1 +1 @@
Subproject commit 97b3cc41f4112af67bb3250e2a46395e09fefaa5
Subproject commit d999706ca9fcfac6acf41a11b99d19632d78e516