diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp
index 3efa71f2a..32bed5cc5 100644
--- a/src/widget/form/groupchatform.cpp
+++ b/src/widget/form/groupchatform.cpp
@@ -101,13 +101,18 @@ void GroupChatForm::onSendTriggered()
msgEdit->setLastMessage(msg);
msgEdit->clear();
- if (msg.startsWith("/me "))
+ if (group->getPeersCount() != 1)
{
- msg = msg.right(msg.length() - 4);
- emit sendAction(group->getGroupId(), msg);
- } else {
- emit sendMessage(group->getGroupId(), msg);
+ if (msg.startsWith("/me "))
+ {
+ msg = msg.right(msg.length() - 4);
+ emit sendAction(group->getGroupId(), msg);
+ }
+ else
+ emit sendMessage(group->getGroupId(), msg);
}
+ else
+ addSelfMessage(msg, msg.startsWith("/me "), QDateTime::currentDateTime(), true);
}
void GroupChatForm::onUserListChanged()
diff --git a/src/widget/groupwidget.cpp b/src/widget/groupwidget.cpp
index 60c5d2297..b180fc3c0 100644
--- a/src/widget/groupwidget.cpp
+++ b/src/widget/groupwidget.cpp
@@ -51,7 +51,7 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent * event)
{
QPoint pos = event->globalPos();
QMenu menu;
- QAction* setAlias = menu.addAction(tr("Set title..."));
+ QAction* setTitle = menu.addAction(tr("Set title..."));
QAction* quitGroup = menu.addAction(tr("Quit group","Menu to quit a groupchat"));
QAction* selectedItem = menu.exec(pos);
@@ -59,7 +59,7 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent * event)
{
if (selectedItem == quitGroup)
emit removeGroup(groupId);
- else if (selectedItem == setAlias)
+ else if (selectedItem == setTitle)
{
bool ok;
Group* g = GroupList::findGroup(groupId);
@@ -69,6 +69,7 @@ void GroupWidget::contextMenuEvent(QContextMenuEvent * event)
if (ok && alias != nameLabel->fullText())
emit g->getChatForm()->groupTitleChanged(groupId, alias.left(128));
+ this->repaint();
}
}
}
diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp
index 329c9ce42..343a48071 100644
--- a/src/widget/systemtrayicon.cpp
+++ b/src/widget/systemtrayicon.cpp
@@ -331,7 +331,7 @@ void SystemTrayIcon::setVisible(bool newState)
}
}
-void SystemTrayIcon::setIcon(QIcon &&icon)
+void SystemTrayIcon::setIcon(QIcon &icon)
{
if (false);
#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
diff --git a/src/widget/systemtrayicon.h b/src/widget/systemtrayicon.h
index 1d062acfa..f15dec04a 100644
--- a/src/widget/systemtrayicon.h
+++ b/src/widget/systemtrayicon.h
@@ -17,7 +17,7 @@ public:
void show();
void hide();
void setVisible(bool);
- void setIcon(QIcon&& icon);
+ void setIcon(QIcon &icon);
signals:
void activated(QSystemTrayIcon::ActivationReason);
diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp
index a3d08b981..6549e8273 100644
--- a/src/widget/widget.cpp
+++ b/src/widget/widget.cpp
@@ -92,6 +92,10 @@ void Widget::init()
{
ui->setupUi(this);
+ QIcon themeIcon = QIcon::fromTheme("qtox");
+ if (!themeIcon.isNull())
+ setWindowIcon(themeIcon);
+
timer = new QTimer();
timer->start(1000);
offlineMsgTimer = new QTimer();
@@ -224,6 +228,9 @@ void Widget::setTranslation()
void Widget::updateTrayIcon()
{
+ if (!icon)
+ return;
+
QString status;
if (eventIcon)
status = "event";
@@ -233,10 +240,15 @@ void Widget::updateTrayIcon()
if (!status.length())
status = "offline";
}
- QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
- QString pic = ":img/taskbar/" + color + "/taskbar_" + status + ".svg";
- if (icon)
- icon->setIcon(QIcon(pic));
+
+ QIcon ico = QIcon::fromTheme("qtox-" + status);
+ if (ico.isNull())
+ {
+ QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
+ ico = QIcon(":img/taskbar/" + color + "/taskbar_" + status + ".svg");
+ }
+
+ icon->setIcon(ico);
}
Widget::~Widget()
diff --git a/translations/it.ts b/translations/it.ts
index 5abd10ec5..8486a4f7f 100644
--- a/translations/it.ts
+++ b/translations/it.ts
@@ -288,80 +288,80 @@ Ignorare le impostazioni del proxy e connettersi direttamente alla rete Tox?
ChatForm
-
+ Carica cronologia chat...
-
+ Invia un file
-
-
+
+ Impossibile leggere il file
-
-
+
+ qTox non è riuscito ad aprire %1
-
-
+
+ Pessima idea
-
-
+
+ Stai cercando di inviare un file speciale (sequenziale), questo non funzionerà!
-
+ Accetta videochiamata
-
+ Accetta chiamata
-
+ %1 ti sta chiamando
-
+ Termina videochiamata
-
+ Termina chiamata
-
-
+
+ Disattiva microfono
-
-
+
+ Disattiva audio
-
+ %1 ha fermato la chiamata
@@ -381,37 +381,37 @@ Ignorare le impostazioni del proxy e connettersi direttamente alla rete Tox?Stai chiamando %1
-
+ Avvia chiamata
-
+ Avvia videochiamata
-
+ Attiva microfono
-
+ Attiva audio
-
+ Invio del file "%1" fallito
-
+ Chiamata con %1 terminata. %2
-
+ Durata chiamata:
@@ -590,37 +590,37 @@ Disabilitando la cronologia delle chat lascerà la cronologia criptata intatta (
[anteprima]
-
+ file transfer widgetIn attesa di inviare...
-
+ file transfer widgetAccetta la ricezione di questo file
-
+ Title of permissions popupErrore
-
+ text of permissions popupNon hai sufficienti permessi per scrivere in questa locazione. Scegli un'altra posizione, o annulla il salvataggio.
-
+ file transfer widgetin pausa
-
+ Title of the file saving dialogSalva file
@@ -684,47 +684,47 @@ Disabilitando la cronologia delle chat lascerà la cronologia criptata intatta (
FriendWidget
-
+ Menu to copy the Tox ID of that friendCopia Tox ID del contatto
-
+ context menu entryAccetta automaticamente i files inviati da questo contatto
-
+ Menu to invite a friend to a groupchatInvita nel gruppo
-
+ Imposta soprannome...
-
+ Menu to remove the friend from our friendlistRimuovi contatto
-
+ popup titleScegli dove salvare i files accettati automaticamente
-
+ Rinomina contatto
-
+ Per impostare un soprannome puoi anche cliccare sul nome direttamente dalla chat.
@@ -1117,7 +1117,7 @@ will be sent to them when they will appear online to you.
-
+ Salva il log della chat
@@ -1127,12 +1127,12 @@ will be sent to them when they will appear online to you.
Rimuovi messaggi visualizzati
-
+ Non inviato
-
+ Pulito
@@ -1146,39 +1146,39 @@ will be sent to them when they will appear online to you.
%1 utenti in chat
-
+ %1 utenti in chat
-
-
+
+ Disattiva microfono
-
+ Attiva microfono
-
-
+
+ Disattiva audio
-
+ Attiva audio
-
+ Termina chiamata
-
+ Avvia chiamata
@@ -1221,136 +1221,6 @@ Title:
Nome gruppo:
-
- IdentityForm
-
-
-
- Identità
-
-
-
-
- popup title
- Chiamata in corso
-
-
-
-
- popup text
- Non puoi cambiare profilo durante una chiamata!
-
-
-
-
- renaming a profile
- Rinomina "%1"
-
-
-
-
- rename confirm title
- Profilo già esistente
-
-
-
-
- rename confirm text
- Un profilo chiamato "%1" esiste già. Vuoi sovrascriverlo?
-
-
-
-
- save dialog title
- Esporta profilo
-
-
-
-
- save dialog filter
- Tox save file (*.tox)
-
-
-
-
- Impossibile rimuovere il file
-
-
-
-
- Il file che hai scelto di sovrascrivere non può essere prima rimosso.
-
-
-
-
- Impossibile copiare il file
-
-
-
-
- Il file che hai scelto non può essere copiato.
-
-
-
-
- current profile deletion warning title
- Profilo attualmente in uso
-
-
-
-
- current profile deletion warning text
- Questo profilo è attualmente in uso. Per favore carica un profilo differente prima di eliminare questo.
-
-
-
-
- deletion confirmation title
- Eliminazione imminente!
-
-
-
-
- deletion confirmation text
- Sei sicuro di voler eliminare questo profilo?
-
-
-
-
- import dialog title
- Importa profilo
-
-
-
-
- import dialog filter
- Tox save file (*.tox)
-
-
-
-
- popup title
- File ignorato
-
-
-
-
- popup text
- Attenzione: hai scelto un file che non contiente un profilo Tox.\nQuesto file verrà ignorato.
-
-
-
-
- import confirm title
- Profilo già esistente
-
-
-
-
- import confirm text
- Un profilo chiamato "%1" esiste già. Vuoi sovrascriverlo?
-
-IdentitySettings
@@ -1359,22 +1229,22 @@ Nome gruppo:
Informazioni Pubbliche
-
+ Nome
-
+ Stato
-
+ Tox ID
-
+ Tox ID tooltip
@@ -1382,58 +1252,58 @@ Share it with your friends to communicate.
Condivilo con chi vuoi comunicare.
-
+ (clicca qui per copiare)
-
+ Gestione Profili
-
+ Profili disponibili:
-
+ toolTip for currently set profileProfilo corrente.
-
+ tooltip for loading profile buttonCarica il profilo selezionato.
-
+ load profile buttonCarica
-
+ rename profile buttonRinomina
-
+ tooltip for renaming profile buttonRinomina il profilo selezionato.
-
+ export profile buttonEsporta
-
+ tooltip for profile exporting button
@@ -1441,37 +1311,37 @@ Profile does not contain your history.
I profili non contengono la cronologia messaggi.
-
+ delete profile button tooltipElimina il profilo selezionato.
-
+ delete profile buttonElimina
-
+ import profile buttonImporta profilo
-
+ tooltip for importing profile buttonImporta un profilo da un file ".tox".
-
+ tooltip for creating new Tox ID buttonCrea un nuovo profilo (Tox ID) e iniza subito ad usarlo.
-
+ new profile buttonNuovo profilo
@@ -1493,37 +1363,37 @@ I profili non contengono la cronologia messaggi.
MainWindow
-
+ qTox User
-
+ Toxing on qTox
-
+ Aggiungi contatto
-
+ Crea un gruppo
-
+ Visualizza i trasferimenti completati
-
+ Cambia le impostazioni
-
+ Chiudi
@@ -1722,6 +1592,163 @@ ma i nuovi contatti dovranno conoscere il tuo nuovo Tox ID per aggiungerti.Genera valore nospam casuale
+
+ ProfileForm
+
+
+
+ Profilo Utente
+
+
+
+
+ Scegli un'immagine per il profilo
+
+
+
+
+
+
+ Errore
+
+
+
+
+ Impossibile aprire il file
+
+
+
+
+ Impossibile leggere l'immagine
+
+
+
+
+ L'immagine è troppo grande
+
+
+
+
+ popup title
+ Chiamata in corso
+
+
+
+
+ popup text
+ Non puoi cambiare profilo durante una chiamata!
+
+
+
+
+ renaming a profile
+ Rinomina "%1"
+
+
+
+
+ rename confirm title
+ Profilo già esistente
+
+
+
+
+ rename confirm text
+ Un profilo chiamato "%1" esiste già. Vuoi sovrascriverlo?
+
+
+
+
+ save dialog title
+ Esporta profilo
+
+
+
+
+ save dialog filter
+ Tox save file (*.tox)
+
+
+
+
+ Impossibile rimuovere il file
+
+
+
+
+ Il file che hai scelto di sovrascrivere non può essere prima rimosso.
+
+
+
+
+ Impossibile copiare il file
+
+
+
+
+ Il file che hai scelto non può essere copiato.
+
+
+
+
+ current profile deletion warning title
+ Profilo attualmente in uso
+
+
+
+
+ current profile deletion warning text
+ Questo profilo è attualmente in uso. Per favore carica un profilo differente prima di eliminare questo.
+
+
+
+
+ deletion confirmation title
+ Eliminazione imminente!
+
+
+
+
+ deletion confirmation text
+ Sei sicuro di voler eliminare questo profilo?
+
+
+
+
+ import dialog title
+ Importa profilo
+
+
+
+
+ import dialog filter
+ Tox save file (*.tox)
+
+
+
+
+ popup title
+ File ignorato
+
+
+
+
+ popup text
+ Attenzione: hai scelto un file che non contiente un profilo Tox.\nQuesto file verrà ignorato.
+
+
+
+
+ import confirm title
+ Profilo già esistente
+
+
+
+
+ import confirm text
+ Un profilo chiamato "%1" esiste già. Vuoi sovrascriverlo?
+
+QObject
@@ -1772,17 +1799,17 @@ It will be installed when qTox restarts.
Verrà installata al riavvio del programma.
-
+ URI Tox da interpretare
-
+ Avvia una nuova istanza caricando il profilo selezionato.
-
+ profilo
@@ -1974,153 +2001,131 @@ Se non sei sicuro, scegli "No", così le informazioni inviate al serve
Widget
-
+ &Esci
-
+ Button to set your status to 'Online'Online
-
+ Button to set your status to 'Away'Assente
-
+ Button to set your status to 'Busy'Occupato
-
-
- Scegli un'immagine per il profilo
-
-
-
-
-
-
- Errore
-
-
-
-
- Impossibile aprire il file
-
-
-
-
- Impossibile leggere l'immagine
-
-
-
-
- L'immagine è troppo grande
-
-
-
+ Impossibile avviare Toxcore.\nqTox terminerà dopo che avrai chiuso questo messaggio.
-
+ popup textImpossibile avviare Toxcore con le tue impostazione proxy.\nqTox non può funzionare correttamente, per favore modifica le impostazioni e riavvia il programma.
-
+ Aggiungi contatto
-
+ Files trasferiti
-
+ popup titleFile eseguibile
-
+ popup textHai chiesto a qTox di aprire un file eseguibile. I files eseguibili possono danneggiare il tuo computer. Sei sicuro di voler aprire questo file?
-
+ Impostazioni
-
+
+
+ Profilo
+
+
+ Impossibile inviare la richiesta d'amicizia
-
+ contact statusassente
-
+ contact statusoccupato
-
+ contact statusoffline
-
+ contact statusonline
-
+ e.g. "Dubslow is now online"%1 è ora %2
-
+ popup titleInvito chat di gruppo
-
+ popup text%1 ti ha invitato in una chat di gruppo. Vuoi partecipare?
-
+ Placeholder when we don't know someone's name in a group chat<Sconosciuto>
-
+ %1 ha impostato il titolo in %2
-
+ Impossibile inviare il messaggio