1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Implemented save/save as in the configuration file editor

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26863 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-15 20:55:56 +00:00
parent 0c26a790ee
commit 267a446887
5 changed files with 70 additions and 7 deletions

View file

@ -114,11 +114,18 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const
void ProjectModel::activated(const QModelIndex &index)
{
if(index.row() == 0)
mainWindow->loadConfigTab(new ConfigDocument(settings,
settings.value("themebase",
"") + "/" +
files[index.row()]));
{
ConfigDocument* doc = new ConfigDocument(settings,
settings.value("themebase",
"") + "/" +
files[index.row()]);
QObject::connect(doc, SIGNAL(configFileChanged(QString)),
mainWindow, SLOT(configFileChanged(QString)));
mainWindow->loadConfigTab(doc);
}
else
{
mainWindow->loadTabFromSkinFile(settings.value("themebase", "")
+ "/" + files[index.row()]);
}
}