Bug 181704 - use KDialog instead of QDialog for quick open
Summary: use KDialog instead of QDialog for quick open
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: quickopen (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 00:56 UTC by Andreas Pakulat
Modified: 2009-03-13 22:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pakulat 2009-01-24 00:56:20 UTC
Summary says it all, KDE apps shouldn't be using QDialog but KDialog instead.
Comment 1 David Nolden 2009-02-27 19:48:38 UTC
What's the optical difference and/or advantage? Actually I was thinking about moving the "Ok" and "Cancel" buttons up into the search-line, because that's where the user focus is.
Comment 2 Andreas Pakulat 2009-02-27 21:52:23 UTC
in this case there's probably not much optical difference. However it makes sure that KDevelop fits properly into the DE of the user (think order of ok/cancel button). It allows to embed some help info in the top of the dialog without extra code from us. The layout/margins comply with KDE HIG without us doing anything for it. The actual content of the dialog is not bound to a dialog-class (as it would be plain QWidget based), making it easier to re-use it in the future.

About moving the buttons: Thats a no-go, unless you make it something else than a dialog. The user is used to the standard dialog layout and users would be confused or even "scared" when this dialog is totally different. Besides the "users focus is on the lineedit" argument is pretty weak IMHO. Sure the focus is there, but if you use the quickopen dialog you don't need the ok button at all, your typing your part of the file/class and then you hit enter (or esc if you want to quit). And if we assume mouse users, then they have probably clicked somewhere in the list to select a file, so their focus is in the middle of the dialog.
Comment 3 Andreas Pakulat 2009-03-13 22:48:19 UTC
SVN commit 939130 by apaku:

Switch Quickopen plugin to use KDialog instead of QDialog.
Thanks to Dmitry Suzdalev for the patch
BUG:181704

 M  +40 -79    quickopen.ui  
 M  +4 -3      quickopenplugin.cpp  
 M  +1 -1      quickopenplugin.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=939130