kcontrol/tde-menu: Items for adjust text now depends on Display text in menu button checkbox. #230

Merged
SlavekB merged 2 commits from feat/kcontrol-kicker-menu-text into master 3 years ago
Owner

Items for setting text and font for the text shown on the TDE menu button should be dependent on checkbox Display text in menu button. What is your opinion?

Items for setting text and font for the text shown on the TDE menu button should be dependent on checkbox _Display text in menu button_. What is your opinion?
MicheleC requested changes 3 years ago
MicheleC left a comment
Owner

The idea is good. Small thing to adjust.

The idea is good. Small thing to adjust.
<receiver>searchShortcutLabel</receiver>
<slot>setEnabled(bool)</slot>
</connection>
</connections>
Owner

Am I wrong or this was already done by Philippe in another commit? Should not be part of this PR.

Am I wrong or this was already done by Philippe in another commit? Should not be part of this PR.
Poster
Owner

I can do it as a separate commit because it complements the part that did Philippe – this part adds connection also to the appropriate label Search shortcut:

I can do it as a separate commit because it complements the part that did Philippe – this part adds connection also to the appropriate label _Search shortcut:_
Owner

Ah, I see, understood. It's the label, not the button. Either adjust the commit msg or make separate commit sounds good to me.

Ah, I see, understood. It's the label, not the button. Either adjust the commit msg or make separate commit sounds good to me.
Poster
Owner

Divided into two commits.

Divided into two commits.
MicheleC marked this conversation as resolved
Owner

By the way, the text diplay has issues if Kicker is vertical (for example on the left side of the screen): the text is not visible.
Also if the text is too big, the text seems partially cut off on normal kicker placement (horizontal at the bottom)

By the way, the text diplay has issues if Kicker is vertical (for example on the left side of the screen): the text is not visible. Also if the text is too big, the text seems partially cut off on normal kicker placement (horizontal at the bottom)
SlavekB force-pushed feat/kcontrol-kicker-menu-text from de65777493 to 0f139004ca 3 years ago
MicheleC approved these changes 3 years ago
MicheleC left a comment
Owner

Looks good now

Looks good now
Owner

Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported.

Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported.
Poster
Owner

Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported.

I believe it is not possible because there is a combination of the receiver + slot, which in the case of placing more receivers could not ensure the use of the correct slots => dependency on the order in the XML code is not a suitable method.

> Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported. I believe it is not possible because there is a combination of the receiver + slot, which in the case of placing more receivers could not ensure the use of the correct slots => dependency on the order in the XML code is not a suitable method.
Owner

Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported.

I believe it is not possible because there is a combination of the receiver + slot, which in the case of placing more receivers could not ensure the use of the correct slots => dependency on the order in the XML code is not a suitable method.

That's probably true, we would have to check the code but not an important point. It was just curiosity.

> > Just think out aloud, I wonder if it is possible to have multiple receivers for the same sender in the .ui file. In that case the code could be more compact. But I have no idea if that functionality is supported. > > I believe it is not possible because there is a combination of the receiver + slot, which in the case of placing more receivers could not ensure the use of the correct slots => dependency on the order in the XML code is not a suitable method. That's probably true, we would have to check the code but not an important point. It was just curiosity.
SlavekB merged commit 0f139004ca into master 3 years ago
SlavekB deleted branch feat/kcontrol-kicker-menu-text 3 years ago
SlavekB added this to the R14.0.11 release milestone 3 years ago

Reviewers

MicheleC approved these changes 3 years ago
The pull request has been merged as 0f139004ca.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdebase#230
Loading…
There is no content yet.