mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:25:56 +00:00
UI: Fix for Qt 6.1
This commit is contained in:
parent
26a6761a1d
commit
ba170e70cb
@ -3,6 +3,7 @@
|
||||
#include <QActionEvent>
|
||||
#include <QBoxLayout>
|
||||
#include <QCheckBox>
|
||||
#include <QCoreApplication>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QMenu>
|
||||
@ -192,7 +193,7 @@ void ControlUtil::relayoutMenu(QMenu *menu, QAction *action)
|
||||
}
|
||||
|
||||
QActionEvent e(QEvent::ActionChanged, action);
|
||||
qApp->sendEvent(menu, &e);
|
||||
QCoreApplication::sendEvent(menu, &e);
|
||||
}
|
||||
|
||||
QBoxLayout *ControlUtil::createLayoutByWidgets(const QList<QWidget *> &widgets, Qt::Orientation o)
|
||||
|
Loading…
Reference in New Issue
Block a user