r11107 - lmledit/trunk

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: pollux
Date: 2009-02-11 22:00:31 +0100 (Wed, 11 Feb 2009)
New Revision: 11107

Modified:
   lmledit/trunk/rule-editor.cpp
Log:
Set resize mode for IDMEF properties to stretch (expand to use available size, but do not show any scrollbar)

Modified: lmledit/trunk/rule-editor.cpp
===================================================================
--- lmledit/trunk/rule-editor.cpp	2009-02-11 21:00:26 UTC (rev 11106)
+++ lmledit/trunk/rule-editor.cpp	2009-02-11 21:00:31 UTC (rev 11107)
@@ -10,6 +10,7 @@
 #include <ui_rule-editor.h>
 
 #include <QFileInfo>
+#include <QHeaderView>
 
 
 RuleEditor::RuleEditor(QWidget *parent)
@@ -42,8 +43,7 @@
 	QStringList labels;
 	labels << tr("IDMEF Path") << tr("value");
 	ui->optionsTable->setHorizontalHeaderLabels( labels );
-	ui->optionsTable->setColumnWidth(0, ui->optionsTable->width() * 45 / 100);
-	ui->optionsTable->setColumnWidth(1, ui->optionsTable->width() * 45 / 100);
+	ui->optionsTable->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
 }
 
 void RuleEditor::createValidators()

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.