diff --git a/vmainwindow.cpp b/vmainwindow.cpp index ced86d9e..3580ec0b 100644 --- a/vmainwindow.cpp +++ b/vmainwindow.cpp @@ -27,18 +27,15 @@ void VMainWindow::setupUI() { // Notebook directory browser tree notebookLabel = new QLabel(tr("Notebook")); + directoryLabel = new QLabel(tr("Directory")); notebookComboBox = new QComboBox(); + notebookComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents); directoryTree = new VDirectoryTree(); - QHBoxLayout *nbTopLayout = new QHBoxLayout; - notebookComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); - notebookComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents); - nbTopLayout->setAlignment(Qt::AlignLeft); - nbTopLayout->addWidget(notebookLabel); - nbTopLayout->addWidget(notebookComboBox); - QVBoxLayout *nbLayout = new QVBoxLayout; - nbLayout->addLayout(nbTopLayout); + nbLayout->addWidget(notebookLabel); + nbLayout->addWidget(notebookComboBox); + nbLayout->addWidget(directoryLabel); nbLayout->addWidget(directoryTree); QWidget *nbContainer = new QWidget(); nbContainer->setLayout(nbLayout); diff --git a/vmainwindow.h b/vmainwindow.h index 5fa561f5..3145b83d 100644 --- a/vmainwindow.h +++ b/vmainwindow.h @@ -38,6 +38,7 @@ private: void initToolBar(); QLabel *notebookLabel; + QLabel *directoryLabel; QComboBox *notebookComboBox; VDirectoryTree *directoryTree; VFileList *fileList;