void DhtWindow::updateDisplay() { /* do nothing if locked, or not visible */ if (RsAutoUpdatePage::eventsLocked() == true) { #ifdef DEBUG_DHTWINDOW std::cerr << "DhtWindow::update() events Are Locked" << std::endl; #endif return; } if (!rsDht) { #ifdef DEBUG_DHTWINDOW std::cerr << "DhtWindow::update rsDht NOT Set" << std::endl; #endif return; } RsAutoUpdatePage::lockAllEvents(); //std::cerr << "DhtWindow::update()" << std::endl; updateNetStatus(); updateNetPeers(); updateDhtPeers(); updateRelays(); RsAutoUpdatePage::unlockAllEvents() ; QHeaderView_setSectionResizeMode(ui.peerTreeWidget->header(), QHeaderView::ResizeToContents); QHeaderView_setSectionResizeMode(ui.dhtTreeWidget->header(), QHeaderView::ResizeToContents); QHeaderView_setSectionResizeMode(ui.relayTreeWidget->header(), QHeaderView::ResizeToContents); }
GlobalRouterStatistics::GlobalRouterStatistics(QWidget *parent) : RsAutoUpdatePage(2000,parent) { setupUi(this) ; m_bProcessSettings = false; _router_F->setWidget( _tst_CW = new GlobalRouterStatisticsWidget() ) ; /* Set header resize modes and initial section sizes Uploads TreeView*/ QHeaderView_setSectionResizeMode(treeWidget->header(), QHeaderView::ResizeToContents); // load settings processSettings(true); }
BwCtrlWindow::BwCtrlWindow(QWidget *parent) : RsAutoUpdatePage(1000,parent) { setupUi(this); BWDelegate = new BWListDelegate(); bwTreeWidget->setItemDelegate(BWDelegate); float FS = QFontMetricsF(font()).height(); float fact = FS/14.0 ; /* Set header resize modes and initial section sizes Peer TreeView*/ QHeaderView * _header = bwTreeWidget->header () ; // _header->resizeSection ( COLUMN_RSNAME, 170*fact ); QHeaderView_setSectionResizeMode(_header, QHeaderView::ResizeToContents); }
GlobalRouterStatistics::GlobalRouterStatistics(QWidget *parent) : RsAutoUpdatePage(2000,parent) { setupUi(this) ; m_bProcessSettings = false; _router_F->setWidget( _tst_CW = new GlobalRouterStatisticsWidget() ) ; /* Set header resize modes and initial section sizes Uploads TreeView*/ QHeaderView_setSectionResizeMode(treeWidget->header(), QHeaderView::ResizeToContents); connect(treeWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(CustomPopupMenu(QPoint))); // load settings processSettings(true); }