diff --git a/src/blackgui/editors/networksetupform.ui b/src/blackgui/editors/networksetupform.ui
index 598c572a1..d0c7d399d 100644
--- a/src/blackgui/editors/networksetupform.ui
+++ b/src/blackgui/editors/networksetupform.ui
@@ -6,7 +6,7 @@
0
0
- 118
+ 99
31
@@ -17,7 +17,7 @@
-
- dynamic offset times
+ for future usage
diff --git a/src/blackmisc/network/settings/networksettings.cpp b/src/blackmisc/network/settings/networksettings.cpp
index 3e0a4df0c..0ab0d4fd8 100644
--- a/src/blackmisc/network/settings/networksettings.cpp
+++ b/src/blackmisc/network/settings/networksettings.cpp
@@ -8,9 +8,10 @@
*/
#include "networksettings.h"
+#include "blackmisc/stringutils.h"
+
#include
#include
-#include "blackmisc/stringutils.h"
namespace BlackMisc
{
@@ -21,33 +22,32 @@ namespace BlackMisc
QString CNetworkSettings::convertToQString(bool i18n) const
{
Q_UNUSED(i18n);
- return QStringLiteral("dyn.offset: ") % boolToYesNo(this->isUsingDynamicOffsetTimes());
+ return QStringLiteral("NOT USED");
}
CVariant CNetworkSettings::propertyByIndex(const CPropertyIndex &index) const
{
if (index.isMyself()) { return CVariant::from(*this); }
- const ColumnIndex i = index.frontCasted();
- switch (i)
- {
- case IndexDynamicOffsetTime: return CVariant::fromValue(m_dynamicOffsetTimes);
- default: break;
- }
+ // const ColumnIndex i = index.frontCasted();
+ // switch (i)
+ // {
+ // case IndexDynamicOffsetTime: return CVariant::fromValue(m_dynamicOffsetTimes);
+ // default: break;
+ // }
return CValueObject::propertyByIndex(index);
}
void CNetworkSettings::setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant)
{
if (index.isMyself()) { (*this) = variant.to(); return; }
- const ColumnIndex i = index.frontCasted();
- switch (i)
- {
- case IndexDynamicOffsetTime: this->setDynamicOffsetTimes(variant.toBool()); break;
- default: break;
- }
+ // const ColumnIndex i = index.frontCasted();
+ // switch (i)
+ // {
+ // case IndexDynamicOffsetTime: this->setDynamicOffsetTimes(variant.toBool()); break;
+ // default: break;
+ // }
CValueObject::setPropertyByIndex(index, variant);
}
-
} // ns
} // ns
} // ns
diff --git a/src/blackmisc/network/settings/networksettings.h b/src/blackmisc/network/settings/networksettings.h
index 451ec5fb4..1d0847200 100644
--- a/src/blackmisc/network/settings/networksettings.h
+++ b/src/blackmisc/network/settings/networksettings.h
@@ -29,6 +29,7 @@ namespace BlackMisc
namespace Settings
{
//! Network settings
+ //! \remark CURRENTLY a STUB not used
class BLACKMISC_EXPORT CNetworkSettings : public CValueObject
{
public:
@@ -41,12 +42,6 @@ namespace BlackMisc
//! Constructor
CNetworkSettings() {}
- //! Dynamic offset values?
- bool isUsingDynamicOffsetTimes() const { return m_dynamicOffsetTimes; }
-
- //! Dynamic offset values?
- void setDynamicOffsetTimes(bool dynamic) { m_dynamicOffsetTimes = dynamic; }
-
//! \copydoc BlackMisc::Mixin::String::toQString
QString convertToQString(bool i18n = false) const;
@@ -57,11 +52,11 @@ namespace BlackMisc
void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant);
private:
- bool m_dynamicOffsetTimes = false;
+ bool m_dummy = false;
BLACK_METACLASS(
CNetworkSettings,
- BLACK_METAMEMBER(dynamicOffsetTimes)
+ BLACK_METAMEMBER(dummy)
);
};
} // ns