Remove unnecessary SetExplicitPreferredSize from translators using layouts.
This commit is contained in:
@@ -171,11 +171,6 @@ ConfigView::ConfigView(TranslatorSettings* settings)
|
|||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(copyright2View)
|
.Add(copyright2View)
|
||||||
.Add(copyright3View);
|
.Add(copyright3View);
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(BSize((font.Size() * 250) / 12,
|
|
||||||
(font.Size() * 350) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,11 +64,6 @@ ConfigView::ConfigView(uint32 flags)
|
|||||||
.Add(copyrightView2)
|
.Add(copyrightView2)
|
||||||
.Add(copyrightView3)
|
.Add(copyrightView3)
|
||||||
.Add(copyrightView4);
|
.Add(copyrightView4);
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(BSize(font.Size() * 400 / 12,
|
|
||||||
font.Size() * 200 / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -70,11 +70,6 @@ HVIFView::HVIFView(const char* name, uint32 flags, TranslatorSettings *settings)
|
|||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(fRenderSize)
|
.Add(fRenderSize)
|
||||||
.AddGlue();
|
.AddGlue();
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(
|
|
||||||
BSize((font.Size() * 270) / 12, (font.Size() * 100) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -707,11 +707,6 @@ TranslatorView::TranslatorView(const char* name, TranslatorSettings* settings)
|
|||||||
AddTab(new TranslatorAboutView(B_TRANSLATE("About")));
|
AddTab(new TranslatorAboutView(B_TRANSLATE("About")));
|
||||||
|
|
||||||
settings->Release();
|
settings->Release();
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(
|
|
||||||
BSize((font.Size() * 380) / 12, (font.Size() * 250) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -753,11 +753,6 @@ TranslatorView::TranslatorView(const char* name, TranslatorSettings* settings)
|
|||||||
AddTab(new TranslatorAboutView(B_TRANSLATE("About")));
|
AddTab(new TranslatorAboutView(B_TRANSLATE("About")));
|
||||||
|
|
||||||
settings->Release();
|
settings->Release();
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(
|
|
||||||
BSize((font.Size() * 380) / 12, (font.Size() * 250) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -516,11 +516,6 @@ public:
|
|||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(fBasedOn)
|
.Add(fBasedOn)
|
||||||
.Add(fCopyright);
|
.Add(fCopyright);
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(
|
|
||||||
BSize((font.Size() * 350) / 12, (font.Size() * 200) / 12));
|
|
||||||
}
|
}
|
||||||
~PPMView() { /* nothing here */ }
|
~PPMView() { /* nothing here */ }
|
||||||
|
|
||||||
|
|||||||
@@ -130,11 +130,6 @@ SGIView::SGIView(const char* name, uint32 flags, TranslatorSettings* settings)
|
|||||||
.End()
|
.End()
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(infoView);
|
.Add(infoView);
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(BSize((font.Size() * 390) / 12,
|
|
||||||
(font.Size() * 180) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -147,11 +147,6 @@ ConfigView::ConfigView(TranslatorSettings* settings)
|
|||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(copyright2View)
|
.Add(copyright2View)
|
||||||
.Add(copyright3View);
|
.Add(copyright3View);
|
||||||
|
|
||||||
BFont font;
|
|
||||||
GetFont(&font);
|
|
||||||
SetExplicitPreferredSize(BSize((font.Size() * 250) / 12,
|
|
||||||
(font.Size() * 350) / 12));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user