Skip to content

Commit

Permalink
- Graph: attempt to make port labels as short as possible. (REGRESSION)
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Jul 31, 2024
1 parent 04e65f0 commit c2ecc13
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 42 deletions.
3 changes: 0 additions & 3 deletions src/qjackctlGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ void qjackctlGraphPort::setPortTitle ( const QString& title )
static const QString ellipsis(3, '.');

QString text = m_title.simplified();
const int nlength = text.indexOf(':');
if (nlength >= 0)
text.remove(0, nlength + 1);
if (text.length() >= MAX_TITLE_LENGTH + ellipsis.length())
text = ellipsis + text.right(MAX_TITLE_LENGTH).trimmed();

Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Jste si jistý?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Spojit</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Rozpojit</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Sind Sie sicher?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation type="unfinished"></translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Está seguro?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Desconectar</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ de toutes les applications clientes.
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Connecter</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Déconnecter</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ Sei sicuro?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Connetti</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Disconnetti</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>接続</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>切断</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>연결하기</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>연결해제</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ Bent u zeker?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation type="unfinished"></translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_pt_BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Tem certeza?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Disconnectar</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Соединить</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Отсоединить</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Ste si istý?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Spojiť</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Rozpojiť</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Emin misin?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation>Bağlan</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Bağlantıyı Kes</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1910"/>
<location filename="../qjackctlGraph.cpp" line="2051"/>
<location filename="../qjackctlGraph.cpp" line="1907"/>
<location filename="../qjackctlGraph.cpp" line="2048"/>
<source>Connect</source>
<translation&apos;єднати</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2123"/>
<location filename="../qjackctlGraph.cpp" line="2120"/>
<source>Disconnect</source>
<translation>Від’єднати</translation>
</message>
Expand Down

0 comments on commit c2ecc13

Please sign in to comment.