mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 22:01:05 -05:00
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:
parent
d076848f92
commit
45c0da0f0f
@ -67,13 +67,13 @@ void PostedGroupDialog::initUi()
|
|||||||
switch (mode())
|
switch (mode())
|
||||||
{
|
{
|
||||||
case MODE_CREATE:
|
case MODE_CREATE:
|
||||||
setUiText(UITYPE_SERVICE_HEADER, tr("Create New Posted Topic"));
|
setUiText(UITYPE_SERVICE_HEADER, tr("Create New Topic"));
|
||||||
break;
|
break;
|
||||||
case MODE_SHOW:
|
case MODE_SHOW:
|
||||||
setUiText(UITYPE_SERVICE_HEADER, tr("Posted Topic"));
|
setUiText(UITYPE_SERVICE_HEADER, tr("Posted Topic"));
|
||||||
break;
|
break;
|
||||||
case MODE_EDIT:
|
case MODE_EDIT:
|
||||||
setUiText(UITYPE_SERVICE_HEADER, tr("Edit Posted Topic"));
|
setUiText(UITYPE_SERVICE_HEADER, tr("Edit Topic"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
/* Images for context menu icons */
|
/* Images for context menu icons */
|
||||||
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
||||||
|
#define IMAGE_SUBSCRIBE ":/images/edit_add24.png"
|
||||||
|
#define IMAGE_UNSUBSCRIBE ":/images/cancel.png"
|
||||||
|
|
||||||
/* Images for TreeWidget */
|
/* Images for TreeWidget */
|
||||||
#define IMAGE_FOLDER ":/images/folder16.png"
|
#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()));
|
QAction *action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Submit Post"), this, SLOT(newPost()));
|
||||||
action->setEnabled(isSubscribed);
|
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->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);
|
action->setEnabled(isSubscribed);
|
||||||
|
|
||||||
contextMnu.exec(QCursor::pos());
|
contextMnu.exec(QCursor::pos());
|
||||||
|
Loading…
Reference in New Issue
Block a user