Dawit Alemayehu | 1 Jun 2011 05:33
Picon
Favicon

Re: Review Request: PATCH: Honor size and coordinates when creating new Konqueror windows

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101477/

Review request for KDE Base Apps and David Faure.
By Dawit Alemayehu.

Updated June 1, 2011, 3:33 a.m.

Changes

Added a test case for anyone that wants to test the scenario outlined in the description section.

Description

Currently new window creation in KonqMainWindow::slotCreateNewWindow does not honor the supplied cooridnate and size information under certain circumstances. For example, if you click on a javascript link that opens a new window, then the new window will always be maximized, regardless of the size information supplied by the javascript window.open call, as long as the Konqueror window where you clicked on the link is also maximized. Even when the original window is not maximized, if you maximize and close the newly created window, then clicking on the javscript window.open link again will result in a maximized window. The attached patch addresses all of the above issues by making sure the coordinate and size information are always honored during new window creation.

Testing (updated)

<html> <head> <title>Javascript window.open Test</title> </head> <body> <a href="javascript:window.open('about:blank', 'NewWindowTest1', 'width=300, height=400')">window.open test</a> </body> </html> Test #1: ======= 1.) Copy the HTML snippet above into a file and open it with konqueror. 2.) Maximize the Konqueror window. 3.) Click on the link. 4.) Notice new window is opened maximized. Test #2: ======= 5.) Repeat steps 2-4 above, but do not maximize the Konqueror window in step 2. 6.) The new window opened when you clicked on the link should be of correct size. 7.) Maximize this new window, then close it. 8.) Click on the javascript link again. 9.) Notice how the new window is opened maximized. After applying the patch, none of the above test scenarios should be reproducible.

Diffs

  • konqueror/src/konqmainwindow.cpp (56aa379)

View Diff

Aaron J. Seigo | 1 Jun 2011 07:13
Picon
Favicon
Gravatar

Re: QComboBox vs KConfigDialogManager

On Tuesday, May 31, 2011 21:55:59 Jeremy Whiting wrote:
> 1) Check if the widget has a kcfg_property is set on the widget.  If so, use
> that property's value as the property to record.
> 2) Check if the widget has a User property to save (This was not set in
> QComboBox in 4.7 but is set in 4.8 to the currentIndex property)
> 3) Try casting to a combobox and use the current text if the combobox is
> editable, otherwise use the currentIndex
> 
> Anyone here can guess where the problem lies? 

erf!

> a) change all our .ui files KComboBox, QComboBox widgets to have
> kcfg_property set if we want to save the currentText as the value of the
> config item.

this doesn't sound like a great solution since it means not only a lot of work 
and testing in our own repos (with a high risk of missing something), but it 
will affect all third parties as well (which we can't guarantee will notice or 
provide a fix on their own). a fix, even if it is a (well documented with 
comments ;) work-around, in KConfigDialogManager would probably be more 
valuable as a result.

--

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
argonel | 1 Jun 2011 07:42
Picon

Re: kio/scheduler: Does not compile with Qt from 4.8 branch

On Mon, Apr 25, 2011 at 6:54 PM, Olivier Goffart <ogoffart <at> kde.org> wrote:

> In this case, we have to see if we can fix it in Qt. I do not see any solution
> on top of my head. We have to discuss if it is ok to break this use case if
> there is no solution.

The Qt documentation, about signals and slots[1] says this:

"Since slots are normal member functions, they follow the normal C++
rules when called directly. However, as slots, they can be invoked by
any component, regardless of its access level, via a signal-slot
connection. This means that a signal emitted from an instance of an
arbitrary class can cause a private slot to be invoked in an instance
of an unrelated class."

This makes a promise that any class can use a private slot without
access checking. It doesn't say how that slot was declared, just that
the private slot can be invoked by any other class. The change to
Q_PRIVATE_SLOT introduces access checking of slots and breaks the
promise, and so it needs to be left unchanged until Qt 5.

Regards, Eli.

[1] http://doc.qt.nokia.com/latest/signalsandslots.html#slots

Jeffery MacEachern | 1 Jun 2011 08:07
Picon
Gravatar

Re: Review Request: Add Activity Awareness to KFilePlaces* Widget (OnlyInActivity)

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101348/

Review request for kdelibs, Ivan Čukić, Kevin Ottens, and David Faure.
By Jeffery MacEachern.

Updated June 1, 2011, 6:07 a.m.

Description

Adds an "Only show in this Activity" option to the KFilePlaces Widget and support in the underlying model code. Currently only "one activity"/"all activities" are supported as choices; I think this should be sufficient, and anything more complicated would be hard to make usable.

Testing

Tested on Project Neon/Kubuntu Natty. Created several activities, added Place bookmarks, set them to only show in the current activity, and switched activities. Everything worked as intended. EDIT: one small known issue - the OnlyInActivity setting doesn't take when the bookmark is first created; you have to hit Edit and re-check the box.

Diffs

  • kfile/CMakeLists.txt (ceae140)
  • kfile/kfileplaceeditdialog.h (d5b030a)
  • kfile/kfileplaceeditdialog.cpp (d798b4d)
  • kfile/kfileplacesmodel.h (b3dd821)
  • kfile/kfileplacesmodel.cpp (b037084)
  • kfile/kfileplacesview.cpp (6a343b3)

View Diff

Konstantinos Smanis | 1 Jun 2011 09:38
Picon
Gravatar

Re: Review Request: kcm-grub2

On Thu, May 26, 2011 at 00:03, Konstantinos Smanis
<konstantinos.smanis <at> gmail.com> wrote:
>> The following line should probably be simplified (see
>> http://websvn.kde.org/?revision=1184860&view=revision):
>>
>> src/kcm_grub2.cpp:113:                    QTreeWidgetItem *item = new
>> QTreeWidgetItem(ui.treeWidget_recover, QStringList(QString()) << name
>> << partition->filePath() << volume->label() << volume->fsType() <<
>> i18n("%1 GiB", QString::number(volume->size() / 1073741824)));
>
> Thanks. Fixed: http://commits.kde.org/kcm-grub2/87eac2b1ef0b8f3a1907b86ab7054b99a0ed5ab9
>
> Konstantinos

If noone else objects, would it be possible for a sysadmin to make the move?

Thanks,
Konstantinos

Thiago Macieira | 1 Jun 2011 10:39
Picon
Favicon

Re: kio/scheduler: Does not compile with Qt from 4.8 branch

On Wednesday, 1 de June de 2011 01:42:13 argonel wrote:
> This makes a promise that any class can use a private slot without
> access checking. It doesn't say how that slot was declared, just that
> the private slot can be invoked by any other class. The change to
> Q_PRIVATE_SLOT introduces access checking of slots and breaks the
> promise, and so it needs to be left unchanged until Qt 5.

You're assuming you're allowed to use Q_PRIVATE_SLOT. That macro is not 
documented, so any use of it outside Qt is suspect by itself. Qt makes promise 
of source compatibility when using it.

--

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
Jeremy Whiting | 1 Jun 2011 16:47
Picon
Favicon

Re: kio/scheduler: Does not compile with Qt from 4.8 branch

Until those that know the code get this issue sorted out,  I've pasted a small workaround that gets it to build here:
http://paste.kde.org/77059/

Jeremy

On Wed, Jun 1, 2011 at 2:39 AM, Thiago Macieira <thiago <at> kde.org> wrote:
On Wednesday, 1 de June de 2011 01:42:13 argonel wrote:
> This makes a promise that any class can use a private slot without
> access checking. It doesn't say how that slot was declared, just that
> the private slot can be invoked by any other class. The change to
> Q_PRIVATE_SLOT introduces access checking of slots and breaks the
> promise, and so it needs to be left unchanged until Qt 5.

You're assuming you're allowed to use Q_PRIVATE_SLOT. That macro is not
documented, so any use of it outside Qt is suspect by itself. Qt makes promise
of source compatibility when using it.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
 Senior Product Manager - Nokia, Qt Development Frameworks
     PGP/GPG: 0x6EF45358; fingerprint:
     E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Dawit A | 1 Jun 2011 19:25
Picon
Favicon

Re: kio/scheduler: Does not compile with Qt from 4.8 branch

Isn't this problem easily solvable by changing those slots defined in
Q_PRIVATE_SLOT to actual private slots of KIO::Scheduler and
forwarding the call to the existing code ? See attached patch.

On Wed, Jun 1, 2011 at 10:47 AM, Jeremy Whiting <jpwhiting <at> kde.org> wrote:
> Until those that know the code get this issue sorted out,  I've pasted a
> small workaround that gets it to build here:
> http://paste.kde.org/77059/
>
> Jeremy
>
> On Wed, Jun 1, 2011 at 2:39 AM, Thiago Macieira <thiago <at> kde.org> wrote:
>>
>> On Wednesday, 1 de June de 2011 01:42:13 argonel wrote:
>> > This makes a promise that any class can use a private slot without
>> > access checking. It doesn't say how that slot was declared, just that
>> > the private slot can be invoked by any other class. The change to
>> > Q_PRIVATE_SLOT introduces access checking of slots and breaks the
>> > promise, and so it needs to be left unchanged until Qt 5.
>>
>> You're assuming you're allowed to use Q_PRIVATE_SLOT. That macro is not
>> documented, so any use of it outside Qt is suspect by itself. Qt makes
>> promise
>> of source compatibility when using it.
>>
>> --
>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>>  Senior Product Manager - Nokia, Qt Development Frameworks
>>      PGP/GPG: 0x6EF45358; fingerprint:
>>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
>
Attachment (kio_scheduler.patch): application/octet-stream, 2957 bytes
Commit Hook | 1 Jun 2011 20:49
Picon
Favicon

Re: Review Request: PATCH: When user selects 'Open With...', show the open with dialog

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101474/

This review has been submitted with commit e36179d6d9a34f2cbfdbc0b72348618dd468c1b5 by Dawit Alemayehu.

- Commit


On May 30th, 2011, 3:50 p.m., Dawit Alemayehu wrote:

Review request for KDE Base Apps and David Faure.
By Dawit Alemayehu.

Updated May 30, 2011, 3:50 p.m.

Description

The attached patch fixes the following types of scenarios using Konqueror: 1.) Go to ftp://ftp.kde.org/pub/kde 2.) Click on the README file 3.) Choose "Open->Open With..." when prompted to select what app to open the document with. Without the patch, instead of getting the open with dialog the document is opened with the default application associated with that mime-type.

Diffs

  • konqueror/src/konqmainwindow.cpp (321d407)

View Diff

Jeremy Paul Whiting | 1 Jun 2011 21:29
Picon
Favicon

Review Request: Fix KComboBox KConfigXT bug when using qt 4.8

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101486/

Review request for kdelibs and Eike Hein.
By Jeremy Paul Whiting.

Description

QComboBox in qt 4.8 sets currentIndex as it's USER property. Which breaks kconfigxt saving of kcombobox values as the text inside them. I noticed this in konversation's timestampformat setting which was getting saved as 0, or 1 depending on the index of the combobox, rather than the text of the combobox.

Testing

This works here and shouldn't cause any problems even with qt 4.7 or so, just makes QComboBox special casing come before USER property checking rather than after.

Diffs

  • kdeui/dialogs/kconfigdialogmanager.cpp (0209f49)

View Diff


Gmane