Changed weird click bug when <br> is used instead of \n

This commit is contained in:
Rafael 2016-10-19 16:52:13 +02:00
parent 33359448c5
commit 85980c257a
4 changed files with 59 additions and 45 deletions

View file

@ -54,8 +54,8 @@ SavegameWidget::SavegameWidget(QWidget *parent) :
highlightBackColor = palette.highlight().color(); highlightBackColor = palette.highlight().color();
highlightTextColor = palette.highlightedText().color(); highlightTextColor = palette.highlightedText().color();
labelAutosaveStr = tr("AUTOSAVE - %1<br>%2"); labelAutosaveStr = tr("AUTOSAVE - %1\n%2");
labelSaveStr = tr("SAVE %3 - %1<br>%2"); labelSaveStr = tr("SAVE %3 - %1\n%2");
sgdPath = ""; sgdPath = "";
sgdStr = ""; sgdStr = "";
sgdata = 0; sgdata = 0;

View file

@ -763,11 +763,6 @@ Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping
<source>The Third Way (100%) - 00/00/00 00:00:00</source> <source>The Third Way (100%) - 00/00/00 00:00:00</source>
<translation type="vanished">Третий путь (100%) - 00/00/00 00:00:00</translation> <translation type="vanished">Третий путь (100%) - 00/00/00 00:00:00</translation>
</message> </message>
<message>
<location filename="../SavegameWidget.ui" line="67"/>
<source>SAVE - %1&lt;br&gt;%2</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<location filename="../SavegameWidget.ui" line="77"/> <location filename="../SavegameWidget.ui" line="77"/>
<source>View savegame</source> <source>View savegame</source>
@ -794,8 +789,8 @@ Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping
</message> </message>
<message> <message>
<location filename="../SavegameWidget.ui" line="100"/> <location filename="../SavegameWidget.ui" line="100"/>
<location filename="../SavegameWidget.cpp" line="130"/> <location filename="../SavegameWidget.cpp" line="131"/>
<location filename="../SavegameWidget.cpp" line="143"/> <location filename="../SavegameWidget.cpp" line="144"/>
<source>Delete savegame</source> <source>Delete savegame</source>
<translation>Удалить сохранение</translation> <translation>Удалить сохранение</translation>
</message> </message>
@ -805,65 +800,72 @@ Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="57"/> <location filename="../SavegameWidget.ui" line="67"/>
<source>SAVE %3 - %1&lt;br&gt;%2</source> <source>SAVE %3 - %1&lt;br&gt;%2</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="92"/>
<location filename="../SavegameWidget.cpp" line="93"/> <location filename="../SavegameWidget.cpp" line="93"/>
<location filename="../SavegameWidget.cpp" line="94"/>
<source>WRONG FORMAT</source> <source>WRONG FORMAT</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="107"/> <location filename="../SavegameWidget.cpp" line="57"/>
<source>AUTO</source> <source>AUTOSAVE - %1
%2</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="116"/> <location filename="../SavegameWidget.cpp" line="58"/>
<source>SAVE %3 - %1
%2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="117"/>
<source>UNKNOWN</source> <source>UNKNOWN</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="130"/> <location filename="../SavegameWidget.cpp" line="131"/>
<source>Are you sure to delete %1 from your savegames?</source> <source>Are you sure to delete %1 from your savegames?</source>
<translation>Вы уверены, что хотите удалить сохранение %1?</translation> <translation>Вы уверены, что хотите удалить сохранение %1?</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="143"/> <location filename="../SavegameWidget.cpp" line="144"/>
<source>Failed at deleting %1 from your savegames</source> <source>Failed at deleting %1 from your savegames</source>
<translation>Не удалось удалить сохранение %1</translation> <translation>Не удалось удалить сохранение %1</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="207"/> <location filename="../SavegameWidget.cpp" line="208"/>
<source>&amp;View</source> <source>&amp;View</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="209"/> <location filename="../SavegameWidget.cpp" line="210"/>
<source>&amp;Remove</source> <source>&amp;Remove</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="213"/> <location filename="../SavegameWidget.cpp" line="214"/>
<location filename="../SavegameWidget.cpp" line="221"/> <location filename="../SavegameWidget.cpp" line="222"/>
<source>&amp;Select</source> <source>&amp;Select</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="214"/> <location filename="../SavegameWidget.cpp" line="215"/>
<source>&amp;Deselect</source> <source>&amp;Deselect</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="215"/> <location filename="../SavegameWidget.cpp" line="216"/>
<location filename="../SavegameWidget.cpp" line="222"/> <location filename="../SavegameWidget.cpp" line="223"/>
<source>Select &amp;All</source> <source>Select &amp;All</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="216"/> <location filename="../SavegameWidget.cpp" line="217"/>
<source>&amp;Deselect All</source> <source>&amp;Deselect All</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -874,7 +876,7 @@ Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping
</message> </message>
<message> <message>
<location filename="../SavegameCopy.cpp" line="48"/> <location filename="../SavegameCopy.cpp" line="48"/>
<location filename="../SavegameWidget.cpp" line="208"/> <location filename="../SavegameWidget.cpp" line="209"/>
<source>&amp;Export</source> <source>&amp;Export</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

Binary file not shown.

View file

@ -981,9 +981,8 @@ Exportieren als:</translation>
%2</translation> %2</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.ui" line="67"/>
<source>SAVE - %1&lt;br&gt;%2</source> <source>SAVE - %1&lt;br&gt;%2</source>
<translation>SPIELSTAND - %1&lt;br&gt;%2</translation> <translation type="vanished">SPIELSTAND - %1&lt;br&gt;%2</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.ui" line="80"/> <location filename="../SavegameWidget.ui" line="80"/>
@ -1006,8 +1005,8 @@ Exportieren als:</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.ui" line="100"/> <location filename="../SavegameWidget.ui" line="100"/>
<location filename="../SavegameWidget.cpp" line="130"/> <location filename="../SavegameWidget.cpp" line="131"/>
<location filename="../SavegameWidget.cpp" line="143"/> <location filename="../SavegameWidget.cpp" line="144"/>
<source>Delete savegame</source> <source>Delete savegame</source>
<translation>Savegame löschen</translation> <translation>Savegame löschen</translation>
</message> </message>
@ -1017,65 +1016,78 @@ Exportieren als:</translation>
<translation>Spielstand exportieren...</translation> <translation>Spielstand exportieren...</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="57"/> <location filename="../SavegameWidget.ui" line="67"/>
<source>SAVE %3 - %1&lt;br&gt;%2</source> <source>SAVE %3 - %1&lt;br&gt;%2</source>
<translation>SPIELSTAND %3 - %1&lt;br&gt;%2</translation> <translation>SPIELSTAND %3 - %1&lt;br&gt;%2</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="92"/>
<location filename="../SavegameWidget.cpp" line="93"/> <location filename="../SavegameWidget.cpp" line="93"/>
<location filename="../SavegameWidget.cpp" line="94"/>
<source>WRONG FORMAT</source> <source>WRONG FORMAT</source>
<translation>FALSCHES FORMAT</translation> <translation>FALSCHES FORMAT</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="107"/>
<source>AUTO</source> <source>AUTO</source>
<translation>AUTO</translation> <translation type="vanished">AUTO</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="116"/> <location filename="../SavegameWidget.cpp" line="57"/>
<source>AUTOSAVE - %1
%2</source>
<translation>AUTOSAVE - %1
%2</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="58"/>
<source>SAVE %3 - %1
%2</source>
<translation>SPIELSTAND %3 - %1
%2</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="117"/>
<source>UNKNOWN</source> <source>UNKNOWN</source>
<translation>UNKNOWN</translation> <translation>UNKNOWN</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="130"/> <location filename="../SavegameWidget.cpp" line="131"/>
<source>Are you sure to delete %1 from your savegames?</source> <source>Are you sure to delete %1 from your savegames?</source>
<translation>Bist du sicher %1 von deinen Spielständen zu löschen?</translation> <translation>Bist du sicher %1 von deinen Spielständen zu löschen?</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="143"/> <location filename="../SavegameWidget.cpp" line="144"/>
<source>Failed at deleting %1 from your savegames</source> <source>Failed at deleting %1 from your savegames</source>
<translation>Fehlgeschlagen beim Löschen %1 von deinen Spielständen</translation> <translation>Fehlgeschlagen beim Löschen %1 von deinen Spielständen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="207"/> <location filename="../SavegameWidget.cpp" line="208"/>
<source>&amp;View</source> <source>&amp;View</source>
<translation>A&amp;nsehen</translation> <translation>A&amp;nsehen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="209"/> <location filename="../SavegameWidget.cpp" line="210"/>
<source>&amp;Remove</source> <source>&amp;Remove</source>
<translation>Entfe&amp;rnen</translation> <translation>Entfe&amp;rnen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="213"/> <location filename="../SavegameWidget.cpp" line="214"/>
<location filename="../SavegameWidget.cpp" line="221"/> <location filename="../SavegameWidget.cpp" line="222"/>
<source>&amp;Select</source> <source>&amp;Select</source>
<translation>Au&amp;swählen</translation> <translation>Au&amp;swählen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="214"/> <location filename="../SavegameWidget.cpp" line="215"/>
<source>&amp;Deselect</source> <source>&amp;Deselect</source>
<translation>A&amp;bwählen</translation> <translation>A&amp;bwählen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="215"/> <location filename="../SavegameWidget.cpp" line="216"/>
<location filename="../SavegameWidget.cpp" line="222"/> <location filename="../SavegameWidget.cpp" line="223"/>
<source>Select &amp;All</source> <source>Select &amp;All</source>
<translation>&amp;Alles auswählen</translation> <translation>&amp;Alles auswählen</translation>
</message> </message>
<message> <message>
<location filename="../SavegameWidget.cpp" line="216"/> <location filename="../SavegameWidget.cpp" line="217"/>
<source>&amp;Deselect All</source> <source>&amp;Deselect All</source>
<translation>Alles a&amp;bwählen</translation> <translation>Alles a&amp;bwählen</translation>
</message> </message>
@ -1115,7 +1127,7 @@ Exportieren als:</translation>
</message> </message>
<message> <message>
<location filename="../SavegameCopy.cpp" line="48"/> <location filename="../SavegameCopy.cpp" line="48"/>
<location filename="../SavegameWidget.cpp" line="208"/> <location filename="../SavegameWidget.cpp" line="209"/>
<source>&amp;Export</source> <source>&amp;Export</source>
<translation>&amp;Exportieren</translation> <translation>&amp;Exportieren</translation>
</message> </message>