The part where the old companion9x settings are automatically transferred to companion settings is done. Tested on Linux. Should work on Windows/OSX.
Now remains only to rename all the hundreds of seting references from companion9x to companion. This is blocked until Bertrand merges his reworked edit dialogs.
This commit is contained in:
@@ -76,6 +76,17 @@ class MyProxyStyle : public QProxyStyle
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
// Start by borrowing any left over settings from companion9x
|
||||||
|
QSettings c9x_settings("companion9x", "companion9x");
|
||||||
|
QSettings com_settings("companion", "companion");
|
||||||
|
if (!com_settings.contains("pos")) {
|
||||||
|
QStringList keys = c9x_settings.allKeys();
|
||||||
|
for( QStringList::iterator i = keys.begin(); i != keys.end(); i++ )
|
||||||
|
{
|
||||||
|
com_settings.setValue( *i, c9x_settings.value( *i ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Q_INIT_RESOURCE(companion9x);
|
Q_INIT_RESOURCE(companion9x);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setApplicationName("Companion9x");
|
app.setApplicationName("Companion9x");
|
||||||
|
|||||||
Reference in New Issue
Block a user