Ticket #256 (closed enhancement: fixed)

Opened 15 months ago

Last modified 13 months ago

Enable custom StyleSheets by Controls

Reported by: enzo Owned by:
Priority: important Milestone: 1.1
Component: QControls Version:
Keywords: Cc:

Description

Hello folks.

Creating a new control for Qcubed 1.1 I found we could define custom JS files for controls but not custom style sheets.

So I did a small change to enable this option.

Attachments

QControl-StyleSheets.patch (1.4 kB) - added by enzo 15 months ago.

Change History

Changed 15 months ago by enzo

Changed 15 months ago by alex94040

  • status changed from new to in_QA

Enzo, why is there a change to QFormBase in the patch? It seems like that change has no semantic effect.

Changed 15 months ago by enzo

Hello Alex

Well I move because the if condition always was false, and never include my custom css.

Also I read in some please to avoid confusion is better don't do assignation inside a conditional, actually Net Beans high light as a possible error :P

But if you use the regular code and work, go back :P

regards

enzo

Changed 13 months ago by alex94040

  • status changed from in_QA to closed
  • resolution set to fixed

This feature has been implemented, but done slightly differently (not through the code provided in the attached patch). There's now an AddCssFile?() function in QControlBase that does exactly the same thing. It's been added as a part of the plugin infrastructure work.

Note: See TracTickets for help on using tickets.