mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
refs #394, LED to display when mapper is ready
* function in context for models count * adjusted status bar component * in same step: menu to toggle "window on top"
This commit is contained in:
@@ -304,6 +304,7 @@
|
||||
</property>
|
||||
<addaction name="menu_WindowFont"/>
|
||||
<addaction name="menu_WindowMinimize"/>
|
||||
<addaction name="menu_WindowToggleOnTop"/>
|
||||
</widget>
|
||||
<addaction name="menu_File"/>
|
||||
<addaction name="menuWindow"/>
|
||||
@@ -419,6 +420,14 @@
|
||||
<string>Ctrl+W, Ctrl+M</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="menu_WindowToggleOnTop">
|
||||
<property name="text">
|
||||
<string>Toggle stay on top</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+W, Ctrl+T</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
||||
@@ -158,6 +158,7 @@ void SwiftGuiStd::initGuiSignals()
|
||||
connect(this->ui->menu_FileReloadStyleSheets, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
|
||||
connect(this->ui->menu_WindowFont, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
|
||||
connect(this->ui->menu_WindowMinimize, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
|
||||
connect(this->ui->menu_WindowToggleOnTop, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
|
||||
connect(this->ui->menu_DebugMetaTypes, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
|
||||
|
||||
// command line / text messages
|
||||
|
||||
@@ -72,6 +72,10 @@ void SwiftGuiStd::ps_onMenuClicked()
|
||||
{
|
||||
this->showMinimized();
|
||||
}
|
||||
else if (sender == this->ui->menu_WindowToggleOnTop)
|
||||
{
|
||||
this->ps_toogleWindowStayOnTop();
|
||||
}
|
||||
else if (sender == this->ui->menu_FileClose)
|
||||
{
|
||||
CLogMessage(this).info("Closing");
|
||||
|
||||
Reference in New Issue
Block a user