1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-25 03:24:18 -04:00

Massive UI revamping (v7): device set presets

This commit is contained in:
f4exb
2022-04-13 18:43:37 +02:00
parent af13b31d85
commit c797060a7d
12 changed files with 1066 additions and 224 deletions
+7
View File
@@ -169,6 +169,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) :
connect(m_changeDeviceButton, SIGNAL(clicked()), this, SLOT(openChangeDeviceDialog()));
connect(m_reloadDeviceButton, SIGNAL(clicked()), this, SLOT(deviceReload()));
connect(m_addChannelsButton, SIGNAL(clicked()), this, SLOT(openAddChannelsDialog()));
connect(m_deviceSetPresetsButton, SIGNAL(clicked()), this, SLOT(deviceSetPresetsDialog()));
connect(m_helpButton, SIGNAL(clicked()), this, SLOT(showHelp()));
connect(m_moveButton, SIGNAL(clicked()), this, SLOT(openMoveToWorkspaceDialog()));
connect(m_shrinkButton, SIGNAL(clicked()), this, SLOT(shrinkWindow()));
@@ -305,6 +306,12 @@ void DeviceGUI::shrinkWindow()
adjustSize();
}
void DeviceGUI::deviceSetPresetsDialog()
{
QPoint p = mapFromGlobal(QCursor::pos());
emit deviceSetPresetsDialogRequested(p, this);
}
void DeviceGUI::setTitle(const QString& title)
{
m_titleLabel->setText(title);