forked from Ivasoft/DSView
update: device dialog max height
This commit is contained in:
@@ -179,8 +179,8 @@ void DecoderOptionsDlg::load_options(view::DecodeTrace *trace)
|
||||
|
||||
float sk = QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96;
|
||||
int srcHeight = QGuiApplication::primaryScreen()->availableSize().height();
|
||||
if (srcHeight > 500)
|
||||
srcHeight = 500;
|
||||
if (srcHeight > 600)
|
||||
srcHeight = 600;
|
||||
|
||||
if (h * sk > srcHeight)
|
||||
{
|
||||
|
||||
@@ -711,8 +711,8 @@ void DeviceOptions::try_resize_scroll()
|
||||
int dlgHeight = contentHeight + 95; // +bottom buttton
|
||||
float sk = QGuiApplication::primaryScreen()->logicalDotsPerInch() / 96;
|
||||
|
||||
int srcHeight = 550;
|
||||
int w = _width;
|
||||
int srcHeight = 600;
|
||||
int w = _width;
|
||||
|
||||
if (w == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user