mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added Posted Dialog back into GUI.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7395 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8d721c7a95
commit
095995f3e3
@ -412,9 +412,9 @@ void MainWindow::initStackedPage()
|
||||
//notify.push_back(QPair<MainPage*, QAction*>(gxsforumDialog, action));
|
||||
addPage(gxsforumDialog = new GxsForumsDialog(ui->stackPages), grp, ¬ify);
|
||||
|
||||
//PostedDialog *postedDialog = NULL;
|
||||
//addPage(postedDialog = new PostedDialog(ui->stackPages), grp, ¬ify);
|
||||
//postedDialog->setup();
|
||||
PostedDialog *postedDialog = NULL;
|
||||
addPage(postedDialog = new PostedDialog(ui->stackPages), grp, ¬ify);
|
||||
postedDialog->setup();
|
||||
|
||||
WikiDialog *wikiDialog = NULL;
|
||||
addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, ¬ify);
|
||||
|
@ -30,6 +30,8 @@
|
||||
#include "gui/Posted/PostedListDialog.h"
|
||||
#include "gui/Posted/PostedItem.h"
|
||||
|
||||
#define IMAGE_POSTED ":/images/wikibook_32.png"
|
||||
|
||||
class PostedDialog : public GxsCommentContainer
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -38,6 +40,11 @@ public:
|
||||
PostedDialog(QWidget *parent = 0)
|
||||
:GxsCommentContainer(parent) { return; }
|
||||
|
||||
virtual QIcon iconPixmap() const { return QIcon(IMAGE_POSTED) ; } //MainPage
|
||||
virtual QString pageName() const { return tr("Posted") ; } //MainPage
|
||||
virtual QString helpText() const { return ""; } //MainPage
|
||||
|
||||
|
||||
virtual GxsServiceDialog *createServiceDialog()
|
||||
{
|
||||
return new PostedListDialog(this);
|
||||
|
Loading…
Reference in New Issue
Block a user