Commit d3ab5dee authored by Dirk Mueller's avatar Dirk Mueller

fix --enable-final

svn path=/trunk/kdesdk/cervisia/; revision=116941
parent d891d62e
......@@ -24,7 +24,7 @@
#include "annotateview.moc"
static const int BORDER = 4;
static const int ANN_BORDER = 4;
class AnnotateViewItem
......@@ -137,7 +137,7 @@ void AnnotateView::paintCell(QPainter *p, int row, int col)
else if (col == 1)
{
backgroundColor = item->odd? white : lightGray;
innerborder = BORDER;
innerborder = ANN_BORDER;
if (!item->author.isNull())
{
str = item->author;
......
......@@ -46,7 +46,7 @@ int DiffViewItemList::compareItems(QCollection::Item item1, QCollection::Item it
}
static const int BORDER = 7;
static const int DIFFBORDER = 7;
DiffView::DiffView( bool withlinenos, bool withmarker,
......@@ -262,7 +262,7 @@ int DiffView::cellWidth(int col)
QFontMetrics fm( fontMetrics() );
return QMAX(QMAX( fm.width("Delete"),
fm.width("Insert")),
fm.width("Change"))+2*BORDER;
fm.width("Change"))+2*DIFFBORDER;
}
else
{
......@@ -323,7 +323,7 @@ void DiffView::paintCell(QPainter *p, int row, int col)
backgroundColor = lightGray;
inverted = false;
align = AlignRight;
innerborder = BORDER;
innerborder = DIFFBORDER;
str = (item->type==Change)? "Change"
: (item->type==Insert)? "Insert"
: (item->type==Delete)? "Delete" : "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment