zealdocs / zeal

Offline documentation browser inspired by Dash
https://zealdocs.org
GNU General Public License v3.0
11.51k stars 782 forks source link

Zeal forgets Window size on Windows if not resized through dragging #699

Open wolph opened 7 years ago

wolph commented 7 years ago

What works:

  1. Open Zeal
  2. Resize Window through dragging the Window with the mouse
  3. Close Zeal (Ctrl+k)
  4. Reopen Zeal (Ctrl+k)
  5. The window has the same size as the previous time it was run

What doesn't work:

  1. Open Zeal
  2. Resize Window through keyboard shortcuts (i.e. Win+▶)
  3. Close Zeal (Ctrl+k)
  4. Reopen Zeal (Ctrl+k)
  5. The window has the same size as when it was originally opened with
wolph commented 7 years ago

It looks like the changeEvent does not get triggered by a Window resize: https://github.com/zealdocs/zeal/blob/318eef91e715ff568fcfa935840dc0772b66884d/src/libs/ui/mainwindow.cpp#L718-L725

If that method would trigger on a resizeEvent as well I believe the issue would be fixed.

trollixx commented 7 years ago

Reported QTBUG-59668.