Commit 29a70168 authored by Boris Barbulovski's avatar Boris Barbulovski Committed by Michal Marek

Port xconfig to Qt5 - Fix layout

Signed-off-by: default avatarBoris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent 34d6320b
...@@ -855,9 +855,13 @@ QAction *ConfigView::showPromptAction; ...@@ -855,9 +855,13 @@ QAction *ConfigView::showPromptAction;
ConfigView::ConfigView(QWidget* parent, const char *name) ConfigView::ConfigView(QWidget* parent, const char *name)
: Parent(parent, name) : Parent(parent, name)
{ {
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
list = new ConfigList(this, name); list = new ConfigList(this, name);
verticalLayout->addWidget(list);
lineEdit = new ConfigLineEdit(this); lineEdit = new ConfigLineEdit(this);
lineEdit->hide(); lineEdit->hide();
verticalLayout->addWidget(lineEdit);
this->nextView = viewList; this->nextView = viewList;
viewList = this; viewList = this;
...@@ -1302,6 +1306,7 @@ ConfigMainWindow::ConfigMainWindow(void) ...@@ -1302,6 +1306,7 @@ ConfigMainWindow::ConfigMainWindow(void)
menu = menuBar(); menu = menuBar();
toolBar = new QToolBar("Tools", this); toolBar = new QToolBar("Tools", this);
addToolBar(toolBar);
backAction = new QAction(QPixmap(xpm_back), _("Back"), this); backAction = new QAction(QPixmap(xpm_back), _("Back"), this);
connect(backAction, SIGNAL(activated()), SLOT(goBack())); connect(backAction, SIGNAL(activated()), SLOT(goBack()));
......
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