Added new fixes from Phenom (AddFrameListeInsteadOfToolBar_v0.6_7360.patch)

Add an option for List item icon size.                          
Save state for List Item and Option window.                     
Make ListItem linked with Function pointer instead of SLOT char.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7361 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-05-10 18:05:18 +00:00
parent bcff888eb7
commit 995d63c979
10 changed files with 561 additions and 399 deletions

View file

@ -102,6 +102,21 @@ bool AppearancePage::save(QString &errmsg)
case 3:
Settings->setToolButtonSize(32);
}
switch (ui.cmboListItemSize->currentIndex())
{
case 0:
Settings->setListItemIconSize(8);
break;
case 1:
Settings->setListItemIconSize(16);
break;
case 2:
default:
Settings->setListItemIconSize(24);
break;
case 3:
Settings->setListItemIconSize(32);
}
/* Set to new style */
Rshare::setStyle(ui.cmboStyle->currentText());
@ -159,6 +174,21 @@ void AppearancePage::load()
case 32:
ui.cmboTollButtonsSize->setCurrentIndex(3);
}
switch (Settings->getListItemIconSize())
{
case 8:
ui.cmboListItemSize->setCurrentIndex(0);
break;
case 16:
ui.cmboListItemSize->setCurrentIndex(1);
break;
case 24:
default:
ui.cmboListItemSize->setCurrentIndex(2);
break;
case 32:
ui.cmboListItemSize->setCurrentIndex(3);
}
}
void AppearancePage::loadStyleSheet(int index)