mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
fe08948d9f
commit
ffb5938a03
@ -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 );
|
||||
}
|
@ -137,6 +137,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() ;
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user