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