#include <qapplication.h>
#include <qinputdialog.h>
+#define ACTIVE_PIXEL_SIZE 15
+#define NOT_ACTIVE_PIXEL_SIZE 12
+#define ACTIVE_COLOR_HIGHLIGHT Qt::blue
+#define ACTIVE_COLOR_HIGHLIGHT_TEXT Qt::yellow
+
+
/*!
Class: QtxWorkstack [Public]
Descr:
{
QFont aFont = font();
aFont.setUnderline( on );
+ if (on) {
+ QPalette aPal = palette();
+ aFont.setPixelSize(ACTIVE_PIXEL_SIZE);
+ aPal.setColor(QColorGroup::Highlight, ACTIVE_COLOR_HIGHLIGHT);
+ aPal.setColor(QColorGroup::HighlightedText, ACTIVE_COLOR_HIGHLIGHT_TEXT);
+ setPalette(aPal);
+ }
+ else {
+ aFont.setPixelSize(NOT_ACTIVE_PIXEL_SIZE);
+ unsetPalette();
+ }
setFont( aFont );
update();
{
QFont fnt = p->font();
fnt.setUnderline( false );
+ fnt.setPixelSize(NOT_ACTIVE_PIXEL_SIZE);
p->setFont( fnt );
}
QTabBar::paintLabel( p, br, t, has_focus );