mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
- Added settings page for Posted.
- Added new base class for GroupFrame settings for settings pages. - Moved usage of GroupFrame settings (forum, channel and posted) to base class. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7468 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0bcc8697ef
commit
42e579a294
22 changed files with 377 additions and 122 deletions
|
@ -23,7 +23,6 @@
|
|||
#include "GxsForumGroupDialog.h"
|
||||
#include "GxsForumThreadWidget.h"
|
||||
#include "GxsForumUserNotify.h"
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "gui/channels/ShareKey.h"
|
||||
|
||||
|
@ -31,9 +30,6 @@
|
|||
GxsForumsDialog::GxsForumsDialog(QWidget *parent)
|
||||
: GxsGroupFrameDialog(rsGxsForums, parent)
|
||||
{
|
||||
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
|
||||
|
||||
settingsChanged();
|
||||
}
|
||||
|
||||
GxsForumsDialog::~GxsForumsDialog()
|
||||
|
@ -74,11 +70,6 @@ QString GxsForumsDialog::text(TextType type)
|
|||
return "";
|
||||
}
|
||||
|
||||
RetroShareLink::enumType GxsForumsDialog::getLinkType()
|
||||
{
|
||||
return RetroShareLink::TYPE_FORUM;
|
||||
}
|
||||
|
||||
QString GxsForumsDialog::icon(IconType type)
|
||||
{
|
||||
switch (type) {
|
||||
|
@ -101,12 +92,6 @@ QString GxsForumsDialog::icon(IconType type)
|
|||
return "";
|
||||
}
|
||||
|
||||
void GxsForumsDialog::settingsChanged()
|
||||
{
|
||||
setSingleTab(!Settings->getForumOpenAllInNewTab());
|
||||
setHideTabBarWithOneTab(Settings->getForumHideTabBarWithOneTab());
|
||||
}
|
||||
|
||||
GxsGroupDialog *GxsForumsDialog::createNewGroupDialog(TokenQueue *tokenQueue)
|
||||
{
|
||||
return new GxsForumGroupDialog(tokenQueue, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue