Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 06fe2b6

Browse files
committed
todo cleanup
1 parent 7ae023c commit 06fe2b6

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

doc/settingsviewmodel.dox

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ proceed without error checking and show an empty settings dialog.
164164
@param defaultValue a default value to return in case the value is not found in the settings
165165
@returns The value found under the given key
166166

167-
You can override this method if you want to support loading and saving settings from a
168-
different source then the normally used QSettings
167+
You can override this method if you want to support loading and saving settings from something
168+
different than a ISettingsAccessor
169169

170170
@sa SettingsViewModel::saveValue, SettingsViewModel::resetValue
171171
*/
@@ -176,8 +176,9 @@ different source then the normally used QSettings
176176
@param key The full key of the settings entry to be saved
177177
@param value The value to be stored under the key
178178

179-
You can override this method if you want to support loading and saving settings from a
180-
different source then the normally used QSettings
179+
You can override this method if you want to support loading and saving settings from something
180+
different than a ISettingsAccessor. if you do so, you must emit the valueChanged() signal
181+
from this method to indicate that the data was changed.
181182

182183
@sa SettingsViewModel::loadValue, SettingsViewModel::resetValue
183184
*/
@@ -187,8 +188,9 @@ different source then the normally used QSettings
187188

188189
@param key The full key of the settings entry to be resetted
189190

190-
You can override this method if you want to support loading and saving settings from a
191-
different source then the normally used QSettings
191+
You can override this method if you want to support loading and saving settings from something
192+
different than a ISettingsAccessor. if you do so, you must emit the valueChanged() signal
193+
from this method to indicate that the data was changed.
192194

193195
@sa SettingsViewModel::loadValue, SettingsViewModel::saveValue
194196
*/

src/mvvmcore/settingsviewmodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public Q_SLOTS:
9191
void beginLoadSetup();
9292

9393
//! Signal to be emitted whenver a value in the settings is changed or removed to update the GUI
94-
QTMVVM_REVISION_1 void valueChanged(const QString &key); //TODO add to save/reset doc
94+
QTMVVM_REVISION_1 void valueChanged(const QString &key);
9595
//! Is emitted when the user accepted the reset triggered by resetAll()
9696
QTMVVM_REVISION_1 void resetAccepted(QPrivateSignal);
9797

src/mvvmquick/inputviewfactory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ QUrl InputViewFactory::getInputUrl(const QByteArray &type, const QVariantMap &vi
2323
{
2424
Q_UNUSED(viewProperties)
2525

26-
//TODO document all types
2726
QUrl url;
2827
if(d->inputAliases.contains(type))
2928
url = getInputUrl(d->inputAliases.value(type), viewProperties);

src/mvvmwidgets/inputwidgetfactory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ InputWidgetFactory::~InputWidgetFactory() = default;
3030

3131
QWidget *InputWidgetFactory::createInput(const QByteArray &type, QWidget *parent, const QVariantMap &viewProperties)
3232
{
33-
//TODO document all types
3433
QWidget *widget = nullptr;
3534
if(d->aliases.contains(type))
3635
return createInput(d->aliases.value(type), parent, viewProperties);

0 commit comments

Comments
 (0)