mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Setting UI improvement
* pressing shift while clicking the button shows overview * hint in overview, that there are shortcuts
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "ui_maininfoareacomponent.h"
|
||||
|
||||
#include <QIcon>
|
||||
#include <QGuiApplication>
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackGui;
|
||||
@@ -108,6 +109,20 @@ namespace BlackGui
|
||||
this->selectArea(InfoAreaLog);
|
||||
}
|
||||
|
||||
void CMainInfoAreaComponent::selectArea(CMainInfoAreaComponent::InfoArea infoArea)
|
||||
{
|
||||
CInfoArea::selectArea(static_cast<int>(infoArea));
|
||||
if (infoArea == InfoAreaSettings)
|
||||
{
|
||||
// pressing shift will go to overview
|
||||
const Qt::KeyboardModifiers km = QGuiApplication::queryKeyboardModifiers();
|
||||
if (km.testFlag(Qt::ShiftModifier))
|
||||
{
|
||||
ui->comp_Settings->setSettingsOverviewTab();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMainInfoAreaComponent::selectLog()
|
||||
{
|
||||
this->selectArea(InfoAreaLog);
|
||||
|
||||
Reference in New Issue
Block a user