changed default header text

and context menu icons

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6737 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2013-09-13 18:31:37 +00:00
parent d076848f92
commit 45c0da0f0f
2 changed files with 6 additions and 4 deletions

View File

@ -67,13 +67,13 @@ void PostedGroupDialog::initUi()
switch (mode())
{
case MODE_CREATE:
setUiText(UITYPE_SERVICE_HEADER, tr("Create New Posted Topic"));
setUiText(UITYPE_SERVICE_HEADER, tr("Create New Topic"));
break;
case MODE_SHOW:
setUiText(UITYPE_SERVICE_HEADER, tr("Posted Topic"));
break;
case MODE_EDIT:
setUiText(UITYPE_SERVICE_HEADER, tr("Edit Posted Topic"));
setUiText(UITYPE_SERVICE_HEADER, tr("Edit Topic"));
break;
}

View File

@ -39,6 +39,8 @@
/* Images for context menu icons */
#define IMAGE_MESSAGE ":/images/folder-draft.png"
#define IMAGE_SUBSCRIBE ":/images/edit_add24.png"
#define IMAGE_UNSUBSCRIBE ":/images/cancel.png"
/* Images for TreeWidget */
#define IMAGE_FOLDER ":/images/folder16.png"
@ -177,9 +179,9 @@ void PostedListDialog::groupListCustomPopupMenu(QPoint /*point*/)
QAction *action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Submit Post"), this, SLOT(newPost()));
action->setEnabled(isSubscribed);
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Subscribe"), this, SLOT(subscribeTopic()));
action = contextMnu.addAction(QIcon(IMAGE_SUBSCRIBE), tr("Subscribe"), this, SLOT(subscribeTopic()));
action->setEnabled(!isSubscribed);
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Unsubscribe"), this, SLOT(unsubscribeTopic()));
action = contextMnu.addAction(QIcon(IMAGE_UNSUBSCRIBE), tr("Unsubscribe"), this, SLOT(unsubscribeTopic()));
action->setEnabled(isSubscribed);
contextMnu.exec(QCursor::pos());