Convert RPC console to QTextEdit instead of QTableView

* This allows copy/pasting whole or partial messages
* Handle output more consistently in console
    * No more scrollbars-in-scrollbars: by setting per-pixel scrolling on the table, cells can have any height
* Decorations for "request" and "reply" are changed to the txin and txout icons instead of colored squares
This commit is contained in:
Wladimir J. van der Laan
2012-05-12 12:30:07 +02:00
parent 97ec4e50b1
commit c6aa86afc2
3 changed files with 63 additions and 90 deletions

View File

@@ -37,15 +37,13 @@ private slots:
public slots:
void clear();
void message(int category, const QString &message);
void message(int category, const QString &message, bool html = false);
/** Set number of connections shown in the UI */
void setNumConnections(int count);
/** Set number of blocks shown in the UI */
void setNumBlocks(int count);
/** Go forward or back in history */
void browseHistory(int offset);
/** Copy currently selected message to clipboard */
void copyMessage();
signals:
// For RPC command executor
@@ -55,7 +53,6 @@ signals:
private:
Ui::RPCConsole *ui;
ClientModel *clientModel;
bool firstLayout;
QStringList history;
int historyPtr;