Changeset 5457 in ntrip for trunk/GnssCenter/monitor


Ignore:
Timestamp:
Sep 15, 2013, 10:12:32 AM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/monitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/monitor.cpp

    r5456 r5457  
    6969  connect(_actStopThrift, SIGNAL(triggered()), this, SLOT(slotStopThrift()));
    7070
    71   // Host and Port
    72   // -------------
    73   t_settings settings(pluginName);
     71  // Window title
     72  // ------------
     73  setTitle();
    7474
    7575  // Thrift Client;
     
    9292}
    9393
     94// Set title
     95/////////////////////////////////////////////////////////////////////////////
     96void t_monitor::setTitle() {
     97  t_settings settings(pluginName);
     98  QString host = settings.value("host").toString();
     99  QString port = settings.value("port").toString();
     100  setWindowTitle(QString(pluginName) + ": " + host + ':' + port);
     101}
     102
    94103//
    95104/////////////////////////////////////////////////////////////////////////////
     
    97106  t_dlgConf dlg(this);
    98107  dlg.exec();
     108  setTitle();
    99109}
    100110
  • trunk/GnssCenter/monitor/monitor.h

    r5456 r5457  
    3131
    3232 private:
     33  void setTitle();
    3334  QMutex                        _mutex;
    3435  QTabWidget*                   _tabWidget;
Note: See TracChangeset for help on using the changeset viewer.