Skip to content

Commit b7992fe

Browse files
committed
Fix the mouse event
1 parent 437af4d commit b7992fe

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

Project/VS2017/ofed.vcxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2828
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
2929
<ConfigurationType>Application</ConfigurationType>
30-
<PlatformToolset>v141</PlatformToolset>
30+
<PlatformToolset>v142</PlatformToolset>
3131
<Link>
3232
<SubSystem>Windows</SubSystem>
3333
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -101,13 +101,14 @@
101101
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
102102
<MinimalRebuild>true</MinimalRebuild>
103103
<MultiProcessorCompilation>true</MultiProcessorCompilation>
104+
<LanguageStandard>stdcpp17</LanguageStandard>
104105
</ClCompile>
105106
<Link>
106107
<SubSystem>Console</SubSystem>
107108
<OutputFile>$(OutDir)\$(ProjectName).exe</OutputFile>
108109
<AdditionalLibraryDirectories>$(QTDIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
109110
<GenerateDebugInformation>true</GenerateDebugInformation>
110-
<AdditionalDependencies>qtmaind.lib;Qt5Cored.lib;Qt5Guid.lib;Qt5Widgetsd.lib;%(AdditionalDependencies)</AdditionalDependencies>
111+
<AdditionalDependencies>Qt6Cored.lib;Qt6Guid.lib;Qt6Widgetsd.lib;%(AdditionalDependencies)</AdditionalDependencies>
111112
</Link>
112113
<QtMoc>
113114
<QTDIR>$(QTDIR)</QTDIR>

Source/WindowQT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ void cWindowQT::paintEvent(QPaintEvent*) {
8686
painter.drawImage( Dest, mSurface, Src);
8787
}
8888

89-
void cWindowQT::enterEvent(QEvent *) {
89+
void cWindowQT::enterEvent(QEnterEvent*) {
9090

9191
mMouseInTimer.start(4);
9292
}
9393

94-
void cWindowQT::leaveEvent(QEvent *) {
94+
void cWindowQT::leaveEvent(QEnterEvent*) {
9595

9696
mMouseInTimer.stop();
9797
}

Source/WindowQT.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class cWindowQT : public QWidget, public cWindow {
4040
void mouseMoveEvent(QMouseEvent *eventMove);
4141
void mousePressEvent(QMouseEvent *eventPress);
4242
void mouseReleaseEvent(QMouseEvent *releaseEvent);
43-
void enterEvent(QEvent *pEvent);
44-
void leaveEvent(QEvent *pEvent);
43+
void enterEvent(QEnterEvent*pEvent);
44+
void leaveEvent(QEnterEvent*pEvent);
4545

4646
public:
4747
cWindowQT(QWidget* pParent);

Source/gitver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const char* gitversion="fb47686";
1+
const char* gitversion="437af4d";

0 commit comments

Comments
 (0)