Port xconfig to Qt5 - Fix layout
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
34d6320b82
commit
29a70168e2
|
@ -855,9 +855,13 @@ QAction *ConfigView::showPromptAction;
|
|||
ConfigView::ConfigView(QWidget* parent, const char *name)
|
||||
: Parent(parent, name)
|
||||
{
|
||||
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
|
||||
|
||||
list = new ConfigList(this, name);
|
||||
verticalLayout->addWidget(list);
|
||||
lineEdit = new ConfigLineEdit(this);
|
||||
lineEdit->hide();
|
||||
verticalLayout->addWidget(lineEdit);
|
||||
|
||||
this->nextView = viewList;
|
||||
viewList = this;
|
||||
|
@ -1302,6 +1306,7 @@ ConfigMainWindow::ConfigMainWindow(void)
|
|||
|
||||
menu = menuBar();
|
||||
toolBar = new QToolBar("Tools", this);
|
||||
addToolBar(toolBar);
|
||||
|
||||
backAction = new QAction(QPixmap(xpm_back), _("Back"), this);
|
||||
connect(backAction, SIGNAL(activated()), SLOT(goBack()));
|
||||
|
|
Loading…
Reference in New Issue