mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-04 02:56:52 -04:00
gui: network_view: add some help button to network graph
This commit is contained in:
parent
7d8f23259c
commit
6144a66137
2 changed files with 32 additions and 0 deletions
|
@ -59,6 +59,24 @@ NetworkView::NetworkView(QWidget *parent)
|
|||
connect( ui.freezeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setFreezeState(bool)));
|
||||
connect( ui.nameBox, SIGNAL(textChanged(QString)), this, SLOT(setNameSearch(QString)));
|
||||
|
||||
QString help_text = tr(
|
||||
"<h2>Graph scene info</h2>"
|
||||
"<p>You could use mouse to deal with the scene here:</p>"
|
||||
"<ul>"
|
||||
"<li>Left mouse button press on a node: " "selection to see with which nodes it has connections"
|
||||
" (you can drag it for some distance)"
|
||||
"<li>Right mouse button click on a node: " "to do some actions with it"
|
||||
"<li>Drag scene with left mouse button: " "to scroll"
|
||||
"</ul>"
|
||||
"<p>and keyboard:</p>"
|
||||
"<ul>"
|
||||
"<li>Arrow keys: " "to scroll"
|
||||
"<li>Space/Enter: " "to repaint a scene"
|
||||
"<li>+/-: " "to scale"
|
||||
"</ul>"
|
||||
);
|
||||
registerHelpButton(ui.helpButton, help_text, "Graph scene");
|
||||
|
||||
_should_update = true ;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,20 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="8">
|
||||
<widget class="QToolButton" name="helpButton">
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons.qrc">
|
||||
<normaloff>:/icons/help_64.png</normaloff>:/icons/help_64.png</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue