mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-15 09:29:36 +02:00
bugfix 2576,2571,2641
This commit is contained in:
@@ -274,7 +274,8 @@ void printFirewall(FWObject *fw,
|
|||||||
bool newPageForSection,
|
bool newPageForSection,
|
||||||
ProjectPanel *project)
|
ProjectPanel *project)
|
||||||
{
|
{
|
||||||
|
if (Firewall::cast(fw)==NULL)
|
||||||
|
return ;
|
||||||
list<pixmapOrText> listPT;
|
list<pixmapOrText> listPT;
|
||||||
|
|
||||||
QString txt;
|
QString txt;
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ ObjectListView::ObjectListView(QWidget* parent, const char*,
|
|||||||
setItemMargin( 2 );*/
|
setItemMargin( 2 );*/
|
||||||
setFocusPolicy( Qt::StrongFocus );
|
setFocusPolicy( Qt::StrongFocus );
|
||||||
setFocus();
|
setFocus();
|
||||||
|
header()->setClickable(true);
|
||||||
|
connect (header (),SIGNAL(sectionClicked (int)),this,SLOT(sectionClicked (int)));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ObjectListView::event ( QEvent * event )
|
bool ObjectListView::event ( QEvent * event )
|
||||||
@@ -191,4 +193,7 @@ void ObjectListView::mouseMoveEvent ( QMouseEvent * event )
|
|||||||
QTreeWidget::mouseMoveEvent(event);
|
QTreeWidget::mouseMoveEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectListView::sectionClicked ( int logicalIndex )
|
||||||
|
{
|
||||||
|
sortByColumn ( logicalIndex, Qt::AscendingOrder );
|
||||||
|
}
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ class ObjectListView : public QTreeWidget {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
ObjectListView(QWidget* parent = 0, const char * name = 0, Qt::WindowFlags f = 0);
|
ObjectListView(QWidget* parent = 0, const char * name = 0, Qt::WindowFlags f = 0);
|
||||||
|
public slots:
|
||||||
|
void sectionClicked ( int logicalIndex ) ;
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
void delObject_sign();
|
void delObject_sign();
|
||||||
|
|||||||
@@ -1646,7 +1646,7 @@ void RuleSetView::paintCell(QPainter *pntr,
|
|||||||
p.setPen( cg.highlightedText().color() );
|
p.setPen( cg.highlightedText().color() );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
p.fillRect(rect, cg.brush( QPalette::Base )); // crole
|
p.fillRect(rect, cg.brush( QPalette::Mid )); // crole
|
||||||
p.setPen( cg.text().color() );
|
p.setPen( cg.text().color() );
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user