Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
bf9ebca4
Commit
bf9ebca4
authored
Dec 23, 2021
by
Laurent Montel
😁
Browse files
Fix signature in qt6
parent
447c216c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mainwindowbase.cpp
View file @
bf9ebca4
...
...
@@ -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
);
...
...
src/mainwindowbase.h
View file @
bf9ebca4
...
...
@@ -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:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment