Skip to content

Commit

Permalink
Merge pull request #79 from QuasarApp/task_78
Browse files Browse the repository at this point in the history
Fix dialog size
  • Loading branch information
EndrII authored May 15, 2021
2 parents e8412c2 + f77e7ac commit 3669a88
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 43 deletions.
8 changes: 7 additions & 1 deletion HanoiTowers/client/Game.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -124,6 +124,8 @@ Item {

function trigered(obj) {

clickSound.play()

stateWidget.tumbler.visible = false;
let objectPlate = null;
if (upPlate) {
Expand Down Expand Up @@ -247,4 +249,8 @@ Item {
id: help
}

SoundEffect {
id: clickSound
source: "qrc:/sound/blockSound"
}
}
16 changes: 8 additions & 8 deletions HanoiTowers/client/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
16 changes: 8 additions & 8 deletions HanoiTowers/client/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
16 changes: 8 additions & 8 deletions HanoiTowers/client/languages/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
16 changes: 8 additions & 8 deletions HanoiTowers/client/languages/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
16 changes: 8 additions & 8 deletions HanoiTowers/client/languages/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
9 changes: 8 additions & 1 deletion HanoiTowers/client/menu/LocalUsersTable.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
3 changes: 3 additions & 0 deletions HanoiTowers/client/res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 added HanoiTowers/client/res/TowerBlockSound_18.wav
Binary file not shown.

0 comments on commit 3669a88

Please sign in to comment.