case Qt::ToolTipRole:
switch(index.column()) {
case 0:
- return "<b>The shortcut for the alias</b><br />"
+ return tr("<b>The shortcut for the alias</b><br />"
"It can be used as a regular slash command.<br /><br />"
- "<b>Example:</b> \"foo\" can be used per /foo";
+ "<b>Example:</b> \"foo\" can be used per /foo");
case 1:
- return "<b>The string the shortcut will be expanded to</b><br />"
+ return tr("<b>The string the shortcut will be expanded to</b><br />"
"<b>special variables:</b><br />"
" - <b>$i</b> represents the i'th parameter.<br />"
" - <b>$i..j</b> represents the i'th to j'th parameter separated by spaces.<br />"
" - <b>$nick</b> your current nickname<br />"
" - <b>$channel</b> the name of the selected channel<br /><br />"
"Multiple commands can be separated with semicolons<br /><br />"
- "<b>Example:</b> \"Test $1; Test $2; Test All $0\" will be expanded to three separate messages \"Test 1\", \"Test 2\" and \"Test All 1 2 3\" when called like /test 1 2 3";
+ "<b>Example:</b> \"Test $1; Test $2; Test All $0\" will be expanded to three separate messages \"Test 1\", \"Test 2\" and \"Test All 1 2 3\" when called like /test 1 2 3");
default:
return QVariant();
}
}
void AliasesModel::initDone() {
- reset();
_modelReady = true;
+ reset();
emit modelReady(true);
}
void AliasesModel::clientConnected() {
- connect(Client::aliasManager(), SIGNAL(updated(QVariantMap)), SLOT(revert()));
+ connect(Client::aliasManager(), SIGNAL(updated()), SLOT(revert()));
if(Client::aliasManager()->isInitialized())
initDone();
else
void AliasesModel::clientDisconnected() {
// clear
_clonedAliasManager = ClientAliasManager();
- reset();
_modelReady = false;
+ reset();
emit modelReady(false);
}