mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 10:17:16 +01:00
small update 2511
This commit is contained in:
parent
092a380388
commit
907e272926
@ -1215,7 +1215,7 @@ QRect RuleSetView::calculateCellSize( int row, int col )
|
|||||||
}
|
}
|
||||||
wc = QMAX(wc, QApplication::globalStrut().width());
|
wc = QMAX(wc, QApplication::globalStrut().width());
|
||||||
wc += RuleElementSpacing/2; // some padding
|
wc += RuleElementSpacing/2; // some padding
|
||||||
|
|
||||||
return QRect(0,0,wc,h);
|
return QRect(0,0,wc,h);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4340,7 +4340,7 @@ InterfacePolicyView::InterfacePolicyView(ProjectPanel *project, InterfacePolicy
|
|||||||
|
|
||||||
void InterfacePolicyView::init()
|
void InterfacePolicyView::init()
|
||||||
{
|
{
|
||||||
ncols=6 +
|
ncols=7 +
|
||||||
((supports_time)?1:0) +
|
((supports_time)?1:0) +
|
||||||
((supports_logging && supports_rule_options)?1:0);
|
((supports_logging && supports_rule_options)?1:0);
|
||||||
|
|
||||||
@ -4440,8 +4440,8 @@ void NATView::init()
|
|||||||
{
|
{
|
||||||
colTypes[-1]=RuleOp;
|
colTypes[-1]=RuleOp;
|
||||||
|
|
||||||
ncols=8;
|
ncols=9;
|
||||||
ruleModel->setColumnCount(8);
|
ruleModel->setColumnCount(9);
|
||||||
|
|
||||||
int col=0;
|
int col=0;
|
||||||
QStringList qsl;
|
QStringList qsl;
|
||||||
@ -4470,7 +4470,7 @@ void NATView::init()
|
|||||||
colTypes[col++]=Options;
|
colTypes[col++]=Options;
|
||||||
|
|
||||||
qsl << "Comment";
|
qsl << "Comment";
|
||||||
colTypes[col]=Comment;
|
colTypes[col++]=Comment;
|
||||||
|
|
||||||
ruleModel->setHeader(qsl);
|
ruleModel->setHeader(qsl);
|
||||||
// setColumnStretchable(col, true);
|
// setColumnStretchable(col, true);
|
||||||
@ -4526,7 +4526,7 @@ RoutingView::RoutingView(ProjectPanel *project, Routing *p, QWidget *parent) :
|
|||||||
void RoutingView::init()
|
void RoutingView::init()
|
||||||
{
|
{
|
||||||
colTypes[-1]=RuleOp;
|
colTypes[-1]=RuleOp;
|
||||||
ncols=6;
|
ncols=7;
|
||||||
ruleModel->setColumnCount(ncols);
|
ruleModel->setColumnCount(ncols);
|
||||||
|
|
||||||
int col=0;
|
int col=0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user