Silence some warnings due to deprecated stuff. #5

已合併
SlavekB 3 年之前 將 1 次代碼提交從 drop/deprecated 合併至 master
尚未有任何內容
Ghost added the PR/wip label 3 年之前
Ghost added 1 commit 3 年之前
25a0916dc0
Silence some warnings due to deprecated stuff.
Ghost force-pushed drop/deprecated from 25a0916dc0 to acd0abae55 3 年之前
Ghost force-pushed drop/deprecated from acd0abae55 to 6b0a83ea18 3 年之前
發佈者

slight UI change for kmouth, come from this:

slight UI change for kmouth, come from this:
發佈者

Into this:

Into this:
Ghost added PR/rfc and removed PR/wip labels 3 年之前
發佈者

I expect hours of debate for the UI change, like we're often having when I add/change an icon 😉

I expect hours of debate for the UI change, like we're often having when I add/change an icon :wink:
所有者

I expect hours of debate for the UI change, like we're often having when I add/change an icon 😉

Good for me – in other applications that have more toolbars, they are also grouped in a submenu. For example Konqueror, KMail – window for a new mail, Kopete,…

> I expect hours of debate for the UI change, like we're often having when I add/change an icon :wink: Good for me – in other applications that have more toolbars, they are also grouped in a submenu. For example Konqueror, KMail – window for a new mail, Kopete,…
Ghost added the PR/wip label 3 年之前
所有者

I have not tried this PR but I just noticed that in the original KMouth if we hide the menu bar it seems there is no way to bring it back. Am I wrong or am I missing something obvious?

Does this PR do a better job at that? 😄

I have not tried this PR but I just noticed that in the original KMouth if we hide the menu bar it seems there is no way to bring it back. Am I wrong or am I missing something obvious? Does this PR do a better job at that? :smile:
Ghost removed the PR/rfc PR/wip label 3 年之前
Ghost changed title from WIP:Silence some warnings due to deprecated stuff. to Silence some warnings due to deprecated stuff. 3 年之前
Ghost force-pushed drop/deprecated from 6b0a83ea18 to 4f307f965c 3 年之前
Ghost force-pushed drop/deprecated from 4f307f965c to 982ad2ecf3 3 年之前
SlavekB requested changes 3 年之前
SlavekB left a comment
所有者

There are incorrectly resolved deprecated NetAccess calls.
See comments below.

There are incorrectly resolved deprecated NetAccess calls. See comments below.
tempFile.close();
return TDEIO::NetAccess::upload(tempFile.name(), url);
return TDEIO::NetAccess::file_copy( tempFile.name(), url );
所有者

I'm not sure what the differences in behavior between upload and file_copy are and whether it can't cause unexpected side effects. For example, there is different behavior to overwrite an existing file. In any case, deprecated is only a upload with two arguments, so adding a value 0 for third argument will ensure that deprecated is not reported and the same behavior is guaranteed.

I'm not sure what the differences in behavior between `upload` and` file_copy` are and whether it can't cause unexpected side effects. For example, there is different behavior to overwrite an existing file. In any case, `deprecated` is only a `upload` with two arguments, so adding a value `0` for third argument will ensure that `deprecated` is not reported and the same behavior is guaranteed.
SlavekB marked this conversation as resolved
}
if (TDEIO::NetAccess::exists(url)) {
if (url.isLocalFile()) {
所有者

This causes an undesirable difference in behavior.

Calling NetAccess::exists verifies the existence of the file, while isLocalFile tests whether the URL matches the address for the local file, but does not perform an existence test => returns true if the URL matches the local file, whether it exists or not. Returns false if the URL matches a remote file. This is a completely different result than the condition expects.

Deprecated calls NetAccess::exists are only those with a limited number of arguments. To keep the behavior and solve the deprecated warning, you need to add the values false and 0 for the second and third arguments of the call NetAccess::exists.

This causes an undesirable difference in behavior. Calling `NetAccess::exists` verifies the existence of the file, while `isLocalFile` tests whether the URL matches the address for the local file, but does not perform an existence test => returns true if the URL matches the local file, whether it exists or not. Returns false if the URL matches a remote file. This is a completely different result than the condition expects. Deprecated calls `NetAccess::exists` are only those with a limited number of arguments. To keep the behavior and solve the `deprecated` warning, you need to add the values `false` and `0` for the second and third arguments of the call `NetAccess::exists`.
SlavekB marked this conversation as resolved
Ghost force-pushed drop/deprecated from 982ad2ecf3 to 82b737fb73 3 年之前
所有者

Into this

Because the toolbar name is automatically used in the submenu, we probably need to modify it so that the toolbars have a user-readable name instead of a constant and so that these names can be translated.

> Into [this](../../attachments/f4b8f4bb-eac3-4569-898e-53bfa073da90) > Because the toolbar name is automatically used in the submenu, we probably need to modify it so that the toolbars have a user-readable name instead of a constant and so that these names can be translated.
Ghost force-pushed drop/deprecated from 82b737fb73 to 5ce12710c2 3 年之前
發佈者

I'm shortening this PR because I don't wish to spend more time on It.

I'm shortening this PR because I don't wish to spend more time on It.
所有者

I'm shortening this PR because I don't wish to spend more time on It.

Ok no problem. It is a good idea that there will not be two things in one commit that are otherwise unrelated.

> I'm shortening this PR because I don't wish to spend more time on It. Ok no problem. It is a good idea that there will not be two things in one commit that are otherwise unrelated.
SlavekB approved these changes 3 年之前
SlavekB left a comment
所有者

Simple, clear … ready to merge.

Simple, clear … ready to merge.
SlavekB merged commit 5ce12710c2 into master 3 年之前
SlavekB 刪除分支 drop/deprecated 3 年之前
SlavekB 新增至R14.0.10 release 里程碑 3 年之前

Reviewers

SlavekB approved these changes 3 年之前
The pull request has been merged as 5ce12710c2.
登入 才能加入這對話。
No reviewers
未選擇里程碑
No Assignees
3 參與者
訊息
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdeaccessibility#5
Loading…
尚未有任何內容