mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-06 16:05:13 -04:00
Add DialogPositioner to ensure dialogs are fully on screen and remain on
screen when screen orientation changes. Add DialPopup to allow dials to adjusted with a slider, which is easier on touchscreens. Add TableTapAndHold to support table context menus on touchscreens.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "util/db.h"
|
||||
#include "gui/basicchannelsettingsdialog.h"
|
||||
#include "gui/devicestreamselectiondialog.h"
|
||||
#include "gui/dialpopup.h"
|
||||
#include "gui/dialogpositioner.h"
|
||||
#include "plugin/pluginapi.h"
|
||||
#include "maincore.h"
|
||||
|
||||
@@ -171,6 +173,7 @@ UDPSourceGUI::UDPSourceGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
|
||||
displaySettings();
|
||||
makeUIConnections();
|
||||
applySettings(true);
|
||||
DialPopup::addPopupsToChildDials(this);
|
||||
}
|
||||
|
||||
UDPSourceGUI::~UDPSourceGUI()
|
||||
@@ -505,6 +508,7 @@ void UDPSourceGUI::onMenuDialogCalled(const QPoint &p)
|
||||
}
|
||||
|
||||
dialog.move(p);
|
||||
new DialogPositioner(&dialog, false);
|
||||
dialog.exec();
|
||||
|
||||
m_settings.m_rgbColor = m_channelMarker.getColor().rgb();
|
||||
|
||||
Reference in New Issue
Block a user