Added Sort Status to Display menu

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2063 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-17 12:34:33 +00:00
parent fe08948d9f
commit ffb5938a03
3 changed files with 29 additions and 0 deletions

View File

@ -187,6 +187,9 @@ PeersDialog::PeersDialog(QWidget *parent)
ui.menupushButton->setMenu(menu);
QMenu *lookmenu = new QMenu();
lookmenu->addAction(ui.actionSort_Status_Descending_Order);
lookmenu->addAction(ui.actionSort_Status_Ascending_Order);
lookmenu->addSeparator();
lookmenu->addAction(ui.actionSet_Tabs_Right);
lookmenu->addAction(ui.actionSet_Tabs_Left);
lookmenu->addAction(ui.actionSet_Tabs_North);
@ -1538,3 +1541,13 @@ void PeersDialog::loadtabsettings()
_settings->endGroup();
}
void PeersDialog::on_actionSort_Status_Descending_Order_activated()
{
ui.peertreeWidget->sortItems ( 1, Qt::DescendingOrder );
}
void PeersDialog::on_actionSort_Status_Ascending_Order_activated()
{
ui.peertreeWidget->sortItems ( 1, Qt::AscendingOrder );
}

View File

@ -138,6 +138,9 @@ class PeersDialog : public RsAutoUpdatePage
void on_actionSet_Tabs_Triangular_activated();
void on_actionSet_Tabs_Rounded_activated();
void on_actionSort_Status_Descending_Order_activated();
void on_actionSort_Status_Ascending_Order_activated();
signals:
void friendsUpdated() ;
void notifyGroupChat(const QString&,const QString&) ;

View File

@ -600,6 +600,9 @@ p, li { white-space: pre-wrap; }
</item>
<item row="0" column="2">
<widget class="QPushButton" name="lookpushButton">
<property name="toolTip">
<string>Display</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton::menu-indicator {
subcontrol-origin: padding;
@ -1255,6 +1258,16 @@ background: white;}</string>
<string>Set Tabs Rounded</string>
</property>
</action>
<action name="actionSort_Status_Descending_Order">
<property name="text">
<string>Sort Status Descending Order</string>
</property>
</action>
<action name="actionSort_Status_Ascending_Order">
<property name="text">
<string>Sort Status Ascending Order</string>
</property>
</action>
</widget>
<resources>
<include location="images.qrc"/>