diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2015-09-22 14:36:10 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-10-14 08:59:01 -0400 |
commit | 29a70168e2637385295cc60549c038d3c958f8a8 (patch) | |
tree | d9f2d954e8ac86ac642e3b5ad1f989d5dbf239a8 /scripts/kconfig/qconf.cc | |
parent | 34d6320b825ec2d261d4cb1af83f0582cd2e7954 (diff) |
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>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index df1700ec2a68..3a5ff5dcae05 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -855,9 +855,13 @@ QAction *ConfigView::showPromptAction; | |||
855 | ConfigView::ConfigView(QWidget* parent, const char *name) | 855 | ConfigView::ConfigView(QWidget* parent, const char *name) |
856 | : Parent(parent, name) | 856 | : Parent(parent, name) |
857 | { | 857 | { |
858 | QVBoxLayout *verticalLayout = new QVBoxLayout(this); | ||
859 | |||
858 | list = new ConfigList(this, name); | 860 | list = new ConfigList(this, name); |
861 | verticalLayout->addWidget(list); | ||
859 | lineEdit = new ConfigLineEdit(this); | 862 | lineEdit = new ConfigLineEdit(this); |
860 | lineEdit->hide(); | 863 | lineEdit->hide(); |
864 | verticalLayout->addWidget(lineEdit); | ||
861 | 865 | ||
862 | this->nextView = viewList; | 866 | this->nextView = viewList; |
863 | viewList = this; | 867 | viewList = this; |
@@ -1302,6 +1306,7 @@ ConfigMainWindow::ConfigMainWindow(void) | |||
1302 | 1306 | ||
1303 | menu = menuBar(); | 1307 | menu = menuBar(); |
1304 | toolBar = new QToolBar("Tools", this); | 1308 | toolBar = new QToolBar("Tools", this); |
1309 | addToolBar(toolBar); | ||
1305 | 1310 | ||
1306 | backAction = new QAction(QPixmap(xpm_back), _("Back"), this); | 1311 | backAction = new QAction(QPixmap(xpm_back), _("Back"), this); |
1307 | connect(backAction, SIGNAL(activated()), SLOT(goBack())); | 1312 | connect(backAction, SIGNAL(activated()), SLOT(goBack())); |