KUtils
kmultitabbar.cpp File Reference
#include "kmultitabbar.h"
#include "kmultitabbar.moc"
#include "kmultitabbar_p.h"
#include "kmultitabbar_p.moc"
#include <qbutton.h>
#include <qpopupmenu.h>
#include <qlayout.h>
#include <qpainter.h>
#include <qtooltip.h>
#include <qfontmetrics.h>
#include <qstyle.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <qapplication.h>
#include <math.h>
Include dependency graph for kmultitabbar.cpp:
Go to the source code of this file.
Defines | |
#define | CALCDIFF(m_tabs, diff, i) |
#define | NEARBYINT(i) ((int(float(i) + 0.5))) |
Define Documentation
#define CALCDIFF | ( | m_tabs, | |||
diff, | |||||
i | ) |
Value:
if (m_lines>(int)lines) {\ /*kdDebug()<<"i="<<i<<" tabCount="<<tabCount<<" space="<<space<<endl;*/ \ uint ulen=0;\ diff=0; \ for (uint i2=i;i2<tabCount;i2++) {\ uint l1=m_tabs.at(i2)->neededSize();\ if ((ulen+l1)>space){\ if (ulen==0) diff=0;\ else diff=((float)(space-ulen))/(i2-i);\ break;\ }\ ulen+=l1;\ }\ } else {diff=0; }
Definition at line 173 of file kmultitabbar.cpp.
#define NEARBYINT | ( | i | ) | ((int(float(i) + 0.5))) |
Definition at line 42 of file kmultitabbar.cpp.