Summary: | Auth handler prompt dialog does not have a fixed size | ||
---|---|---|---|
Product: | [Unmaintained] telepathy | Reporter: | Daniele E. Domenichelli <ddomenichelli> |
Component: | auth-handler | Assignee: | Telepathy Bugs <kde-telepathy-bugs> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | minor | CC: | analoguecolour, cfeck, kde |
Priority: | LO | Keywords: | junior-jobs |
Version: | git-latest | ||
Target Milestone: | Future | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Daniele E. Domenichelli
2012-05-15 13:04:36 UTC
Does it make sense to use KPasswordDialog instead of a custom one? http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKPasswordDialog.html (In reply to comment #1) > Does it make sense to use KPasswordDialog instead of a custom one? > http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKPasswordDialog. > html As discussed with David: No their one is super ugly and doesn't allow us to add a save button or show the account icon. You can change the icon in KPasswordDialog. You can also specify, which additional buttons are shown (it is a KDialog subclass, after all). And even if it could not yet do it, "they" also have a bug tracker to request missing features. I'm sorry, that wasn't really polite. That was extracted from a very quick discussion about the reasons why KPasswordDialog was discarded at first, but probably it wasn't investigated enough, I promise I'll investigate more... This is the password dialog we are using now [1]. This is using KPasswordDialog and doing a few very nasty things to show the icon [2]. And when I say nasty I mean stuff like QHBoxLayout *box = qobject_cast<QHBoxLayout*>(m_dialog.data()->layout()->itemAt(0)->widget()->layout()->itemAt(0)->layout()); in order to place the icon, I couldn't find a better way to do it. I'm not an ui designer, but imho the second wastes a lot of space and has a worst alignment. Nonetheless we could work on KPasswordDialog to make it look prettier and to have an extra pixmap for the account, and then use it... But it will take time and moreover since kdelibs is frozen, we won't be able to place the icon until kde frameworks 5 is released. Comments? [1]http://wstaw.org/m/2012/11/02/snapshot103.png [2]ttp://wstaw.org/m/2012/11/02/snapshot104.png Do we even know if switching to KPasswordDialog would fix the issue? As per HIG guidelines, cutting off / abbreviating the account name is worse than expanding the dialogue box. |