-enabled sorting for Links cloud

-changend link voting icons

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@604 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-06-15 10:11:13 +00:00
parent d5c21b5b4a
commit 734413d3a0
9 changed files with 19 additions and 5 deletions

View File

@ -48,6 +48,11 @@
/* Images for context menu icons */
#define IMAGE_EXPORTFRIEND ":/images/exportpeers_16x16.png"
#define IMAGE_GREAT ":/images/filerating5.png"
#define IMAGE_GOOD ":/images/filerating4.png"
#define IMAGE_OK ":/images/filerating3.png"
#define IMAGE_SUX ":/images/filerating2.png"
#define IMAGE_BADLINK ":/images/filerating1.png"
/** Constructor */
LinksDialog::LinksDialog(QWidget *parent)
@ -96,6 +101,8 @@ LinksDialog::LinksDialog(QWidget *parent)
_header->resizeSection ( 1, 50 );
_header->resizeSection ( 2, 150 );
ui.linkTreeWidget->setSortingEnabled(true);
/* Set a GUI update timer - much cleaner than
* doing everything through the notify agent
@ -139,19 +146,19 @@ void LinksDialog::linkTreeWidgetCostumPopupMenu( QPoint point )
QMenu *voteMenu = new QMenu( tr("Vote on Link"), this );
voteMenu->setIcon(QIcon(IMAGE_EXPORTFRIEND));
QAction *vote_p2 = new QAction( QIcon(IMAGE_EXPORTFRIEND), "[+2] Great", this );
QAction *vote_p2 = new QAction( QIcon(IMAGE_GREAT), "[+2] Great", this );
connect( vote_p2 , SIGNAL( triggered() ), this, SLOT( voteup_p2() ) );
voteMenu->addAction(vote_p2);
QAction *vote_p1 = new QAction( QIcon(IMAGE_EXPORTFRIEND), "[+1] Good", this );
QAction *vote_p1 = new QAction( QIcon(IMAGE_GOOD), "[+1] Good", this );
connect( vote_p1 , SIGNAL( triggered() ), this, SLOT( voteup_p1() ) );
voteMenu->addAction(vote_p1);
QAction *vote_p0 = new QAction( QIcon(IMAGE_EXPORTFRIEND), "[+0] Okay", this );
QAction *vote_p0 = new QAction( QIcon(IMAGE_OK), "[+0] Okay", this );
connect( vote_p0 , SIGNAL( triggered() ), this, SLOT( voteup_p0() ) );
voteMenu->addAction(vote_p0);
QAction *vote_m1 = new QAction( QIcon(IMAGE_EXPORTFRIEND), "[-1] Sux", this );
QAction *vote_m1 = new QAction( QIcon(IMAGE_SUX), "[-1] Sux", this );
connect( vote_m1 , SIGNAL( triggered() ), this, SLOT( voteup_m1() ) );
voteMenu->addAction(vote_m1);
QAction *vote_m2 = new QAction( QIcon(IMAGE_EXPORTFRIEND), "[-2] BAD LINK", this );
QAction *vote_m2 = new QAction( QIcon(IMAGE_BADLINK), "[-2] BAD LINK", this );
connect( vote_m2 , SIGNAL( triggered() ), this, SLOT( voteup_m2() ) );
voteMenu->addAction(vote_m2);

View File

@ -87,6 +87,12 @@
<file>images/exportpeers_16x16.png</file>
<file>images/filefind.png</file>
<file>images/fileinfo.png</file>
<file>images/filerating0.png</file>
<file>images/filerating1.png</file>
<file>images/filerating2.png</file>
<file>images/filerating3.png</file>
<file>images/filerating4.png</file>
<file>images/filerating5.png</file>
<file>images/find.png</file>
<file>images/emoticons/kopete/kopete020.png</file>
<file>images/flags/af.png</file>
@ -214,6 +220,7 @@
<file>images/toaster/toaster-backrs3.png</file>
<file>images/toaster/toaster-backrs4.png</file>
<file>images/up.png</file>
<file>images/user.png</file>
<file>images/webcache_24x24.png</file>
<file>layouts/default.ui</file>
<file>qss/arachnophobia.qss</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B