mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-09 07:02:41 -04:00
Added new setting for the position and the margin of the toaster.
Cleaned translation of the toaster GUI. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3906 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4b16ffcc83
commit
3ecb987a4e
11 changed files with 497 additions and 352 deletions
|
@ -331,6 +331,26 @@ bool RshareSettings::getChatSendMessageWithCtrlReturn()
|
|||
return valueFromGroup("Chat", "SendMessageWithCtrlReturn", false).toBool();
|
||||
}
|
||||
|
||||
RshareSettings::enumToasterPosition RshareSettings::getToasterPosition()
|
||||
{
|
||||
return (enumToasterPosition) value("ToasterPosition", TOASTERPOS_BOTTOMRIGHT).toInt();
|
||||
}
|
||||
|
||||
void RshareSettings::setToasterPosition(enumToasterPosition position)
|
||||
{
|
||||
setValue("ToasterPosition", position);
|
||||
}
|
||||
|
||||
QPoint RshareSettings::getToasterMargin()
|
||||
{
|
||||
return value("ToasterMargin", QPoint(10, 10)).toPoint();
|
||||
}
|
||||
|
||||
void RshareSettings::setToasterMargin(QPoint margin)
|
||||
{
|
||||
setValue("ToasterMargin", margin);
|
||||
}
|
||||
|
||||
void RshareSettings::setChatSendMessageWithCtrlReturn(bool bValue)
|
||||
{
|
||||
setValueToGroup("Chat", "SendMessageWithCtrlReturn", bValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue