Port from KDialog to QDialog

Authored by Simon Persson <simon.persson@mykolab.com> on Jun 17 2015, 1:59 AM.

Description

Port from KDialog to QDialog

This one required a bit more manual work, and as such carries more risk of regressions.
I intentionally changed the look and layout of some few things, cleaned up code not necessary anymore:

  • Made KrAddBookmarkDlg wider by default, before only very short paths could be seen completely.
  • Removed KrKeyDialog class, since KShortcutsEditor already has ability to export shortcut scheme to file. Import can be done by placing file in correct directory. Same as any other KDE app.
  • Checksum dialogs had all the calls to set spacing and margin removed, from what I can see it looks the same anyway.
  • KUrlRequesterDlgForCopy had the "clear" button removed since that exists in the KUrlRequester line edit anyway.
  • PopularUrlsDlg also had the "clear" button removed, same reason.
  • Added refresh icon to Update DB button in LocateDlg.
  • QueueDialog, made it look like a standard dialog, I see no reason it should be so special. Made it use standard shortcuts and standard layouts and looks.
  • KrActionProcDlg, for some reason the minimum width set here was crazy big. Changed it to just resize to a reasonable size. Also changed stderr and stdout panels to be side by side, I think it makes more sense since most screens are wider than they are tall.
  • The trick to get around KDialog rejecting the close event was not needed anymore (Krusader::queryClose()).

Regarding the changes to Konfigurator where Davide had already started porting: still need to override reject method to capture dialog size in case user closes dialog by pressing Esc key. Also implements help button. The rest are just style changes to match other dialogs.

Details

Committed
Simon Persson <simon.persson@mykolab.com>Jun 17 2015, 1:59 AM
Parents
R167:22018daeb690: fix ShortDate on QLocale
Branches
Unknown
Tags
Unknown