Commit bf9ebca4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix signature in qt6

parent 447c216c
......@@ -24,7 +24,11 @@ MainWindowBase::MainWindowBase(QWidget* parent, Qt::WindowFlags f)
* keyboard focus properly between Edit Alarm Dialog windows and MessageWindow
* windows.
*/
void MainWindowBase::enterEvent(QEvent* e)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void MainWindowBase::enterEvent(QEnterEvent *e)
#else
void MainWindowBase::enterEvent(QEvent *e)
#endif
{
if (theApp()->needWindowFocusFix())
QApplication::setActiveWindow(this);
......
......@@ -25,7 +25,11 @@ public:
explicit MainWindowBase(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::Window);
protected:
void enterEvent(QEvent*) override;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEnterEvent *) override;
#else
void enterEvent(QEvent *) override;
#endif
};
// vim: et sw=4:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment