Style fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-06-20 21:27:41 +00:00
parent 6a9178f51c
commit f092b1f782
+4 -3
View File
@@ -37,12 +37,14 @@ BFileControl::BFileControl(BRect rect, const char* name, const char* label,
// determine font height // determine font height
font_height fontHeight; font_height fontHeight;
GetFontHeight(&fontHeight); GetFontHeight(&fontHeight);
float itemHeight = (int32)(fontHeight.ascent + fontHeight.descent + fontHeight.leading) + 13; float itemHeight = (int32)(fontHeight.ascent + fontHeight.descent
+ fontHeight.leading) + 13;
BString selectString = B_TRANSLATE("Select" B_UTF8_ELLIPSIS); BString selectString = B_TRANSLATE("Select" B_UTF8_ELLIPSIS);
float labelWidth = StringWidth(selectString) + 20; float labelWidth = StringWidth(selectString) + 20;
rect = Bounds(); rect = Bounds();
rect.right -= labelWidth; rect.right -= labelWidth;
rect.top = 4; rect.bottom = itemHeight + 2; rect.top = 4;
rect.bottom = itemHeight + 2;
fText = new BTextControl(rect,"file_path", label, pathOfFile, NULL); fText = new BTextControl(rect,"file_path", label, pathOfFile, NULL);
if (label) if (label)
fText->SetDivider(fText->StringWidth(label) + 6); fText->SetDivider(fText->StringWidth(label) + 6);
@@ -184,4 +186,3 @@ BMailFileConfigView::Archive(BMessage *into, bool /*deep*/) const
return B_OK; return B_OK;
} }