Port xconfig to Qt5 - Fix layout
authorBoris Barbulovski <bbarbulovski@gmail.com>
Tue, 22 Sep 2015 18:36:10 +0000 (11:36 -0700)
committerMichal Marek <mmarek@suse.com>
Wed, 14 Oct 2015 12:59:01 +0000 (14:59 +0200)
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>
scripts/kconfig/qconf.cc

index df1700ec2a68fcb97e5c41d53d57837f00142f8f..3a5ff5dcae057b3ed3d00872b6e1084218fe9a90 100644 (file)
@@ -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()));