Commit fc866e6f authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Add tooltips on folders and entries

parent 9c5b4af4
......@@ -53,6 +53,7 @@ QStandardItem *SSHManagerModel::addTopLevelItem(const QString &name)
auto *newItem = new QStandardItem();
newItem->setText(name);
newItem->setToolTip(i18n("%1 is a folder for SSH Entries", name));
invisibleRootItem()->appendRow(newItem);
invisibleRootItem()->sortChildren(0);
return newItem;
......@@ -74,7 +75,8 @@ void SSHManagerModel::addChildItem(const SSHConfigurationData &config, const QSt
auto newChild = new QStandardItem();
newChild->setData(QVariant::fromValue(config), SSHRole);
newChild->setData(config.name, Qt::DisplayRole);
newChild->setText(config.name);
newChild->setToolTip(i18n("Host: %1", config.host));
item->appendRow(newChild);
item->sortChildren(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment