mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Increase height of color popup as the width increases.
This commit is contained in:
parent
7ec71d8602
commit
e27403b395
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ void lcQPropertiesTree::slotColorButtonClicked()
|
||||||
|
|
||||||
lcQColorPickerPopup* Popup = new lcQColorPickerPopup(Button, ColorIndex);
|
lcQColorPickerPopup* Popup = new lcQColorPickerPopup(Button, ColorIndex);
|
||||||
connect(Popup, SIGNAL(selected(int)), SLOT(slotSetValue(int)));
|
connect(Popup, SIGNAL(selected(int)), SLOT(slotSetValue(int)));
|
||||||
Popup->setMinimumSize(qMax(300, width()), 200);
|
Popup->setMinimumSize(qMax(300, width()), qMax(200, static_cast<int>(width() * 2 / 3)));
|
||||||
|
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||||
QScreen* Screen = QGuiApplication::screenAt(Button->mapToGlobal(Button->rect().bottomLeft()));
|
QScreen* Screen = QGuiApplication::screenAt(Button->mapToGlobal(Button->rect().bottomLeft()));
|
||||||
|
|
Loading…
Reference in a new issue