|
|
@ -125,9 +125,9 @@ void KileMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int c
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(1,0,1,viewport()->height());
|
|
|
|
paint->drawLine(1,0,1,viewport()->height());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -135,28 +135,28 @@ void KileMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int c
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if (m_position==KileMultiTabBar::Left)
|
|
|
|
if (m_position==KileMultiTabBar::Left)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().light());
|
|
|
|
paint->setPen(colorGroup().light());
|
|
|
|
paint->drawLine(23,0,23,viewport()->height());
|
|
|
|
paint->drawLine(23,0,23,viewport()->height());
|
|
|
|
paint->drawLine(22,0,22,viewport()->height());
|
|
|
|
paint->drawLine(22,0,22,viewport()->height());
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if (m_position==KileMultiTabBar::Bottom)
|
|
|
|
if (m_position==KileMultiTabBar::Bottom)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,viewport()->width(),0);
|
|
|
|
paint->drawLine(0,0,viewport()->width(),0);
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(0,1,viewport()->width(),1);
|
|
|
|
paint->drawLine(0,1,viewport()->width(),1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().light());
|
|
|
|
paint->setPen(colorGroup().light());
|
|
|
|
paint->drawLine(0,23,viewport()->width(),23);
|
|
|
|
paint->drawLine(0,23,viewport()->width(),23);
|
|
|
|
paint->drawLine(0,22,viewport()->width(),22);
|
|
|
|
paint->drawLine(0,22,viewport()->width(),22);
|
|
|
|
|
|
|
|
|
|
|
|
/* paint->setPen(tqcolorGroup().shadow());
|
|
|
|
/* paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());*/
|
|
|
|
paint->drawLine(0,0,0,viewport()->height());*/
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -475,7 +475,7 @@ void KileMultiTabBarButton::showEvent( TQShowEvent* he) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQSize KileMultiTabBarButton::tqsizeHint() const
|
|
|
|
TQSize KileMultiTabBarButton::sizeHint() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
constPolish();
|
|
|
|
constPolish();
|
|
|
|
|
|
|
|
|
|
|
@ -491,7 +491,7 @@ TQSize KileMultiTabBarButton::tqsizeHint() const
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
if ( isMenuButton() )
|
|
|
|
if ( isMenuButton() )
|
|
|
|
w += tqstyle().tqpixelMetric(TQStyle::PM_MenuButtonIndicator, this);
|
|
|
|
w += tqstyle().pixelMetric(TQStyle::PM_MenuButtonIndicator, this);
|
|
|
|
|
|
|
|
|
|
|
|
if ( pixmap() ) {
|
|
|
|
if ( pixmap() ) {
|
|
|
|
TQPixmap *pm = (TQPixmap *)pixmap();
|
|
|
|
TQPixmap *pm = (TQPixmap *)pixmap();
|
|
|
@ -501,7 +501,7 @@ TQSize KileMultiTabBarButton::tqsizeHint() const
|
|
|
|
TQString s( text() );
|
|
|
|
TQString s( text() );
|
|
|
|
bool empty = s.isEmpty();
|
|
|
|
bool empty = s.isEmpty();
|
|
|
|
if ( empty )
|
|
|
|
if ( empty )
|
|
|
|
s = TQString::tqfromLatin1("XXXX");
|
|
|
|
s = TQString::fromLatin1("XXXX");
|
|
|
|
TQFontMetrics fm = fontMetrics();
|
|
|
|
TQFontMetrics fm = fontMetrics();
|
|
|
|
TQSize sz = fm.size( ShowPrefix, s );
|
|
|
|
TQSize sz = fm.size( ShowPrefix, s );
|
|
|
|
if(!empty || !w)
|
|
|
|
if(!empty || !w)
|
|
|
@ -595,12 +595,12 @@ void KileMultiTabBarTab::updateState()
|
|
|
|
if ((m_position==KileMultiTabBar::Right || m_position==KileMultiTabBar::Left)) {
|
|
|
|
if ((m_position==KileMultiTabBar::Right || m_position==KileMultiTabBar::Left)) {
|
|
|
|
setFixedWidth(24);
|
|
|
|
setFixedWidth(24);
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
setFixedHeight(KileMultiTabBarButton::tqsizeHint().width());
|
|
|
|
setFixedHeight(KileMultiTabBarButton::sizeHint().width());
|
|
|
|
} else setFixedHeight(36);
|
|
|
|
} else setFixedHeight(36);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
setFixedHeight(24);
|
|
|
|
setFixedHeight(24);
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
setFixedWidth(KileMultiTabBarButton::tqsizeHint().width());
|
|
|
|
setFixedWidth(KileMultiTabBarButton::sizeHint().width());
|
|
|
|
} else setFixedWidth(36);
|
|
|
|
} else setFixedWidth(36);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -655,7 +655,7 @@ void KileMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
|
|
|
|
const int height = 24;
|
|
|
|
const int height = 24;
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
if ((m_style==KileMultiTabBar::KDEV3) || (m_style==KileMultiTabBar::KDEV3ICON) || (isOn())) {
|
|
|
|
if ((m_position==KileMultiTabBar::Left) || (m_position==KileMultiTabBar::Right))
|
|
|
|
if ((m_position==KileMultiTabBar::Left) || (m_position==KileMultiTabBar::Right))
|
|
|
|
sh=TQSize(this->height(),this->width());//KileMultiTabBarButton::tqsizeHint();
|
|
|
|
sh=TQSize(this->height(),this->width());//KileMultiTabBarButton::sizeHint();
|
|
|
|
else sh=TQSize(this->width(),this->height());
|
|
|
|
else sh=TQSize(this->width(),this->height());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -672,8 +672,8 @@ void KileMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
|
|
|
|
|
|
|
|
|
|
|
|
if (isOn()) st|=TQStyle::Style_On;
|
|
|
|
if (isOn()) st|=TQStyle::Style_On;
|
|
|
|
|
|
|
|
|
|
|
|
tqstyle().tqdrawControl(TQStyle::CE_PushButton,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), tqcolorGroup(),st);
|
|
|
|
tqstyle().drawControl(TQStyle::CE_PushButton,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), colorGroup(),st);
|
|
|
|
tqstyle().tqdrawControl(TQStyle::CE_PushButtonLabel,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), tqcolorGroup(),st);
|
|
|
|
tqstyle().drawControl(TQStyle::CE_PushButtonLabel,&painter,this, TQRect(0,0,pixmap.width(),pixmap.height()), colorGroup(),st);
|
|
|
|
|
|
|
|
|
|
|
|
switch (m_position) {
|
|
|
|
switch (m_position) {
|
|
|
|
case KileMultiTabBar::Left:
|
|
|
|
case KileMultiTabBar::Left:
|
|
|
@ -689,8 +689,8 @@ void KileMultiTabBarTab::drawButtonStyled(TQPainter *paint) {
|
|
|
|
paint->drawPixmap(0,0,pixmap);
|
|
|
|
paint->drawPixmap(0,0,pixmap);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// tqstyle().tqdrawControl(TQStyle::CE_PushButtonLabel,painter,this, TQRect(0,0,pixmap.width(),pixmap.height()),
|
|
|
|
// tqstyle().drawControl(TQStyle::CE_PushButtonLabel,painter,this, TQRect(0,0,pixmap.width(),pixmap.height()),
|
|
|
|
// tqcolorGroup(),TQStyle::Style_Enabled);
|
|
|
|
// colorGroup(),TQStyle::Style_Enabled);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -700,58 +700,58 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
TQPixmap pixmap;
|
|
|
|
TQPixmap pixmap;
|
|
|
|
if ( iconSet())
|
|
|
|
if ( iconSet())
|
|
|
|
pixmap = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal );
|
|
|
|
pixmap = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal );
|
|
|
|
paint->fillRect(0, 0, 24, 24, tqcolorGroup().background());
|
|
|
|
paint->fillRect(0, 0, 24, 24, colorGroup().background());
|
|
|
|
|
|
|
|
|
|
|
|
if (!isOn())
|
|
|
|
if (!isOn())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->fillRect(0,0,21,21,TQBrush(tqcolorGroup().background()));
|
|
|
|
paint->fillRect(0,0,21,21,TQBrush(colorGroup().background()));
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(150));
|
|
|
|
paint->setPen(colorGroup().background().dark(150));
|
|
|
|
paint->drawLine(0,22,23,22);
|
|
|
|
paint->drawLine(0,22,23,22);
|
|
|
|
|
|
|
|
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,0,23);
|
|
|
|
paint->drawLine(0,0,0,23);
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(1,0,1,23);
|
|
|
|
paint->drawLine(1,0,1,23);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if ((m_position==KileMultiTabBar::Bottom) || (m_position==KileMultiTabBar::Top))
|
|
|
|
if ((m_position==KileMultiTabBar::Bottom) || (m_position==KileMultiTabBar::Top))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->fillRect(0,1,23,22,TQBrush(tqcolorGroup().background()));
|
|
|
|
paint->fillRect(0,1,23,22,TQBrush(colorGroup().background()));
|
|
|
|
|
|
|
|
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(23,0,23,23);
|
|
|
|
paint->drawLine(23,0,23,23);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().light());
|
|
|
|
paint->setPen(colorGroup().light());
|
|
|
|
paint->drawLine(0,22,23,22);
|
|
|
|
paint->drawLine(0,22,23,22);
|
|
|
|
paint->drawLine(0,23,23,23);
|
|
|
|
paint->drawLine(0,23,23,23);
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,23,0);
|
|
|
|
paint->drawLine(0,0,23,0);
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(0,1,23,1);
|
|
|
|
paint->drawLine(0,1,23,1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().background().dark(120));
|
|
|
|
paint->setPen(colorGroup().background().dark(120));
|
|
|
|
paint->drawLine(0,23,23,23);
|
|
|
|
paint->drawLine(0,23,23,23);
|
|
|
|
paint->fillRect(0,0,23,21,TQBrush(tqcolorGroup().background()));
|
|
|
|
paint->fillRect(0,0,23,21,TQBrush(colorGroup().background()));
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(12-pixmap.width()/2,12-pixmap.height()/2,pixmap);
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().light());
|
|
|
|
paint->setPen(colorGroup().light());
|
|
|
|
paint->drawLine(23,0,23,23);
|
|
|
|
paint->drawLine(23,0,23,23);
|
|
|
|
paint->drawLine(22,0,22,23);
|
|
|
|
paint->drawLine(22,0,22,23);
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,0,0,23);
|
|
|
|
paint->drawLine(0,0,0,23);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -762,12 +762,12 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
if (m_position==KileMultiTabBar::Right)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,height()-1,23,height()-1);
|
|
|
|
paint->drawLine(0,height()-1,23,height()-1);
|
|
|
|
paint->drawLine(0,height()-2,23,height()-2);
|
|
|
|
paint->drawLine(0,height()-2,23,height()-2);
|
|
|
|
paint->drawLine(23,0,23,height()-1);
|
|
|
|
paint->drawLine(23,0,23,height()-1);
|
|
|
|
paint->drawLine(22,0,22,height()-1);
|
|
|
|
paint->drawLine(22,0,22,height()-1);
|
|
|
|
paint->fillRect(0,0,21,height()-3,TQBrush(tqcolorGroup().light()));
|
|
|
|
paint->fillRect(0,0,21,height()-3,TQBrush(colorGroup().light()));
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
|
|
|
|
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
if (m_showActiveTabText)
|
|
|
@ -777,9 +777,9 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
TQPixmap tpixmap(height()-25-3, width()-2);
|
|
|
|
TQPixmap tpixmap(height()-25-3, width()-2);
|
|
|
|
TQPainter painter(&tpixmap);
|
|
|
|
TQPainter painter(&tpixmap);
|
|
|
|
|
|
|
|
|
|
|
|
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(tqcolorGroup().light()));
|
|
|
|
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(colorGroup().light()));
|
|
|
|
|
|
|
|
|
|
|
|
painter.setPen(tqcolorGroup().text());
|
|
|
|
painter.setPen(colorGroup().text());
|
|
|
|
painter.drawText(0,+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
painter.drawText(0,+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
|
|
|
|
|
|
|
|
paint->rotate(90);
|
|
|
|
paint->rotate(90);
|
|
|
@ -791,25 +791,25 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if (m_position==KileMultiTabBar::Top)
|
|
|
|
if (m_position==KileMultiTabBar::Top)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->fillRect(0,0,width()-1,23,TQBrush(tqcolorGroup().light()));
|
|
|
|
paint->fillRect(0,0,width()-1,23,TQBrush(colorGroup().light()));
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().text());
|
|
|
|
paint->setPen(colorGroup().text());
|
|
|
|
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if (m_position==KileMultiTabBar::Bottom)
|
|
|
|
if (m_position==KileMultiTabBar::Bottom)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,23,width()-1,23);
|
|
|
|
paint->drawLine(0,23,width()-1,23);
|
|
|
|
paint->drawLine(0,22,width()-1,22);
|
|
|
|
paint->drawLine(0,22,width()-1,22);
|
|
|
|
paint->fillRect(0,0,width()-1,21,TQBrush(tqcolorGroup().light()));
|
|
|
|
paint->fillRect(0,0,width()-1,21,TQBrush(colorGroup().light()));
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
paint->setPen(tqcolorGroup().text());
|
|
|
|
paint->setPen(colorGroup().text());
|
|
|
|
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
paint->drawText(25,height()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -818,10 +818,10 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
paint->setPen(tqcolorGroup().shadow());
|
|
|
|
paint->setPen(colorGroup().shadow());
|
|
|
|
paint->drawLine(0,height()-1,23,height()-1);
|
|
|
|
paint->drawLine(0,height()-1,23,height()-1);
|
|
|
|
paint->drawLine(0,height()-2,23,height()-2);
|
|
|
|
paint->drawLine(0,height()-2,23,height()-2);
|
|
|
|
paint->fillRect(0,0,23,height()-3,TQBrush(tqcolorGroup().light()));
|
|
|
|
paint->fillRect(0,0,23,height()-3,TQBrush(colorGroup().light()));
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
paint->drawPixmap(10-pixmap.width()/2,10-pixmap.height()/2,pixmap);
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
if (m_showActiveTabText)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -831,9 +831,9 @@ void KileMultiTabBarTab::drawButtonClassic(TQPainter *paint)
|
|
|
|
TQPixmap tpixmap(height()-25-3, width()-2);
|
|
|
|
TQPixmap tpixmap(height()-25-3, width()-2);
|
|
|
|
TQPainter painter(&tpixmap);
|
|
|
|
TQPainter painter(&tpixmap);
|
|
|
|
|
|
|
|
|
|
|
|
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(tqcolorGroup().light()));
|
|
|
|
painter.fillRect(0,0,tpixmap.width(),tpixmap.height(),TQBrush(colorGroup().light()));
|
|
|
|
|
|
|
|
|
|
|
|
painter.setPen(tqcolorGroup().text());
|
|
|
|
painter.setPen(colorGroup().text());
|
|
|
|
painter.drawText(tpixmap.width()-TQFontMetrics(TQFont()).width(m_text),+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
painter.drawText(tpixmap.width()-TQFontMetrics(TQFont()).width(m_text),+width()/2+TQFontMetrics(TQFont()).height()/2,m_text);
|
|
|
|
|
|
|
|
|
|
|
|
paint->rotate(-90);
|
|
|
|
paint->rotate(-90);
|
|
|
@ -860,13 +860,13 @@ KileMultiTabBar::KileMultiTabBar(KileMultiTabBarMode bm, TQWidget *parent,const
|
|
|
|
if (bm==Vertical)
|
|
|
|
if (bm==Vertical)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_l=new TQVBoxLayout(this);
|
|
|
|
m_l=new TQVBoxLayout(this);
|
|
|
|
tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true);
|
|
|
|
setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true);
|
|
|
|
// setFixedWidth(24);
|
|
|
|
// setFixedWidth(24);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_l=new TQHBoxLayout(this);
|
|
|
|
m_l=new TQHBoxLayout(this);
|
|
|
|
tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
|
|
|
|
setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
|
|
|
|
// setFixedHeight(24);
|
|
|
|
// setFixedHeight(24);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_l->setMargin(0);
|
|
|
|
m_l->setMargin(0);
|
|
|
|