korgac: Make the korgac notification dialog even smaller
ClosedPublic

Authored by dfries on Oct 16 2018, 3:50 AM.

Details

Reviewers
mlaurent
Summary

The existing comment was
// Try to keep the dialog small and non-obtrusive.
but it prevented the user form making it even smaller.
Make the minimum size smaller than the initial size, and enable
options to take less space for it be even smaller.

Test Plan

Take a screen shot of the Reminders window before applying change (I get a size of 583x321), notice the window doesn't get smaller, apply change, notice it is smaller (I get 432x208), notice the window now can get even smaller (I get down to 288x181).

Diff Detail

Repository
R210 KOrganizer
Lint
Lint Skipped
Unit
Unit Tests Skipped
dfries created this revision.Oct 16 2018, 3:50 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 16 2018, 3:50 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dfries requested review of this revision.Oct 16 2018, 3:50 AM
mlaurent requested changes to this revision.Oct 16 2018, 4:55 AM
mlaurent added inline comments.
korgac/alarmdialog.cpp
209

setMinimunSize ?

214

no stylesheet please as it will break with some style.

This revision now requires changes to proceed.Oct 16 2018, 4:55 AM
dvratil added inline comments.
korgac/alarmdialog.cpp
211

I wonder, how does this work with HiDPI? Should this be multiplied by DPI or some other factor? 424px on HiDPI screen would be super-tiny.

inline comment

korgac/alarmdialog.cpp
211

If 424 would be super-tiny, would be only super-tiny*1.36.

I don't have a HiDPI monitor to test, but I see,
korgacmain.cpp: QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
and if I run with the environment variable QT_SCALE_FACTOR=2 everything is super huge. What do you think?

highdpi.html

dvratil added inline comments.Oct 16 2018, 1:56 PM
korgac/alarmdialog.cpp
211

Cool, so Qt scales this up for us. In that case 👍

dfries marked 2 inline comments as done.Oct 17 2018, 3:50 AM

will update the patch...

korgac/alarmdialog.cpp
214

Removing setStyleSheet has the biggest effect on making the buttons larger, but not much on the overall size, removing the setStyleSheet line.

dfries updated this revision to Diff 43778.Oct 17 2018, 3:51 AM
dfries marked an inline comment as done.

updated with the two requested changes, setMinimumSize, remove setStyleSheet

mlaurent accepted this revision.Oct 18 2018, 5:20 AM

it seems ok for me.

This revision is now accepted and ready to land.Oct 18 2018, 5:20 AM
mlaurent closed this revision.Oct 26 2018, 5:33 AM