[Qt] tweak new peers tab in console window
- remove starting height as table header and replace with ping time - remove columnResizingFixer - add local address (if available) in detailed node view (on top of the right view below the remote address) - remove some .c_str() by using QString::fromStdString() - rename Address to Address/Hostname - rename secs to just s for ping time - use MODEL_UPDATE_DELAY from guiconstants.h for the peer refresh time - make PeerTableModel::columnCount() return no hard-coded value - remove and cleanup dup private: section in RPCConsole header - add new defaults for column sizes - remove behaviour which keeps disconnected peers selected and also remove code which keeps track of last selected peer stats - add sync height to detail view - add some additional NULL pointer checks for clientModel in rpcconsole.cpp
This commit is contained in:
@@ -44,21 +44,6 @@ public:
|
||||
protected:
|
||||
virtual bool eventFilter(QObject* obj, QEvent *event);
|
||||
|
||||
private:
|
||||
/** show detailed information on ui about selected node */
|
||||
void updateNodeDetail(const CNodeCombinedStats *combinedStats);
|
||||
/** initialize peer table */
|
||||
void initPeerTable();
|
||||
|
||||
enum ColumnWidths
|
||||
{
|
||||
ADDRESS_COLUMN_WIDTH = 250,
|
||||
MINIMUM_COLUMN_WIDTH = 120
|
||||
};
|
||||
|
||||
/** track the node that we are currently viewing detail on in the peers tab */
|
||||
CNodeCombinedStats detailNodeStats;
|
||||
|
||||
private slots:
|
||||
void on_lineEdit_returnPressed();
|
||||
void on_tabWidget_currentChanged(int index);
|
||||
@@ -96,15 +81,23 @@ signals:
|
||||
|
||||
private:
|
||||
static QString FormatBytes(quint64 bytes);
|
||||
void startExecutor();
|
||||
void setTrafficGraphRange(int mins);
|
||||
/** show detailed information on ui about selected node */
|
||||
void updateNodeDetail(const CNodeCombinedStats *stats);
|
||||
|
||||
enum ColumnWidths
|
||||
{
|
||||
ADDRESS_COLUMN_WIDTH = 200,
|
||||
SUBVERSION_COLUMN_WIDTH = 100,
|
||||
PING_COLUMN_WIDTH = 80
|
||||
};
|
||||
|
||||
Ui::RPCConsole *ui;
|
||||
ClientModel *clientModel;
|
||||
QStringList history;
|
||||
GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
|
||||
int historyPtr;
|
||||
|
||||
void startExecutor();
|
||||
NodeId cachedNodeid;
|
||||
};
|
||||
|
||||
#endif // RPCCONSOLE_H
|
||||
|
||||
Reference in New Issue
Block a user