mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T111, improved dot commands (e.g. ".drv") handling
* register help implementation to .cpp file * tooltip HTML formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
52805965cd
commit
d597dcec15
@@ -157,10 +157,17 @@ namespace BlackMisc
|
||||
|
||||
static const QString html("<table style=\"font-size: 8pt; white-space: nowrap;\">\n%1\n</table>");
|
||||
static const QString row("<td>%1</td><td>%2</td>");
|
||||
static const QString rowHeader("<th>%1</th><th>%2</th><th>%3</th><th>%4</th>");
|
||||
|
||||
QString rows;
|
||||
QList<CommandHtmlHelp> cmds(s_commands);
|
||||
qSort(cmds.begin(), cmds.end(), CommandHtmlHelp::less);
|
||||
|
||||
static const QString cmdCol(QString().fill('-', 20));
|
||||
static const QString textCol(QString().fill('-', 40));
|
||||
rows += "<tr>" + rowHeader.arg("command", "synopsis", "command", "synopsis") + "</tr>\n";
|
||||
rows += "<tr>" + rowHeader.arg(cmdCol, textCol, cmdCol, textCol) + "</tr>\n";
|
||||
|
||||
for (int i = 0; i < cmds.size(); i++)
|
||||
{
|
||||
CommandHtmlHelp help = cmds[i];
|
||||
|
||||
Reference in New Issue
Block a user