fixed a few GUI items in the TODO list

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8143 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-04-19 15:34:14 +00:00
parent e232dcb0a3
commit 2c687928d6
3 changed files with 25 additions and 20 deletions

View file

@ -157,7 +157,12 @@ void RshareSettings::setLanguageCode(QString languageCode)
/** Gets the interface style key (e.g., "windows", "motif", etc.) */
QString RshareSettings::getInterfaceStyle()
{
return value(SETTING_STYLE).toString();
// use GTK as default style on ubuntu
#ifdef UBUNTU
return value(SETTING_STYLE,QString("GTK+")).toString();
#else
return value(SETTING_STYLE,QString("Cleanlooks")).toString();
#endif
}
/** Sets the interface style key. */
@ -180,7 +185,7 @@ void RshareSettings::setSheetName(QString sheet)
/** Gets the page button Location.*/
bool RshareSettings::getPageButtonLoc()
{
return value(SETTING_PAGEBUTTONLOC, false).toBool();
return value(SETTING_PAGEBUTTONLOC, true).toBool();
}
/** Sets the page button Location.*/
void RshareSettings::setPageButtonLoc(bool onToolBar)
@ -496,16 +501,16 @@ void RshareSettings::setChatSendMessageWithCtrlReturn(bool bValue)
setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue);
}
bool RshareSettings::getChatSearchShowBarByDefault()
{
return valueFromGroup("Chat", "SearchShowBarByDefault", false).toBool();
}
void RshareSettings::setChatSearchShowBarByDefault(bool bValue)
{
setValueToGroup("Chat", "SearchShowBarByDefault", bValue);
}
bool RshareSettings::getChatSearchShowBarByDefault()
{
return valueFromGroup("Chat", "SearchShowBarByDefault", false).toBool();
}
void RshareSettings::setChatSearchShowBarByDefault(bool bValue)
{
setValueToGroup("Chat", "SearchShowBarByDefault", bValue);
}
void RshareSettings::setChatSearchCharToStartSearch(int iValue)
{
setValueToGroup("Chat", "SearchCharToStartSearch", iValue);