Commit 9a2b4df5 authored by Matthias Möller's avatar Matthias Möller

add option button in PostProcessorManager widget

refs #2358

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20036 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1c97e08a
......@@ -286,16 +286,30 @@ QFrame* PostProcessorDialog::createFrame(const PostProcessorInfo& _pPI)
font.setPointSize(10);
name->setFont(font);
QLabel* version = new QLabel( _pPI.version );
QPushButton* optionsButton = new QPushButton("Options");
hlayout->addWidget(name);
hlayout->addStretch();
hlayout->addWidget(version);
optionsButton->setEnabled(false);
if (_pPI.optionsAction != 0)
{
optionsButton->setEnabled(true);
connect(optionsButton,SIGNAL(clicked()),_pPI.optionsAction,SLOT(trigger()));
}
QVBoxLayout* vlayout = new QVBoxLayout;
QLabel* description = new QLabel( _pPI.description );
vlayout->addLayout(hlayout,20);
vlayout->addWidget(description);
QHBoxLayout* optionsLayout = new QHBoxLayout();
vlayout->addLayout(optionsLayout);
optionsLayout->addWidget(description);
optionsLayout->addStretch();
optionsLayout->addWidget(optionsButton);
frame->setLayout(vlayout);
frame->adjustSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment