From kde-devel Wed Oct 15 22:02:27 2008 From: "ruben vandamme" Date: Wed, 15 Oct 2008 22:02:27 +0000 To: kde-devel Subject: Text overlaps with close buttons in ktabbar Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=122410824119096 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1750351849==" --===============1750351849== Content-Type: multipart/alternative; boundary="----=_Part_77570_31859134.1224108148178" ------=_Part_77570_31859134.1224108148178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, In a KDE4 program, I have a tabbar with some long texts in it as labels. If the window (and its tabs) is too small to fit all the text, all the labels are cut off as it should. However this text then overlaps with the close button creating a somewhat ugly "effect". These are the settings I use: // Create the tabs bar tabBar_ = new KTabBar( this ); tabBar_->setElideMode( Qt::ElideRight ); tabBar_->setDrawBase( false ); tabBar_->setUsesScrollButtons( false ); tabBar_->setHoverCloseButton( true ); tabBar_->setHoverCloseButtonDelayed( true ); Is there some way I can set an extra offset at the right side of each tab, so no text is drawn on top of the close button? Or is this some visual/drawing bug in ktabbar? Thanks Ruben ------=_Part_77570_31859134.1224108148178 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi all,

In a KDE4 program, I have a tabbar with some long texts in it as labels.
If the window (and its tabs) is too small to fit all the text, all the labels are cut off as it should.
However this text then overlaps with the close button creating a somewhat ugly "effect".

These are the settings I use:

  // Create the tabs bar
  tabBar_ = new KTabBar( this );
  tabBar_->setElideMode( Qt::ElideRight );
  tabBar_->setDrawBase( false );
  tabBar_->setUsesScrollButtons( false );
  tabBar_->setHoverCloseButton( true );
  tabBar_->setHoverCloseButtonDelayed( true );

Is there some way I can set an extra offset at the right side of each tab, so no text is drawn on top of the close button?
Or is this some visual/drawing bug in ktabbar?


Thanks

Ruben
------=_Part_77570_31859134.1224108148178-- --===============1750351849== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1750351849==--