mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 04:44:21 -05:00
Enabled Post to Forum for ForumNewItem
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2985 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c3e1a71279
commit
b4a4ce07af
@ -269,8 +269,8 @@ void ForumMsgItem::replyToPost()
|
|||||||
if (mParent)
|
if (mParent)
|
||||||
{
|
{
|
||||||
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, mPostId);
|
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, mPostId);
|
||||||
CreateForumMsg *cfm = new CreateForumMsg(mForumId, mPostId);
|
CreateForumMsg *cfm = new CreateForumMsg(mForumId, mPostId);
|
||||||
cfm->show();
|
cfm->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "FeedHolder.h"
|
#include "FeedHolder.h"
|
||||||
|
|
||||||
#include "rsiface/rsforums.h"
|
#include "rsiface/rsforums.h"
|
||||||
|
#include "gui/forums/CreateForumMsg.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ ForumNewItem::ForumNewItem(FeedHolder *parent, uint32_t feedId, std::string foru
|
|||||||
/* specific ones */
|
/* specific ones */
|
||||||
connect( subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeForum ( void ) ) );
|
connect( subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeForum ( void ) ) );
|
||||||
// To Cheeky to post on a brand new forum....
|
// To Cheeky to post on a brand new forum....
|
||||||
//connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
|
connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
|
||||||
|
|
||||||
small();
|
small();
|
||||||
updateItemStatic();
|
updateItemStatic();
|
||||||
@ -79,12 +80,12 @@ void ForumNewItem::updateItemStatic()
|
|||||||
if (fi.subscribeFlags & RS_DISTRIB_SUBSCRIBED)
|
if (fi.subscribeFlags & RS_DISTRIB_SUBSCRIBED)
|
||||||
{
|
{
|
||||||
subscribeButton->setEnabled(false);
|
subscribeButton->setEnabled(false);
|
||||||
//postButton->setEnabled(true);
|
postButton->setEnabled(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
subscribeButton->setEnabled(true);
|
subscribeButton->setEnabled(true);
|
||||||
//postButton->setEnabled(false);
|
postButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -209,6 +210,8 @@ void ForumNewItem::postToForum()
|
|||||||
if (mParent)
|
if (mParent)
|
||||||
{
|
{
|
||||||
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, "");
|
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, "");
|
||||||
|
CreateForumMsg *cfm = new CreateForumMsg(mForumId, "");
|
||||||
|
cfm->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,6 +157,17 @@ border-radius: 10px}</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="postButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../images.qrc">
|
||||||
|
<normaloff>:/images/mail_new.png</normaloff>:/images/mail_new.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -211,7 +222,7 @@ border-radius: 10px}</string>
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Forum Description</string>
|
<string>Forum Description</string>
|
||||||
</property>
|
</property>
|
||||||
@ -285,6 +296,7 @@ border-radius: 10px}</string>
|
|||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
Reference in New Issue
Block a user