Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread André Pönitz
On Wed, Apr 04, 2018 at 05:10:07AM +, Vadim Peretokin wrote: > How can I programatically make a tab's text bold? I'm looking to notify the > user that they need to look at it. > > Note that this is different from using a stylesheet to set the selected tab > bold - I'd like to set any random

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Vadim Peretokin
Thanks a ton! Works. On Wed, Apr 4, 2018 at 12:07 PM Igor Mironchik wrote: > > #include > #include > #include > #include > #include > #include > > class Style : public QProxyStyle > { > public: > Style( QTabBar * bar ) > :m_boldTab( 0 ) >

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Igor Mironchik
#include #include #include #include #include #include class Style : public QProxyStyle { public:     Style( QTabBar * bar )         :    m_boldTab( 0 )         ,    m_bar( bar )     {     }     ~Style()     {     }     void drawControl( ControlElement element,         const QStyleOption

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread René Hansen
Alternatively suffix an asterisk; Tab -> Tab*. Then remove it on highlight. /René On Wed, 4 Apr 2018 at 09:47 Vadim Peretokin wrote: > On Wed, Apr 4, 2018 at 7:35 AM Hamish Moffatt > wrote: > >> On 04/04/18 15:10, Vadim Peretokin wrote: >> >

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Vadim Peretokin
On Wed, Apr 4, 2018 at 7:35 AM Hamish Moffatt wrote: > On 04/04/18 15:10, Vadim Peretokin wrote: > > How can I programatically make a tab's text bold? I'm looking to > > notify the user that they need to look at it. > > > > Note that this is different from using a

Re: [Interest] How to programatically make a tab's text bold?

2018-04-03 Thread Hamish Moffatt
On 04/04/18 15:10, Vadim Peretokin wrote: How can I programatically make a tab's text bold? I'm looking to notify the user that they need to look at it. Note that this is different from using a stylesheet to set the selected tab bold - I'd like to set any random tab's text bold. Been