ViewSettings class allows storing and retrieving of view state information such as column size and ordering in QListViews and the such. More...
Public Member Functions | |
| def | store |
| Stores settings for the given view id. | |
| def | load |
| Loads information for the given view id. | |
| def | checkConnection |
| Checks if connection has changed and clears cache and hasSettingsModule flag. | |
| def | clear |
| Clears cache and resets state. | |
ViewSettings class allows storing and retrieving of view state information such as column size and ordering in QListViews and the such.
Settings are stored as a string (not unicode) and in most cases end up converted to/from a QByteArray; hence the need of ensuring we use str instead of unicode. That's why we enforce str() in a couple of places.
Definition at line 37 of file ViewSettings.py.
| def Koo::Common::ViewSettings::ViewSettings::clear | ( | ) |
Clears cache and resets state.
This means that after installing the koo module you don't have to close session and login again because hasSettingsModule is reset to True.
Definition at line 139 of file ViewSettings.py.
| def Koo::Common::ViewSettings::ViewSettings::load | ( | id | ) |
Loads information for the given view id.
Definition at line 92 of file ViewSettings.py.
| def Koo::Common::ViewSettings::ViewSettings::store | ( | id, | ||
| settings | ||||
| ) |
Stores settings for the given view id.
Definition at line 45 of file ViewSettings.py.