mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 04:44:19 -04:00
Merge branch 'master' of https://github.com/RetroShare/RetroShare
This commit is contained in:
commit
5f7327f87e
6 changed files with 34 additions and 5 deletions
|
@ -42,6 +42,7 @@ bool ForumPage::save(QString &/*errmsg*/)
|
|||
Settings->setForumMsgSetToReadOnActivate(ui.setMsgToReadOnActivate->isChecked());
|
||||
Settings->setForumExpandNewMessages(ui.expandNewMessages->isChecked());
|
||||
Settings->setForumLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked());
|
||||
Settings->setForumLoadEmoticons(ui.loadEmoticons->isChecked());
|
||||
|
||||
ui.groupFrameSettingsWidget->saveSettings(GroupFrameSettings::Forum);
|
||||
|
||||
|
@ -54,6 +55,7 @@ void ForumPage::load()
|
|||
ui.setMsgToReadOnActivate->setChecked(Settings->getForumMsgSetToReadOnActivate());
|
||||
ui.expandNewMessages->setChecked(Settings->getForumExpandNewMessages());
|
||||
ui.loadEmbeddedImages->setChecked(Settings->getForumLoadEmbeddedImages());
|
||||
ui.loadEmoticons->setChecked(Settings->getForumLoadEmoticons());
|
||||
|
||||
ui.groupFrameSettingsWidget->loadSettings(GroupFrameSettings::Forum);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>423</width>
|
||||
<width>507</width>
|
||||
<height>340</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -38,6 +38,16 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="loadEmoticons">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>This option is costly and it's in the dev's plans to improve it. In the mean time it's disabled by default. If you enable it and long forum posts take a while to display, then disable it again. </p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Load emoticons (costly)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -1041,12 +1041,18 @@ bool RshareSettings::getForumLoadEmbeddedImages()
|
|||
{
|
||||
return valueFromGroup("Forum", "LoadEmbeddedImages", false).toBool();
|
||||
}
|
||||
|
||||
bool RshareSettings::getForumLoadEmoticons()
|
||||
{
|
||||
return valueFromGroup("Forum", "LoadEmoticons", false).toBool();
|
||||
}
|
||||
void RshareSettings::setForumLoadEmbeddedImages(bool value)
|
||||
{
|
||||
setValueToGroup("Forum", "LoadEmbeddedImages", value);
|
||||
}
|
||||
|
||||
void RshareSettings::setForumLoadEmoticons(bool value)
|
||||
{
|
||||
setValueToGroup("Forum", "LoadEmoticons", value);
|
||||
}
|
||||
/* Channel */
|
||||
bool RshareSettings::getChannelLoadThread()
|
||||
{
|
||||
|
|
|
@ -305,6 +305,8 @@ public:
|
|||
void setForumExpandNewMessages(bool value);
|
||||
bool getForumLoadEmbeddedImages();
|
||||
void setForumLoadEmbeddedImages(bool value);
|
||||
bool getForumLoadEmoticons();
|
||||
void setForumLoadEmoticons(bool value);
|
||||
|
||||
/* Channel */
|
||||
bool getChannelLoadThread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue