Changeset 5453 in ntrip for trunk/GnssCenter/main


Ignore:
Timestamp:
Sep 14, 2013, 3:33:22 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/main/settings.cpp

    r5452 r5453  
    2626// Constructor
    2727////////////////////////////////////////////////////////////////////////////
    28 t_settings::t_settings() {
     28t_settings::t_settings(const QString& groupName) {
    2929  QMutexLocker locker(&_mutex);
    3030
    31   _app = static_cast<t_app*>(qApp);
     31  _groupName = groupName;
     32  _app       = static_cast<t_app*>(qApp);
    3233
    3334  // First fill the options
     
    111112  settings.sync();
    112113}
    113 
    114 //
    115 ////////////////////////////////////////////////////////////////////////////
    116 void t_settings::beginGroup(const QString& groupName) {
    117   QMutexLocker locker(&_mutex);
    118   _groupName = groupName;
    119 }
    120 
    121 //
    122 ////////////////////////////////////////////////////////////////////////////
    123 void t_settings::endGroup() {
    124   QMutexLocker locker(&_mutex);
    125   _groupName.clear();
    126 }
  • trunk/GnssCenter/main/settings.h

    r5452 r5453  
    1010class t_settings {
    1111 public:
    12   t_settings();
     12  t_settings(const QString& groupName = QString());
    1313  ~t_settings();
    1414  QVariant value(const QString& key,
     
    1717  void remove(const QString& key );
    1818  void sync();
    19   void beginGroup(const QString& groupName);
    20   void endGroup();
    2119 private:
    2220  void reRead();
Note: See TracChangeset for help on using the changeset viewer.