Added voteup/votedown icons to the comments tree context menu
Added icons for Top and New buttons in Posted Links git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6663 b45a01b8-16f6-495d-af2f-9b41ad6348cc
@ -73,7 +73,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>605</width>
|
<width>605</width>
|
||||||
<height>340</height>
|
<height>332</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -183,8 +183,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>24</width>
|
||||||
<height>16</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@ -200,6 +200,16 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>New</string>
|
<string>New</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="Posted_images.qrc">
|
||||||
|
<normaloff>:/images/new_24.png</normaloff>:/images/new_24.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize">
|
||||||
|
<size>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -213,6 +223,16 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Top</string>
|
<string>Top</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../images.qrc">
|
||||||
|
<normaloff>:/images/vote_up.png</normaloff>:/images/vote_up.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize">
|
||||||
|
<size>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -295,6 +315,7 @@
|
|||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="Posted_images.qrc"/>
|
<include location="Posted_images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
<file>images/posted_add_32.png</file>
|
<file>images/posted_add_32.png</file>
|
||||||
<file>images/posted_add_64.png</file>
|
<file>images/posted_add_64.png</file>
|
||||||
<file>images/hot_24.png</file>
|
<file>images/hot_24.png</file>
|
||||||
|
<file>images/new_24.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
retroshare-gui/src/gui/Posted/images/hot_128.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
retroshare-gui/src/gui/Posted/images/hot_256.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
retroshare-gui/src/gui/Posted/images/hot_64.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
retroshare-gui/src/gui/Posted/images/new_128.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
retroshare-gui/src/gui/Posted/images/new_24.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
retroshare-gui/src/gui/Posted/images/new_32.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
retroshare-gui/src/gui/Posted/images/new_48.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
retroshare-gui/src/gui/Posted/images/new_64.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
@ -48,6 +48,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_VOTEUP ":/images/vote_up.png"
|
||||||
|
#define IMAGE_VOTEDOWN ":/images/vote_down.png"
|
||||||
|
|
||||||
GxsCommentTreeWidget::GxsCommentTreeWidget(QWidget *parent)
|
GxsCommentTreeWidget::GxsCommentTreeWidget(QWidget *parent)
|
||||||
:QTreeWidget(parent), mRsTokenService(NULL), mCommentService(NULL), mTokenQueue(NULL)
|
:QTreeWidget(parent), mRsTokenService(NULL), mCommentService(NULL), mTokenQueue(NULL)
|
||||||
@ -92,9 +94,9 @@ void GxsCommentTreeWidget::customPopUpMenu(const QPoint& point)
|
|||||||
|
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Vote Up"), this, SLOT(voteUp()));
|
action = contextMnu.addAction(QIcon(IMAGE_VOTEUP), tr("Vote Up"), this, SLOT(voteUp()));
|
||||||
action->setDisabled(mVoterId.empty());
|
action->setDisabled(mVoterId.empty());
|
||||||
action = contextMnu.addAction(QIcon(IMAGE_MESSAGE), tr("Vote Down"), this, SLOT(voteDown()));
|
action = contextMnu.addAction(QIcon(IMAGE_VOTEDOWN), tr("Vote Down"), this, SLOT(voteDown()));
|
||||||
action->setDisabled(mVoterId.empty());
|
action->setDisabled(mVoterId.empty());
|
||||||
|
|
||||||
|
|
||||||
|
@ -515,6 +515,8 @@
|
|||||||
<file>images/view_calendar_month.png</file>
|
<file>images/view_calendar_month.png</file>
|
||||||
<file>images/view_calendar_list.png</file>
|
<file>images/view_calendar_list.png</file>
|
||||||
<file>images/view_split_top_bottom.png</file>
|
<file>images/view_split_top_bottom.png</file>
|
||||||
|
<file>images/vote_up.png</file>
|
||||||
|
<file>images/vote_down.png</file>
|
||||||
<file>images/window_fullscreen.png</file>
|
<file>images/window_fullscreen.png</file>
|
||||||
<file>images/window_nofullscreen.png</file>
|
<file>images/window_nofullscreen.png</file>
|
||||||
<file>qss/chat/standard/private/info.xml</file>
|
<file>qss/chat/standard/private/info.xml</file>
|
||||||
|
BIN
retroshare-gui/src/gui/images/vote_down.png
Normal file
After Width: | Height: | Size: 1009 B |
BIN
retroshare-gui/src/gui/images/vote_up.png
Normal file
After Width: | Height: | Size: 1.1 KiB |